subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | jeff303 | frnp4lz | <|sols|><|sot|>Found in Sam Hogans video. Check him out if youre interested in Game Dev<|eot|><|sol|>https://i.redd.it/26r1ifd7wk051.jpg<|eol|><|sor|>Return !!a
Javascript can be so horrifyingly efficient...<|eor|><|sor|>[deleted]<|eor|><|sor|>Wait what trick?<|eor|><|sor|>https://stackoverflow.com/questions/784929/wh... | 18 |
programminghorror | sad_developer | frnbtlb | <|sols|><|sot|>Found in Sam Hogans video. Check him out if youre interested in Game Dev<|eot|><|sol|>https://i.redd.it/26r1ifd7wk051.jpg<|eol|><|sor|>hmm .. kinda like Yandare simulator<|eor|><|eols|><|endoftext|> | 15 |
programminghorror | kevinhaze | fro3dem | <|sols|><|sot|>Found in Sam Hogans video. Check him out if youre interested in Game Dev<|eot|><|sol|>https://i.redd.it/26r1ifd7wk051.jpg<|eol|><|sor|>Return !!a
Javascript can be so horrifyingly efficient...<|eor|><|sor|>This looks...cursed. What is this?<|eor|><|sor|>`a` is coerced to a boolean by the first negation.... | 12 |
programminghorror | boskee | frnsg5p | <|sols|><|sot|>Found in Sam Hogans video. Check him out if youre interested in Game Dev<|eot|><|sol|>https://i.redd.it/26r1ifd7wk051.jpg<|eol|><|sor|>Return !!a
Javascript can be so horrifyingly efficient...<|eor|><|sor|>This looks...cursed. What is this?<|eor|><|sor|> return !!true; // returns true
return !!fa... | 10 |
programminghorror | Yey-007 | frnoroq | <|sols|><|sot|>Found in Sam Hogans video. Check him out if youre interested in Game Dev<|eot|><|sol|>https://i.redd.it/26r1ifd7wk051.jpg<|eol|><|sor|>Return !!a
Javascript can be so horrifyingly efficient...<|eor|><|sor|>This looks...cursed. What is this?<|eor|><|eols|><|endoftext|> | 9 |
programminghorror | nolifeorname | frnoqi3 | <|sols|><|sot|>Found in Sam Hogans video. Check him out if youre interested in Game Dev<|eot|><|sol|>https://i.redd.it/26r1ifd7wk051.jpg<|eol|><|sor|>Return !!a
Javascript can be so horrifyingly efficient...<|eor|><|sor|>[deleted]<|eor|><|sor|>Wait what trick?<|eor|><|eols|><|endoftext|> | 9 |
programminghorror | n0tKamui | frn10jc | <|sols|><|sot|>Found in Sam Hogans video. Check him out if youre interested in Game Dev<|eot|><|sol|>https://i.redd.it/26r1ifd7wk051.jpg<|eol|><|sor|>That probably compiles to the same thing, right?<|eor|><|sor|>not a valid reason tho<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | amiteryes | alh0f9 | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|eols|><|endoftext|> | 921 |
programminghorror | AndreLinoge55 | efdyua5 | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>Update us when he passes a value to that function that returns false<|eor|><|eols|><|endoftext|> | 556 |
programminghorror | eaxiv | efe6ee7 | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|> what();
Literally the best name I've seen in a function.<|eor|><|eols|><|endoftext|> | 332 |
programminghorror | manghoti | efe2tfj | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>shit if he gets that bad boy working it's gonna be O(1)<|eor|><|eols|><|endoftext|> | 291 |
programminghorror | yaw130 | efe0ba2 | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>Update us when he passes a value to that function that returns false<|eor|><|sor|>What would happen if you passed ... | 221 |
programminghorror | illogicalhawk | efe21by | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>>a student in my class
So we're laughing at students learning to code now.....<|eor|><|sor|>That's not a coding ... | 177 |
programminghorror | droptablesubreddits | efdzgnq | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>Update us when he passes a value to that function that returns false<|eor|><|sor|>What would happen if you passed ... | 126 |
programminghorror | xman40100 | efe1hlh | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>That's... what?!<|eor|><|sor|>what() for you, my friend.<|eor|><|eols|><|endoftext|> | 115 |
programminghorror | manghoti | effe6f7 | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>shit if he gets that bad boy working it's gonna be O(1)<|eor|><|sor|>[deleted]<|eor|><|sor|>Right Sorry.
Shit if ... | 114 |
programminghorror | hanna-chan | efdyo0n | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>That's... what?!<|eor|><|eols|><|endoftext|> | 98 |
programminghorror | tmtyl_101 | efe0nhn | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>If( num / num == 1 && num / 1 == num && num % 2 != 0 && num % 3 != 0 && num % 4 != 0 && num % 5 != 0 etc....<|eor|... | 94 |
programminghorror | whistleblade | efe1gud | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>>a student in my class
So we're laughing at students learning to code now.....<|eor|><|eols|><|endoftext|> | 81 |
programminghorror | stamatt45 | efefu2i | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>Teach him rubber duck debugging. If he says it out loud and still doesn't get it, then he's probably doomed.<|eor|... | 80 |
programminghorror | FallenWarrior2k | efel5d2 | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>Update us when he passes a value to that function that returns false<|eor|><|sor|>What would happen if you passed ... | 66 |
programminghorror | nathancjohnson | efe28i0 | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>>a student in my class
So we're laughing at students learning to code now.....<|eor|><|sor|>I mean this is more ... | 61 |
programminghorror | CassiusCray | efe28nj | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>/r/mathhorror<|eor|><|eols|><|endoftext|> | 57 |
programminghorror | w00tboodle | efe0z7v | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>If( num / num == 1 && num / 1 == num && num % 2 != 0 && num % 3 != 0 && num % 4 != 0 && num % 5 != 0 etc....<|eor|... | 57 |
programminghorror | imaconor | efftnbl | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>shit if he gets that bad boy working it's gonna be O(1)<|eor|><|sor|>[deleted]<|eor|><|sor|>Right Sorry.
Shit if ... | 45 |
programminghorror | tmtyl_101 | efe2jzs | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>If( num / num == 1 && num / 1 == num && num % 2 != 0 && num % 3 != 0 && num % 4 != 0 && num % 5 != 0 etc....<|eor|... | 42 |
programminghorror | Uranium_238 | effjwil | <|sols|><|sot|>a student in my class made this code to check if a number is prime or not, and then sent this to me asking why it isn't working.<|eot|><|sol|>https://i.redd.it/etcuyzjadmd21.png<|eol|><|sor|>shit if he gets that bad boy working it's gonna be O(1)<|eor|><|sor|>[deleted]<|eor|><|sor|>Right Sorry.
Shit if ... | 40 |
programminghorror | farawyfromhere | jfbza3 | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|eols|><|endoftext|> | 921 |
programminghorror | i_am_adult_now | g9ja8od | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>I love it and I hate it at the same time.<|eor|><|eols|><|endoftext|> | 305 |
programminghorror | richarmeleon | g9jgq6w | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>Sure it's stupid looking but also surprisingly readable.<|eor|><|eols|><|endoftext|> | 228 |
programminghorror | FalseWait7 | g9jp6l2 | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>I've paid for the 27 inches and will use EVERY GODDAMN INCH.<|eor|><|eols|><|endoftext|> | 140 |
programminghorror | itsnn | g9jdasc | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>I fail to see the horror. Quite easy to understand what's going on there. I would have tried to save some h space, but that's life.<|eor|><|eols|><|endoftext|> | 112 |
programminghorror | PM_ME_BAD_ALGORITHMS | g9k1tmq | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>Sure it's stupid looking but also surprisingly readable.<|eor|><|sor|>If I have to scroll horizontally, its not readable.<|eor|><|sor|>Just buy a wider screen duh<|eor|><|eols|><|endoftext|> | 60 |
programminghorror | drizztmainsword | g9jx6ga | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>Sure it's stupid looking but also surprisingly readable.<|eor|><|sor|>If I have to scroll horizontally, its not readable.<|eor|><|eols|><|endoftext|> | 52 |
programminghorror | hasanyoneseenmymom | g9jx06d | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>I've paid for the 27 inches and will use EVERY GODDAMN INCH.<|eor|><|sor|>That's what she said<|eor|><|eols|><|endoftext|> | 50 |
programminghorror | pathguard | g9jgdtl | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>I fail to see the horror. Quite easy to understand what's going on there. I would have tried to save some h space, but that's life.<|eor|><|sor|>Yea. Maybe the code could be refactored to avoid the ugly nesting in the fir... | 46 |
programminghorror | PolyGlotCoder | g9jcdqq | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>well, its readable.<|eor|><|eols|><|endoftext|> | 40 |
programminghorror | CrimsonMutt | g9kfjff | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>Sure it's stupid looking but also surprisingly readable.<|eor|><|sor|>the indentation alignment is correct, but .Where and .Any should have gone into new lines
basically this: https://i.imgur.com/RJpoMoh.png
that's how ... | 40 |
programminghorror | FalseWait7 | g9jx9cw | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>I've paid for the 27 inches and will use EVERY GODDAMN INCH.<|eor|><|sor|>That's what she said<|eor|><|sor|>Nah, my wife doesnt use this display.<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | Cameltotem | g9kopn6 | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>I love it and I hate it at the same time.<|eor|><|sor|>That linq query does too much imo<|eor|><|eols|><|endoftext|> | 28 |
programminghorror | Draqutsc | g9jkwwq | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>I do this when necessary.
It's readable.
How else would you make the nested if's readable?<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | pavel_lishin | g9jt6d6 | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>I do this when necessary.
It's readable.
How else would you make the nested if's readable?<|eor|><|sor|>Drop the indentation level down a bit.
if (hasOnlyNonProcessed.hasValue) {
if (hasOnlyNonProcessed.Value)... | 22 |
programminghorror | Bloody_Insane | g9k1vev | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>Sure it's stupid looking but also surprisingly readable.<|eor|><|sor|>If I have to scroll horizontally, its not readable.<|eor|><|sor|>Sounds like someone needs an ultrawide monitor.<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | adenzerda | g9jqtpz | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>Should probably just have broken all those conditionals into a helper function, but honestly, this is making the best of a bad situation<|eor|><|eols|><|endoftext|> | 10 |
programminghorror | chylex | g9jnw64 | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>This is exactly the sort of monster who prefers spaces over tabs.<|eor|><|sor|>You cant get alignment like this with just tabs, unless you force everybody to have the same indentation per tab.<|eor|><|sor|>> You cant get ... | 10 |
programminghorror | CanSpice | g9jlp49 | <|sols|><|sot|>I n d e n t a t i o n<|eot|><|sol|>https://i.redd.it/hmyl6h0d0gu51.jpg<|eol|><|sor|>This is exactly the sort of monster who prefers spaces over tabs.<|eor|><|sor|>You cant get alignment like this with just tabs, unless you force everybody to have the same indentation per tab.<|eor|><|eols|><|endoftext|> | 9 |
programminghorror | Johnmelodyme | ve4tr8 | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|eols|><|endoftext|> | 921 |
programminghorror | TheBrainStone | icoftlf | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>What is the 0 + supposed to do? An implicit typecast?<|eor|><|sor|>Just tried it. It crashes (as it should imo).
So that whole code here is bullshit. Feels like a distraction added to confus... | 223 |
programminghorror | PyroCatt | icops6a | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>Error: exception on line 42: Cannot convert ____ of type ______ to ___ .<|eor|><|eols|><|endoftext|> | 180 |
programminghorror | Ok-Slice-4013 | icodzwa | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>What is the 0 + supposed to do? An implicit typecast?<|eor|><|eols|><|endoftext|> | 167 |
programminghorror | KCGD_r | icpnzcv | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>You can't typecast an array to an integer<|eor|><|sor|>JavaScript can of course <|eor|><|sor|>I just tried it
`1 + ["a", "b", "c"]`
> `"1a,b,c"`
god I'm so happy that typescript exists<|eor... | 88 |
programminghorror | qqqrrrs_ | icog2nw | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_<|eor|><|eols|><|endoftext|> | 69 |
programminghorror | Zeilar | icp64ws | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>You can't typecast an array to an integer<|eor|><|sor|>JavaScript can of course <|eor|><|eols|><|endoftext|> | 58 |
programminghorror | igeorgehall45 | icowqw8 | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>What was your employer making, malware?<|eor|><|eols|><|endoftext|> | 56 |
programminghorror | vainstar23 | icou140 | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_<|eor|><|sor|>-_________________-<|eor|><|eols|><|endoftext|> | 52 |
programminghorror | IrishDrummerBoy | icoht6u | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>What is the 0 + supposed to do? An implicit typecast?<|eor|><|sor|>PHP has implicit typecasting.<|eor|><|sor|>I know. But you can always directly cast using (int). What's the point of 0 + []?<... | 52 |
programminghorror | poor_documentation | icokvai | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>You can't typecast an array to an integer<|eor|><|eols|><|endoftext|> | 48 |
programminghorror | TheBrainStone | icoikw0 | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>What is the 0 + supposed to do? An implicit typecast?<|eor|><|sor|>Just tried it. It crashes (as it should imo).
So that whole code here is bullshit. Feels like a distraction added to confus... | 45 |
programminghorror | pokexpert30 | icow7iz | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>That's just some very basic obfuscation<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | metasergal | icoii8j | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>What is the 0 + supposed to do? An implicit typecast?<|eor|><|sor|>Just tried it. It crashes (as it should imo).
So that whole code here is bullshit. Feels like a distraction added to confus... | 34 |
programminghorror | pokexpert30 | icpb06g | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>That's just some very basic obfuscation<|eor|><|sor|>is that made by hand? I guess not, right?<|eor|><|sor|>That's 100% by hand<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | Johnmelodyme | icoffw7 | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>What is the 0 + supposed to do? An implicit typecast?<|eor|><|soopr|>Honestly I was confused too when I first look into the code.<|eoopr|><|eols|><|endoftext|> | 20 |
programminghorror | Ok-Slice-4013 | icofha5 | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>What is the 0 + supposed to do? An implicit typecast?<|eor|><|sor|>PHP has implicit typecasting.<|eor|><|sor|>I know. But you can always directly cast using (int). What's the point of 0 + []?<... | 19 |
programminghorror | IrishDrummerBoy | icoerg2 | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>What is the 0 + supposed to do? An implicit typecast?<|eor|><|sor|>PHP has implicit typecasting.<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | KCGD_r | icqozeo | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>You can't typecast an array to an integer<|eor|><|sor|>JavaScript can of course <|eor|><|sor|>I just tried it
`1 + ["a", "b", "c"]`
> `"1a,b,c"`
god I'm so happy that typescript exists<|eor... | 18 |
programminghorror | AndrehChamber | icqo7mq | <|sols|><|sot|>Some source code horror from my former employment.<|eot|><|sol|>https://i.redd.it/1flcmbh424691.png<|eol|><|sor|>I used to work with a guy that named all function parameters as single letters, in alphabetical order, e.g.:
function someFunction(a, b, c, d) { }
Team had to read the whole stack to try to ... | 17 |
programminghorror | notAnotherJSDev | r5j3hs | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|eols|... | 918 |
programminghorror | notAnotherJSDev | hmne2co | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 140 |
programminghorror | scragar | hmnn9ob | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 107 |
programminghorror | TastyPi | hmndx0l | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 90 |
programminghorror | z500 | hmnv605 | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 85 |
programminghorror | notAnotherJSDev | hmncqc0 | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 65 |
programminghorror | _PM_ME_PANGOLINS_ | hmnehn2 | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 56 |
programminghorror | inkfarer | hmnfl7k | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 54 |
programminghorror | stupidcookface | hmnxa2m | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 51 |
programminghorror | bearly_breathing | hmnhk44 | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 44 |
programminghorror | Semarc01 | hmnvnvo | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 43 |
programminghorror | _PM_ME_PANGOLINS_ | hmni6v7 | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 41 |
programminghorror | notAnotherJSDev | hmne5gf | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 35 |
programminghorror | thorpj | hmnwjh7 | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 33 |
programminghorror | besthelloworld | hmoh5zv | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 31 |
programminghorror | _PM_ME_PANGOLINS_ | hmnfurl | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 30 |
programminghorror | zerik100 | hmp6nnm | <|sols|><|sot|>One of my genius coworkers felt it was necessary to disallow any and all "multi level imports", despite many a 3rd party library using it for exporting some utilities. Now our codebase is riddled with these `eslint-disable-next-line` comments<|eot|><|sol|>https://i.redd.it/vsflzruz5p281.png<|eol|><|sor|>... | 25 |
programminghorror | -ftw | j8qxr4 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|eols|><|endoftext|> | 918 |
programminghorror | leviathon01 | g8d5o29 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>When the URL is longer than the page your requesting, you know you have a problem.<|eor|><|eols|><|endoftext|> | 434 |
programminghorror | icguy333 | g8e076k | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>Isn't there a de facto limit to URL length?<|eor|><|eols|><|endoftext|> | 143 |
programminghorror | thomhurst | g8ebdrz | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>Isn't there a de facto limit to URL length?<|eor|><|sor|>Generally you shouldn't go over 2048 characters<|eor|><|eols|><|endoftext|> | 106 |
programminghorror | Lightfire228 | g8eit66 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>Isn't there a de facto limit to URL length?<|eor|><|sor|>Generally you shouldn't go over 2048 characters<|eor|><|sor|>Pretty sure it's 4k
At least that's what the limit is for [QBO's query endpoint](https://developer.intuit.com/app/developer... | 69 |
programminghorror | Human_lookin_cat | g8glnn7 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>This is the REAL bee movie script they've been hiding from us all this time<|eor|><|eols|><|endoftext|> | 67 |
programminghorror | EmojifierBot | g8h43t0 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>This is the REAL bee movie script they've been hiding from us all this time<|eor|><|sor|>*This is the REAL bee*
*Movie script they've been hiding*
*From us all this time*
\- Human\_lookin\_cat
---
^(I detect haikus. And sometimes, succes... | 51 |
programminghorror | KarkaLT | g8gh72r | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>I thought this was minified<|eor|><|eols|><|endoftext|> | 49 |
programminghorror | AyrA_ch | g8hmrer | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>When the URL is longer than the page your requesting, you know you have a problem.<|eor|><|sor|>so all data urls are problems?<|eor|><|eols|><|endoftext|> | 42 |
programminghorror | haikusbot | g8glod0 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>This is the REAL bee movie script they've been hiding from us all this time<|eor|><|sor|>*This is the REAL bee*
*Movie script they've been hiding*
*From us all this time*
\- Human\_lookin\_cat
---
^(I detect haikus. And sometimes, succes... | 42 |
programminghorror | kgon1312 | g8i0tun | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>When the URL is longer than the page your requesting, you know you have a problem.<|eor|><|sor|>so all data urls are problems?<|eor|><|sor|>yes<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | Mr_Cheers | g8ed3he | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>Where is the tl;dr?<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | UnexpectedBSOD | g8h5knh | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>This is the REAL bee movie script they've been hiding from us all this time<|eor|><|sor|>*This is the REAL bee*
*Movie script they've been hiding*
*From us all this time*
\- Human\_lookin\_cat
---
^(I detect haikus. And sometimes, succes... | 25 |
programminghorror | virexmachina | g8hbvy2 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>Isn't there a de facto limit to URL length?<|eor|><|sor|>IE breaks if the query string is longer than 2,083 chars. I used to have a tool that passed a json obj in a string. Definitely found that limit<|eor|><|eols|><|endoftext|> | 23 |
programminghorror | LordDoomAndGloom | g8h6td5 | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>I thought this was minified<|eor|><|sor|>That was what I thought too! And then I zoomed in! And died inside!<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | Mordoko | g8h42qu | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>This is the REAL bee movie script they've been hiding from us all this time<|eor|><|sor|>*This is the REAL bee*
*Movie script they've been hiding*
*From us all this time*
\- Human\_lookin\_cat
---
^(I detect haikus. And sometimes, succes... | 19 |
programminghorror | Nikitka218 | g8h9q1p | <|sols|><|sot|><|eot|><|sol|>https://i.redd.it/pn84gsszmbs51.jpg<|eol|><|sor|>Isn't there a de facto limit to URL length?<|eor|><|sor|>Generally you shouldn't go over 2048 characters<|eor|><|sor|>Pretty sure it's 4k
At least that's what the limit is for [QBO's query endpoint](https://developer.intuit.com/app/developer... | 18 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.