Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

in similar situations, instead of saying "VERBOSE=1", I say "VERBOSE=getenv("MY_NAME_MY_APP_VERBOSE") == '1'", and set this env variable in my terminal when needed. This way there is zero chance I commit verbose-enabled debug code.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: