Skip to content

Whole Bean Software

Android and Web Programming

  • Journal
  • About

Category: Journal

Programming Guideline: Prefer to use the ‘less than’ < operator

 

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"

Author JamesPosted on 2018-01-192018-01-19Categories Journal

Programming Guideline: Code should be run from top of the function to the bottom.

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.”

Author JamesPosted on 2018-01-102018-01-19Categories Journal

Menu

  • Journal
  • About

Recent Posts

  • Programming Guideline: Prefer to use the ‘less than’ < operator
  • Programming Guideline: Code should be run from top of the function to the bottom.
  • About
  • Montana Public Radio Travel Companion

Archives

  • January 2018
  • December 2017
  • August 2016

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Journal
  • About
Whole Bean Software Proudly powered by WordPress