Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root825564yI really like having a debug() function that console.debug()’s because I can turn them all off in one place. It’s also less typing.
Generally though I use a nested logger that I wrote. It allows specifying logging level, indentation depth, tags, etc. makes reading the logs actually blissful. -
asgs115634y@010001111 true, but it is not on the window object. It is misleading at best, but not as harmful as setting an alias for cd to do rm rf
-
Haha, let them see how it's done in Java before they make another excuse of shorten logger function.
Plus, it's sickening to see they not using spread operator argument in console.log's alias. -
I'm probably guilty of that as well.
When I want to do some quick debug message on the console it's always a pain for my fingers to get to the . key for some reason.
Related Rants
Apparently one of my classmates either really likes python or really hates js
joke/meme
python
js
why
stop putting weird shit in your code