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
-
rgomez2816yI lost all interest in working after that shit today, legit I think I'll be better off climbing trees with apes than working with these kinds of beast
-
That's a rather odd implementation of a default value.
Odd enough that I would go with @devTea suggestion -
rgomez2816y@nothappy "not the actual implementation" first name that came to mind when writing the class
-
@muliyul maybe the Dev was super bored and fiddled around to see what kind of hell he can create
Related Rants
Today I was wandering through the code of the project I work on. The project is on JS, turns out someone named an object key `undefined`. They had the wonderful idea since they didn't want to pass a key through on the side where the info stored in the object is used(or at least that's what I assume).
Look at the image. (not the actual implementation but you get it and it actually works if you want to try it)
👏🏼 I don't know who did it and I rather not git blame it, but pray to the 7 gods you never do something like that again while I'm around or you are going to be in need of prosthetic fingers to code again motherfucker.
rant
genius
js
undefined