Giter Club home page Giter Club logo

dudo's People

Contributors

eco80 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dudo's Issues

Avoid Internal Getters/Setters

I am a fan of Dudo, and recently I am writing a static code analysis tool to 
conduct performance analysis for Android apps. I found Internal Getters/Setters 
in Dudo's code. 

As suggested by Android Developers,"In native languages like C++ it's common 
practice to use getters (i = getCount()) instead of accessing the field 
directly (i = mCount). This is an excellent habit for C++ and is often 
practiced in other object oriented languages like C# and Java, because the 
compiler can usually inline the access, and if you need to restrict or debug 
field access you can add the code at any time.

However, this is a bad idea on Android. Virtual method calls are expensive, 
much more so than instance field lookups. It's reasonable to follow common 
object-oriented programming practices and have getters and setters in the 
public interface, but within a class you should always access fields directly."



We found the violations in these class:
Class name: com.caverock.androidsvg.SVGAndroidRenderer
--Handler name: 
com.caverock.androidsvg.SVGAndroidRenderer.updateStyle(Lcom/caverock/androidsvg/
SVGAndroidRenderer$RendererState;Lcom/caverock/androidsvg/SVG$Style;)V
--Called inner Getter or Setter: 
com.caverock.androidsvg.SVGAndroidRenderer.getCurrentFontSize()F



Class name: net.margaritov.preference.colorpicker.ColorPickerDialog
--Handler name: 
net.margaritov.preference.colorpicker.ColorPickerDialog.updateHexLengthFilter()V
--Called inner Getter or Setter: 
net.margaritov.preference.colorpicker.ColorPickerDialog.getAlphaSliderVisible()Z

--Handler name: 
net.margaritov.preference.colorpicker.ColorPickerDialog.updateHexValue(I)V
--Called inner Getter or Setter: 
net.margaritov.preference.colorpicker.ColorPickerDialog.getAlphaSliderVisible()Z

--Handler name: 
net.margaritov.preference.colorpicker.ColorPickerDialog.setAlphaSliderVisible(Z)
V
--Called inner Getter or Setter: 
net.margaritov.preference.colorpicker.ColorPickerDialog.getColor()I

--Handler name: 
net.margaritov.preference.colorpicker.ColorPickerDialog.setHexValueEnabled(Z)V
--Called inner Getter or Setter: 
net.margaritov.preference.colorpicker.ColorPickerDialog.getColor()I


Class name: com.caverock.androidsvg.SVG
--Handler name: com.caverock.androidsvg.SVG.getViewList()Ljava/util/Set;
--Called inner Getter or Setter: 
com.caverock.androidsvg.SVG.getElementsByTagName(Ljava/lang/Class;)Ljava/util/Li
st;


Although I admit that it is a minor issue, but I sincerely hope that it can 
help you to improve Dudo. 
You may find more useful information in this references: 
http://developer.android.com/training/custom-views/custom-drawing.html


Original issue reported on code.google.com by [email protected] on 2 Apr 2014 at 6:38

Unable to play varient

we love this game and having it on our smart phones makes it very portable.

but 2 things are missing


1) being able to choose number of starting dice (we play with 6)
2) button for winning back a dice.(Win a dice on getting perfect guess of how 
many)




Original issue reported on code.google.com by [email protected] on 6 Jul 2013 at 9:26

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.