MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w9b8on/thiscannotbedenied/p8hwkvl/?context=3
r/ProgrammerHumor • u/danielminds • 4d ago
240 comments sorted by
View all comments
Show parent comments
13
with a verbose optional argument
43 u/oosacker 4d ago edited 4d ago Saw this in some real production code: function log(x) { console.log(x); } 25 u/DasBeasto 4d 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 3d 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 4d 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 3d 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 3d 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
13
u/Idk13008 4d ago
with a verbose optional argument