Programming thoughts
Jump to navigation
Jump to search
This comes from thinking about the run.py boot strapping module launcher thingy I've been concocting and various resycle projects I've done.
run.py
- load logging as soon as possible
- load module arguments
- load configuration
- INIs
- profile sections
- default config
- local configs
traceback management
developer mode: tracebacks bomb out
production mode: handled tracebacks are logged, execution continues
A problem I've seen a bunch in the X12 project is when we are missing data, we'll raise unhandled exceptions. For example, if we except to have some data but instead have None object, calling a method on the None object will raise AttributeError. Documenting this here without a solution. Something to ponder.