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
-
I think what makes it worse is they clearly know its unreadable as they have formatted it.
-
@nblackburn Eh, it reads like sweet music to me. As it is formatted it is very readable. To say that formatting it proves it is unreadable is silly.
-
I've had to deal with some unformatted nested ternary statements in the past, it wasn't fun...
-
@iam13islucky You misunderstand my point, the point was ot needed the formatting to be readable rather than a solution that is readable.
-
brod100268yWe have a clean up routine for nested ternary operators, if it finds one you get fired.
-
iguana8118yAm I the only one that has to look up how the ternary operator works every. single. time? It just won't stick..
-
I used to feel like this, could not remeber if the ? or : came first. I am not sure how I learned to remember, maybe have just been repetition. @iguana
-
@juniordevjakub @iguana hehe, same here until I realized that the first statement is really a question, so I need to put a question mark right after.
is_this_true?yes:no -
@nblackburn I see your concern now :) Maybe because I mostly code in Python indentation looks natural and important to me. The reality it all of the white space in JS is for readability's sake, can only imagine reading that statement as one-liner.
-
pesaply6998y$hit happens just hope you get to be the first to realise u did some wrong &fix it before it get to @devrant or worse reddit so humiliating
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo35My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
Found this gem in a popular frontend framework...
...the fuck?!
undefined
wtf
fml