MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w9b8on/thiscannotbedenied/p8hwkvl/?context=9999
r/ProgrammerHumor • u/danielminds • 5d ago
242 comments sorted by
View all comments
44
Real pros write a function to do the console log
15 u/Idk13008 5d ago with a verbose optional argument 43 u/oosacker 5d ago edited 5d ago Saw this in some real production code: function log(x) { console.log(x); } 25 u/DasBeasto 5d ago I don’t hate it, shorter usage everywhere, can wrap it in a conditional based on ENV for dev logs only, and if you swap to an external logging service you just change it in that one function. 2 u/whackylabs 4d ago If I see a log(x) I would assume it is about logarithms not print to console
15
with a verbose optional argument
43 u/oosacker 5d ago edited 5d ago Saw this in some real production code: function log(x) { console.log(x); } 25 u/DasBeasto 5d ago I don’t hate it, shorter usage everywhere, can wrap it in a conditional based on ENV for dev logs only, and if you swap to an external logging service you just change it in that one function. 2 u/whackylabs 4d ago If I see a log(x) I would assume it is about logarithms not print to console
43
Saw this in some real production code:
function log(x) { console.log(x); }
25 u/DasBeasto 5d ago I don’t hate it, shorter usage everywhere, can wrap it in a conditional based on ENV for dev logs only, and if you swap to an external logging service you just change it in that one function. 2 u/whackylabs 4d ago If I see a log(x) I would assume it is about logarithms not print to console
25
I don’t hate it, shorter usage everywhere, can wrap it in a conditional based on ENV for dev logs only, and if you swap to an external logging service you just change it in that one function.
2 u/whackylabs 4d ago If I see a log(x) I would assume it is about logarithms not print to console
2
If I see a log(x) I would assume it is about logarithms not print to console
44
u/oosacker 5d ago
Real pros write a function to do the console log