
jprogrammer_humor·Programmer Humorbyjopsozepsi function {}View original on lemmy.world45Comments13Reply
GrishAix feddit.de3Hide 3 repliesfunction { } Is for cheaters who want to squeeze as much code as possible onto one screen.14Reply
zzygo_histo_morpheus replyprogramming.dev2Hide 2 repliesonly good thing about javascript is that it forces people to put the squiggly brackets on the right1Reply
bbcrussin_dev replyprogramming.dev1Hide 1 replyI thought you could put curly brackets on a new line in js? Although I know when returning an object it has to be on the same line… fuck JavaScript man2Reply
zzygo_histo_morpheus replyprogramming.devExactly, your options are either mixing curly brackets or putting them all on the right and most people aren't crazy enough to mix then1Reply
TTrebach kbin.socialfunction() { // code } forever because you never know how long the parameter list is going to be.3Reply
CoderKat kbin.socialI'm sorry, are you saying you indent the braces? Cause if that's not unintentional, those are both horrifying!2Reply
13 replies
Is for cheaters who want to squeeze as much code as possible onto one screen.
only good thing about javascript is that it forces people to put the squiggly brackets on the right
I thought you could put curly brackets on a new line in js? Although I know when returning an object it has to be on the same line… fuck JavaScript man
Exactly, your options are either mixing curly brackets or putting them all on the right and most people aren't crazy enough to mix then
but
Don't ask me why.
Why
You don't ask!
Why
Damn it Carl!
forever because you never know how long the parameter list is going to be.
This image is cursed!!
I'm sorry, are you saying you indent the braces? Cause if that's not unintentional, those are both horrifying!