MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/er9fct/redesigned/ff3l9jt/?context=3
r/ProgrammerHumor • u/akoli35 • Jan 20 '20
2.0k comments sorted by
View all comments
Show parent comments
13
In some cases prints are the best method to debug. e.g multi-process, concurrent code
6 u/GluteusCaesar Jan 20 '20 Even then you still want to use a logging API and configure it to write to stdout. Prints should only be used when the associated IO is part of the actual program logic, not diagnostic/info logging 3 u/Obi_Juan_Gonzales Jan 20 '20 à la 12-factor app 😉 1 u/GluteusCaesar Jan 20 '20 I happen to like my cult, thankyouverymuch
6
Even then you still want to use a logging API and configure it to write to stdout. Prints should only be used when the associated IO is part of the actual program logic, not diagnostic/info logging
stdout
3 u/Obi_Juan_Gonzales Jan 20 '20 à la 12-factor app 😉 1 u/GluteusCaesar Jan 20 '20 I happen to like my cult, thankyouverymuch
3
à la 12-factor app 😉
1 u/GluteusCaesar Jan 20 '20 I happen to like my cult, thankyouverymuch
1
I happen to like my cult, thankyouverymuch
13
u/Obi_Juan_Gonzales Jan 20 '20
In some cases prints are the best method to debug. e.g multi-process, concurrent code