Skip to content

Architecture notes

undead robot edited this page Apr 21, 2014 · 2 revisions

Something to keep in mind

I18n

Too much work. Keep it simple, just use english.

Error handling

Functions should not generally print to STDERR. If an error is encountered function should set the error's description to __ERROR global and return a status > 1. Then a caller can handle the error or just ignore it if not interested.

Return statuses

  • = 0 - Success or true
  • = 1 - Failure or false
  • > 1 - Error
Clone this wiki locally