subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | Kerooker | 135irk0 | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|eols|><|endoftext|> | 1,296 |
programminghorror | jlacar | jijyyvg | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>I don't always read comments but when I do, they do flips down a flight of ifs. Stay nesty my friends.<|eor|><|eols|><|endoftext|> | 303 |
programminghorror | Mickenfox | jijzcu4 | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>Now you can't refactor it without ruining the art.<|eor|><|eols|><|endoftext|> | 182 |
programminghorror | PrincessRTFM | jik9mxj | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>That looks like C#, which means that not only could the entire thing have been a switch, it could even be a nicely compact switch _~~st... | 155 |
programminghorror | bellefleur1v | jikg3nb | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>That looks like C#, which means that not only could the entire thing have been a switch, it could even be a nicely compact switch _~~st... | 62 |
programminghorror | Does_Not-Matter | jilofbv | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>I don't always read comments but when I do, they do flips down a flight of ifs. Stay nesty my friends.<|eor|><|sor|>>stay nesty my frie... | 60 |
programminghorror | Axelwickm | jik2550 | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>Classic *Gambiarra*<|eor|><|eols|><|endoftext|> | 50 |
programminghorror | Xceeeeed | jik59ga | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>The comments are the best part. Also OMG, I just noticed its made of a whole ternary operator composite.<|eor|><|eols|><|endoftext|> | 40 |
programminghorror | aboardthegravyboat | jikk49x | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>That looks like C#, which means that not only could the entire thing have been a switch, it could even be a nicely compact switch _~~st... | 40 |
programminghorror | skantanio | jikjwbt | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>Its not even ifs, its a single massive nested ternary operator
I cant even justify it in my mind over ifs, a switch statement, etc the... | 36 |
programminghorror | OF_AstridAse | jik3njo | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>We need the final bracket to end in recursion.<|eor|><|eols|><|endoftext|> | 24 |
programminghorror | No_Bath_4099 | jikv235 | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>r/ItHadToBeBrazil<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | centurijon | jil96xa | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>That looks like C#, which means that not only could the entire thing have been a switch, it could even be a nicely compact switch _~~st... | 18 |
programminghorror | X71nc710n | jilojt1 | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>That looks like C#, which means that not only could the entire thing have been a switch, it could even be a nicely compact switch _~~st... | 17 |
programminghorror | JohnHwagi | jik8ybv | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>Storing these mappings in a file or something would be cool, but also, theres no need for these statements to be nested. If all of the ... | 15 |
programminghorror | sufilevy | jikvmxd | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>That looks like C#, which means that not only could the entire thing have been a switch, it could even be a nicely compact switch _~~st... | 15 |
programminghorror | unique_hemp | jilfdlj | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>That looks like C#, which means that not only could the entire thing have been a switch, it could even be a nicely compact switch _~~st... | 13 |
programminghorror | DogmaSychroniser | jiku63c | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>That looks like C#, which means that not only could the entire thing have been a switch, it could even be a nicely compact switch _~~st... | 11 |
programminghorror | r2bl3nd | jiknznl | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>Here's a hint, if you ever find yourself having to type out something incredibly stupid like this when programming, that's a hint that ... | 8 |
programminghorror | puertonican | jik3o08 | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>This guy just reinvented event driven architecture and I hate it. Each one of these things could be its own service at higher scales<|e... | 8 |
programminghorror | Rangsk | jilops6 | <|sols|><|sot|>"What a strange if, I'll do a backflip" all the way to "the flip is over and the if isn't. Have a good day"<|eot|><|sol|>https://i.redd.it/lmw0muw0pexa1.jpg<|eol|><|sor|>That looks like C#, which means that not only could the entire thing have been a switch, it could even be a nicely compact switch _~~st... | 8 |
programminghorror | saile515 | rpkco3 | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|eols|><|endoftext|> | 1,297 |
programminghorror | healplease | hq4shdw | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>is this the real language? is this just fantasy? caught in landslide, no escape from reality
p.s. shirt is really nice, I like it!<|eor|><|eols|><|end... | 680 |
programminghorror | PolyGlotCoder | hq4v1fy | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>I actually like this; syntax errors aside this is one of the better code lyrical things Ive seen.<|eor|><|eols|><|endoftext|> | 401 |
programminghorror | mralijey | hq4sc1e | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>Very similar to C# or Java but with so many problems, even as a psuedocode...
Edit:
1. Wrong curly braces immediately after catch
2. Region doesn't e... | 289 |
programminghorror | Zanderax | hq52qih | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>This is is written in the language of Fucking Banger.<|eor|><|eols|><|endoftext|> | 235 |
programminghorror | Sharlinator | hq4xcei | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>is this the real language? is this just fantasy? caught in landslide, no escape from reality
p.s. shirt is really nice, I like it!<|eor|><|sor|>The la... | 162 |
programminghorror | Akangka | hq4sg50 | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>Seems to be a joke that wind direction doesn't actually matter, but we check anyways.<|eor|><|eols|><|endoftext|> | 144 |
programminghorror | PolyGlotCoder | hq4uzes | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>Seems to be a joke that wind direction doesn't actually matter, but we check anyways.<|eor|><|sor|>Anyway the wind blows; doesnt really matter to meeee... | 127 |
programminghorror | hhblackno | hq52fsg | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>is this the real language? is this just fantasy? caught in landslide, no escape from reality
p.s. shirt is really nice, I like it!<|eor|><|sor|>Jesus ... | 102 |
programminghorror | Zanderax | hq52mw1 | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>is this the real language? is this just fantasy? caught in landslide, no escape from reality
p.s. shirt is really nice, I like it!<|eor|><|sor|>The la... | 88 |
programminghorror | saile515 | hq4szzp | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>Very similar to C# or Java but with so many problems, even as a psuedocode...
Edit:
1. Wrong curly braces immediately after catch
2. Region doesn't e... | 87 |
programminghorror | intensely_human | hq4tjv3 | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>This is Bohemian Rhapsody in code.
Could almost be javascript.<|eor|><|eols|><|endoftext|> | 67 |
programminghorror | SkinnyJoshPeck | hq68j6b | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>This is is written in the language of Fucking Banger.<|eor|><|sor|>And compiles to Bismillah.exe<|eor|><|eols|><|endoftext|> | 67 |
programminghorror | mister-pi | hq55p94 | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>Seems to be a joke that wind direction doesn't actually matter, but we check anyways.<|eor|><|sor|>Yeah I think OP just missed the joke.<|eor|><|eols|>... | 59 |
programminghorror | Priderage | hq531th | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>Yes, there are problems with the code. But none of that alters the fact that this shirt is genius.<|eor|><|eols|><|endoftext|> | 52 |
programminghorror | XelaaleX1234 | hq54nqf | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>is this the real language? is this just fantasy? caught in landslide, no escape from reality
p.s. shirt is really nice, I like it!<|eor|><|sor|>Looks ... | 37 |
programminghorror | b0b1b | hq7ajej | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>is this the real language? is this just fantasy? caught in landslide, no escape from reality
p.s. shirt is really nice, I like it!<|eor|><|sor|>The la... | 34 |
programminghorror | Someoneman | hq5yuam | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>I actually like this; syntax errors aside this is one of the better code lyrical things Ive seen.<|eor|><|sor|>[removed]<|eor|><|sor|>25 day old accoun... | 33 |
programminghorror | Nivekk_ | hq5mpqw | <|sols|><|sot|>This useless switch statement on a shirt I got. (Is this even a real language? I am unsure)<|eot|><|sol|>https://i.redd.it/t19wayl382881.jpg<|eol|><|sor|>I cringe whenever I see songs or sayings put into code like this. But this one is officially the least cringe I've seen.
new Incident(IncidentTypes.KI... | 28 |
programminghorror | ekolis | nn30gs | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|eols|><|endoftext|> | 1,298 |
programminghorror | vkapadia | gzt8lvd | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>&userType=Administrator
1337 HAX0R<|eor|><|eols|><|endoftext|> | 275 |
programminghorror | TheUnamedSecond | gzt0zz5 | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>While its definitly something that needed fixing, only fixing this halfway and leaving unused parameters is how you create a horrible unmai... | 226 |
programminghorror | RichCorinthian | gzsnfra | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>But that query string value is activated by the Be An Admin For a Sec checkbox. You broke it!<|eor|><|eols|><|endoftext|> | 210 |
programminghorror | lucidspoon | gztjhbk | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>Worked at one place that tracked the number of login attempts in the querystring. If the parameter got to 3 and you failed, you got locked ... | 116 |
programminghorror | LeepySham | gztup97 | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>While its definitly something that needed fixing, only fixing this halfway and leaving unused parameters is how you create a horrible unmai... | 106 |
programminghorror | Jezoreczek | gzufzjl | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>"Sorry, this is a wontmerge because some users connect to the page via links sent to them with homing pigeons. Please open a product reques... | 103 |
programminghorror | -manabreak | gzugaq6 | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>Worked at one place that tracked the number of login attempts in the querystring. If the parameter got to 3 and you failed, you got locked ... | 91 |
programminghorror | Cat__Wrangler | gztmhm7 | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>Worked at one place that tracked the number of login attempts in the querystring. If the parameter got to 3 and you failed, you got locked ... | 83 |
programminghorror | Isgrimnur | gzt7obq | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>While its definitly something that needed fixing, only fixing this halfway and leaving unused parameters is how you create a horrible unmai... | 83 |
programminghorror | hleszek | gzuiilq | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>"Sorry, this is a wontmerge because some users connect to the page via links sent to them with homing pigeons. Please open a product reques... | 80 |
programminghorror | Spare_Competition | gztpf46 | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>Worked at one place that tracked the number of login attempts in the querystring. If the parameter got to 3 and you failed, you got locked ... | 62 |
programminghorror | qse81 | gzuokb2 | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>I worked in a place where we had super secret PIN numbers that were an instant dismissal level offence if we revealed them to anyone. We al... | 61 |
programminghorror | marco262 | gzu7b5v | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>While its definitly something that needed fixing, only fixing this halfway and leaving unused parameters is how you create a horrible unmai... | 55 |
programminghorror | imanexpertama | gzukrm0 | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>Worked at one place that tracked the number of login attempts in the querystring. If the parameter got to 3 and you failed, you got locked ... | 41 |
programminghorror | savaero | gzuduft | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>Worked at one place that tracked the number of login attempts in the querystring. If the parameter got to 3 and you failed, you got locked ... | 37 |
programminghorror | TheUnamedSecond | gzutji0 | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>While its definitly something that needed fixing, only fixing this halfway and leaving unused parameters is how you create a horrible unmai... | 29 |
programminghorror | Nulagrithom | gzu9t4n | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>While its definitly something that needed fixing, only fixing this halfway and leaving unused parameters is how you create a horrible unmai... | 25 |
programminghorror | droi86 | gzt9eku | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>While its definitly something that needed fixing, only fixing this halfway and leaving unused parameters is how you create a horrible unmai... | 23 |
programminghorror | CharacterZucchini6 | gzv4g2t | <|sols|><|sot|>Yes, this was an actual pull request that I made. It saddens me that such a pull request was necessary.<|eot|><|sol|>https://i.redd.it/kzbayjvecw171.png<|eol|><|sor|>"Sorry, this is a wontmerge because some users connect to the page via links sent to them with homing pigeons. Please open a product reques... | 18 |
programminghorror | sacules | vwmpry | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|eols|><|endoftext|> | 1,296 |
programminghorror | sdotExchange | ifqvlxv | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>Looks like a programmer who's full of it and tries to be clever. Probably thinks if/else is a code smell then goes on to do this instead<|eor|><|e... | 526 |
programminghorror | pavel_lishin | ifqy9wi | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>1. Mutating input, but also returning it. Weird.
2. Claims to take in a number, but compares against string.
3. If input is neither "1" nor "0", r... | 416 |
programminghorror | sacules | ifqoo17 | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|soopr|>Also, the flair is correct. This is inside a Typescript file.<|eoopr|><|eols|><|endoftext|> | 286 |
programminghorror | FightingLynx | ifrf2t9 | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>Looks like a programmer who's full of it and tries to be clever. Probably thinks if/else is a code smell then goes on to do this instead<|eor|><|s... | 173 |
programminghorror | SkyrimNewb | ifqyyus | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>1. Mutating input, but also returning it. Weird.
2. Claims to take in a number, but compares against string.
3. If input is neither "1" nor "0", r... | 144 |
programminghorror | sacules | ifr0tov | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|soopr|>Oh I forgot the best part - this code is called throughout the codebase like this:
`Boolean(pipeNumberToBoolean(val))`<|eoopr|><|eols|><|endoft... | 141 |
programminghorror | ChiefBroski | ifruih9 | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>Looks like a programmer who's full of it and tries to be clever. Probably thinks if/else is a code smell then goes on to do this instead<|eor|><|s... | 113 |
programminghorror | HyerOneNA | ifqzujp | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|soopr|>Also, the flair is correct. This is inside a Typescript file.<|eoopr|><|sor|>Omfg I didnt notice that this was TS until I saw this comment.. Nig... | 95 |
programminghorror | JoyJoy_ | ifqy81n | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|soopr|>Also, the flair is correct. This is inside a Typescript file.<|eoopr|><|sor|>typescript but no type hints?<|eor|><|eols|><|endoftext|> | 87 |
programminghorror | vvf | ifr2w31 | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>Using switch statements as God intended.<|eor|><|eols|><|endoftext|> | 71 |
programminghorror | 033653337357 | ifr0dmr | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>1. Mutating input, but also returning it. Weird.
2. Claims to take in a number, but compares against string.
3. If input is neither "1" nor "0", r... | 68 |
programminghorror | klimmesil | ifrmhi1 | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>Looks like a programmer who's full of it and tries to be clever. Probably thinks if/else is a code smell then goes on to do this instead<|eor|><|s... | 66 |
programminghorror | daerogami | ifsffyz | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>Looks like a programmer who's full of it and tries to be clever. Probably thinks if/else is a code smell then goes on to do this instead<|eor|><|s... | 52 |
programminghorror | Primary-Fee1928 | ifqwk04 | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>What in the It gets worse and worse the more you look at it<|eor|><|eols|><|endoftext|> | 44 |
programminghorror | Javascript_above_all | ifqx82z | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>!!: "Am I a joke to you ?"<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | _PM_ME_PANGOLINS_ | ifqzuvc | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>!!: "Am I a joke to you ?"<|eor|><|sor|>`Boolean()` is far better for readability<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | BasieP2 | ifqvoze | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>love how typescript will simply allow this<|eor|><|sor|>Don't blame the language, you can do this kind of great readable stuff in all languages.<|... | 30 |
programminghorror | pavel_lishin | ifqzqlv | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>1. Mutating input, but also returning it. Weird.
2. Claims to take in a number, but compares against string.
3. If input is neither "1" nor "0", r... | 30 |
programminghorror | SkyrimNewb | ifr0zt5 | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|sor|>1. Mutating input, but also returning it. Weird.
2. Claims to take in a number, but compares against string.
3. If input is neither "1" nor "0", r... | 28 |
programminghorror | konkey-mong | ifrgzi7 | <|sols|><|sot|>Found this the other day. It's been on production for 4 years now. Can you find all of the bugs?<|eot|><|sol|>https://i.redd.it/3chisyhlvya91.jpg<|eol|><|soopr|>Oh I forgot the best part - this code is called throughout the codebase like this:
`Boolean(pipeNumberToBoolean(val))`<|eoopr|><|sor|>lmao<|eor... | 27 |
programminghorror | Jeb_Hydrolox_Kerman | v0ev57 | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|eols|><|endoftext|> | 1,286 |
programminghorror | Jeb_Hydrolox_Kerman | iag0fv5 | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>What does this accomplish?<|eor|><|soopr|>It is supposedly for getting the index of an element in a std::vector from its value, though I have my doubts as to whether it would work in practice.<|eoopr|><|eols|><|endoftext|... | 336 |
programminghorror | BlazingThunder30 | iag9mdj | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>What does this accomplish?<|eor|><|soopr|>It is supposedly for getting the index of an element in a std::vector from its value, though I have my doubts as to whether it would work in practice.<|eoopr|><|sor|>Jesus Christ ... | 292 |
programminghorror | ExcelsiorVFX | iafzfav | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>What does this accomplish?<|eor|><|eols|><|endoftext|> | 259 |
programminghorror | Nothing-But-Lies | iah6o0f | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>What does this accomplish?<|eor|><|soopr|>It is supposedly for getting the index of an element in a std::vector from its value, though I have my doubts as to whether it would work in practice.<|eoopr|><|sor|>Jesus Christ ... | 215 |
programminghorror | HaHarkAgain | iag6kyq | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>Ok, so the asm is used to obtain the stackpointer, right? but what is the 0x70 constant? Is it a gcc thing?<|eor|><|sor|>They're getting the base/frame pointer, which is essentially the location on the stack when the func... | 197 |
programminghorror | v_maria | iag20zc | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>Ok, so the asm is used to obtain the stackpointer, right? but what is the 0x70 constant? Is it a gcc thing?<|eor|><|eols|><|endoftext|> | 124 |
programminghorror | PyroCatt | iag1ksj | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>5/7 readability<|eor|><|eols|><|endoftext|> | 90 |
programminghorror | SBolo | iagw5f2 | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>What does this accomplish?<|eor|><|soopr|>It is supposedly for getting the index of an element in a std::vector from its value, though I have my doubts as to whether it would work in practice.<|eoopr|><|sor|>Holy fuck, ev... | 62 |
programminghorror | Bloedbibel | iahfmjo | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>What does this accomplish?<|eor|><|soopr|>It is supposedly for getting the index of an element in a std::vector from its value, though I have my doubts as to whether it would work in practice.<|eoopr|><|sor|>Holy fuck, ev... | 51 |
programminghorror | HaHarkAgain | iah8gzo | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>Ok, so the asm is used to obtain the stackpointer, right? but what is the 0x70 constant? Is it a gcc thing?<|eor|><|sor|>They're getting the base/frame pointer, which is essentially the location on the stack when the func... | 48 |
programminghorror | schmerm | iag22s5 | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>> uRBP
No, I'm Dad<|eor|><|eols|><|endoftext|> | 44 |
programminghorror | Jeb_Hydrolox_Kerman | iagbf8e | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>my dereferencing is a little weak but isn't `return (*__pBegin)` going to give address of `*uRBP` instead of the value?<|eor|><|soopr|>Basically what happens, or rather, what I think happens is:
- The uRBP variable is s... | 30 |
programminghorror | BakuhatsuK | iahg381 | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>What does this accomplish?<|eor|><|soopr|>It is supposedly for getting the index of an element in a std::vector from its value, though I have my doubts as to whether it would work in practice.<|eoopr|><|sor|>As in, this?
... | 28 |
programminghorror | michaelloda9 | iag1w0n | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>Beautiful<|eor|><|eols|><|endoftext|> | 26 |
programminghorror | Fighterhayabusa | iahnn7y | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>Ok, so the asm is used to obtain the stackpointer, right? but what is the 0x70 constant? Is it a gcc thing?<|eor|><|sor|>They're getting the base/frame pointer, which is essentially the location on the stack when the func... | 23 |
programminghorror | runner7mi | iag4o7l | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>my dereferencing is a little weak but isn't `return (*__pBegin)` going to give address of `*uRBP` instead of the value?<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | clempho | iah6agq | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>Ok, so the asm is used to obtain the stackpointer, right? but what is the 0x70 constant? Is it a gcc thing?<|eor|><|sor|>They're getting the base/frame pointer, which is essentially the location on the stack when the func... | 21 |
programminghorror | Dead_Moss | iag571s | <|sols|><|sot|>C++: Assembly Edition<|eot|><|sol|>https://i.redd.it/egbam3qmzf291.png<|eol|><|sor|>Ok, so the asm is used to obtain the stackpointer, right? but what is the 0x70 constant? Is it a gcc thing?<|eor|><|sor|>Trying to find the end of an array possibly? It's basically just pointer arithmetic. I've seen prope... | 14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.