Skip to main content
Byron Jones's user avatar
Byron Jones's user avatar
Byron Jones's user avatar
Byron Jones
  • Member for 9 years, 1 month
  • Last seen more than a month ago
  • Miami, FL
comment
Should if/else statements be arranged by rareness of cases or difficulty of dealing with them?
If the gauntlet condition is something that would prevent the function from succeeding, it returns an error immediately. If the gauntlet condition can be handled, I do so before entering the main body of code whenever possible. I am primarily trying to avoid nested IF statements, which in my experience are one of the primary causes of obscure and hard to debug coding errors.
Loading…
comment
How are globals any different from a database?
Would some of the downvoters mind explaining your downvotes? It seems rude to downvote without an explanation.
answered
Loading…
awarded
comment
How does a surname of Null cause problems in many databases?
If a string is known to have no value, then the value should be an empty string, not a null string.
awarded
Loading…
Loading…