I prefer to use only the “<” less than operator when comparing numbers.
For example:
I prefer
while ( smaller < larger )
to
while ( larger > smaller )
Continue reading “Programming Guideline: Prefer to use the ‘less than’ < operator"
Android and Web Programming
I prefer to use only the “<” less than operator when comparing numbers.
For example:
I prefer
while ( smaller < larger )
to
while ( larger > smaller )
Continue reading “Programming Guideline: Prefer to use the ‘less than’ < operator"
This seems so simple. It just states that line 1 should execute before line 2. But many programs and conventions do not follow this simple guideline. Continue reading “Programming Guideline: Code should be run from top of the function to the bottom.”