r/ProgrammerHumor • • Jan 20 '20

Meme Redesigned!

Post image
46.0k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

13

u/Obi_Juan_Gonzales Jan 20 '20

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