Tag Archives: variables

Variable Naming

Here are some coding guidelines about using meaningful names in the program. Most of them are taken from from Clean code book Choosing good names takes time but saves more than it takes.

Posted in Coding, Example Code | Tagged | Leave a comment

Variable Names & Key Values

Constructing JSON in Java can be a bother.  The most standard JSON library requires objects to be created, and then called to put the members on there.  So much easier in JavaScript, but it is not Java script.  Still, one … Continue reading

Posted in Coding, Example Code | Tagged , , , | Leave a comment

#31 Factor Expensive Expressions out of Loops

If you are are calling a method on an object, it is not always clear whether it is an expensive operation (takes a long time, lots of CPU power) or an inexpensive operation.  If you have a loop, and you … Continue reading

Posted in Coding | Tagged , , | Leave a comment