r/badcode • u/Flyspeck101 Now where's that function declaration • Sep 30 '21
js Type first, think later
471
Upvotes
r/badcode • u/Flyspeck101 Now where's that function declaration • Sep 30 '21
62
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Sep 30 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
92
u/edvin123212 Sep 30 '21
Mom can we have TS?
We have TS at home.
TS at home:
25
u/trBlueJ Oct 01 '21
Idk much about JavaScript but is that a three-layered map? Or is JavaScript weird with square bracket notation?
23
u/morphotomy Oct 01 '21
This has to be generated code. No human would do this.
11
u/noXi0uz Oct 01 '21
People who dislike js think that it always looks like this
10
u/ifroz Oct 01 '21
The choice of variable name $_$ is just amazing; but it seems like no-one has much of a problem with that cute little detail
7
u/kemalkolcuoglu Oct 01 '21
It is more like; Strike first, strike hard, no mercy to next programmer
4
u/oM4TY Oct 01 '21
How do you get a picture of this editor?
4
u/MadScientist2854 Oct 01 '21
Type first, think later is actually not a bad philosophy, as long as you actually do the second part
2
u/gutigutibah Oct 01 '21
I cant even understand whats going on here
2
u/Shintoz Oct 01 '21
I abhor the inline between-brackets comments. It’s like inline-ADHD…
1
u/Voltra_Neo Oct 17 '21
$_$