2 ms·
My favorite is just having the console open while visiting the web. It is amazing the amount of information devs "forget" to remove from sending to the console
by dylan604 5y ago
My favorite is just having the console open while visiting the web. It is amazing the amount of information devs "forget" to remove from sending to the console in production. A lot of console vomit is from JS frameworks. I don't know if there's a switch that can tell them to shut up in production or not, but it's one thing I look out for on anything I work on.
- baobabKoodaa 5y agoconst log = function(thingToLog) { if (DEV_ENVIRONMENT) console.log(thingToLog) }