subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | SomeDoge | i0wnvyv | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Ok so... The developers posted their own code to r/programminghorror and then are defending it in the comments? This doesn't make any sense.<|eor|><|eols|><|en... | 125 |
programminghorror | Affectionate_Car3414 | i0x3akk | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Writing your own would be way faster and less painful<|eor|><|soopr|>Not by much lol. We'd have to hardcode in that list anyway<|eoopr|><|sor|>[deleted]<|eor|>... | 107 |
programminghorror | adreamofhodor | i0wm8ox | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Writing your own would be way faster and less painful<|eor|><|soopr|>Not by much lol. We'd have to hardcode in that list anyway<|eoopr|><|sor|>[deleted]<|eor|>... | 106 |
programminghorror | Giocri | i0w7afi | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Why not use a for loop and just go through the amount of entries in the array, counted by some "array.length()" function or whatever it is called in that langu... | 104 |
programminghorror | ings0c | i0wb7dh | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|soopr|>Here's the code if you want to transcribe it
```
if (!(room == room_ruins1 || room == room_ruins7 || room == room_ruins12A || room == room_ruins19 || room =... | 91 |
programminghorror | TheAnalogKoala | i0wlr82 | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>This might help: https://github.com/KeeVeeGames/ArrayList.gml<|eor|><|sor|>Downvoted.
Undertale uses GameMaker Studio **1.4**.
This repo uses GMS **2.3**.
T... | 83 |
programminghorror | Magickmaster | i0w6cop | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>What language is this?<|eor|><|soopr|>GML, a custom language created for game maker studio. It isn't very good but when you're modding undertale its what you g... | 73 |
programminghorror | radtrashgames | i0vzbzv | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>This might help: https://github.com/KeeVeeGames/ArrayList.gml<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | mohragk | i0wrqqr | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Writing your own would be way faster and less painful<|eor|><|soopr|>Not by much lol. We'd have to hardcode in that list anyway<|eoopr|><|sor|>Stop writing sof... | 67 |
programminghorror | KerryGD | i0wpcfg | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Ok so... The developers posted their own code to r/programminghorror and then are defending it in the comments? This doesn't make any sense.<|eor|><|sor|>You'v... | 61 |
programminghorror | TheAnalogKoala | i0wrwv8 | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>Why not use a for loop and just go through the amount of entries in the array, counted by some "array.length()" function or whatever it is called in that langu... | 60 |
programminghorror | EyesOfAzula | i0vxf4r | <|sols|><|sot|>language doesn't have array search function and we didn't feel like writing our own<|eot|><|sol|>https://i.redd.it/ytsayku96rn81.jpg<|eol|><|sor|>What language is this?<|eor|><|eols|><|endoftext|> | 57 |
programminghorror | 5ducks1024 | 9rvhq6 | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|eols|><|endoftext|> | 902 |
programminghorror | CeeBYL | e8k4gd5 | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>Ah.. Korean websites, the pinnacle of web design... <|eor|><|eols|><|endoftext|> | 191 |
programminghorror | _cs | e8k9m4p | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>I think these days a lot of captchas are more to protect from bots that try to register on every website possible, rather than targeted attacks. In the case of targeted attacks on a specific website, most captchas tend... | 86 |
programminghorror | artemize | e8lfpsq | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>Ah.. Korean websites, the pinnacle of web design... <|eor|><|sor|>Japanese websites would like to say a word.<|eor|><|eols|><|endoftext|> | 57 |
programminghorror | CatpainCalamari | e8jyn9c | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|><|eor|><|eols|><|endoftext|> | 46 |
programminghorror | coolreader18 | e8k0ygf | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>TBH it would probably be easier and quicker to use OCR to scrape that "captcha" rather than parsing the HTML. That is a textbook simple recognition example.<|eor|><|sor|>No it wouldn't<|eor|><|eols|><|endoftext|> | 43 |
programminghorror | glemnar | e8lipm7 | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>Ah.. Korean websites, the pinnacle of web design... <|eor|><|sor|>Thats what you get when you literally have a law requiring you to use IE for online shopping and banking<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | droomph | e8kz3p5 | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>I think these days a lot of captchas are more to protect from bots that try to register on every website possible, rather than targeted attacks. In the case of targeted attacks on a specific website, most captchas tend... | 34 |
programminghorror | glemnar | e8lo3gg | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>Ah.. Korean websites, the pinnacle of web design... <|eor|><|sor|>Thats what you get when you literally have a law requiring you to use IE for online shopping and banking<|eor|><|sor|>wat<|eor|><|sor|>Yeeep. ActiveX re... | 28 |
programminghorror | YM_Industries | e8ktdsb | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>TBH it would probably be easier and quicker to use OCR to scrape that "captcha" rather than parsing the HTML. That is a textbook simple recognition example.<|eor|><|sor|>Parsing that would be about 5 lines of basic Jav... | 26 |
programminghorror | Chapi92 | e8kmmkw | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>I think these days a lot of captchas are more to protect from bots that try to register on every website possible, rather than targeted attacks. In the case of targeted attacks on a specific website, most captchas tend... | 18 |
programminghorror | MeasIIDX | e8jym9j | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>There could still be something on the server side that set those client side elements to be validated later during post.
-edited for typo-<|eor|><|eols|><|endoftext|> | 15 |
programminghorror | X-lem | e8kgta5 | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|><|eor|><|sor|><|eor|><|eols|><|endoftext|> | 11 |
programminghorror | MeasIIDX | e8jyts8 | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>There could still be something on the server side that set those client side elements to be validated later during post.
-edited for typo-<|eor|><|sor|>[deleted]<|eor|><|sor|>Totally agreed!<|eor|><|eols|><|endoftext|> | 11 |
programminghorror | Chapi92 | e8l13cy | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>I think these days a lot of captchas are more to protect from bots that try to register on every website possible, rather than targeted attacks. In the case of targeted attacks on a specific website, most captchas tend... | 11 |
programminghorror | SexyMonad | e8kh6v6 | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|><|eor|><|sor|><|eor|><|sor|><|eor|><|eols|><|endoftext|> | 10 |
programminghorror | stereoworld | e8lenqx | <|sols|><|sot|>This captcha seems legit<|eot|><|sol|>https://i.redd.it/i6sfxu7a7ru11.jpg<|eol|><|sor|>That's like trying to pick a lock when the key was under the doormat all along<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | RadiatingLight | 7bbhfp | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|eols|><|endoftext|> | 905 |
programminghorror | KrevanSerKay | dpgrpzx | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>[deleted]<|eor|><|sor|>I didn't even notice it's using a different random number EVERY SINGLE TIME until I saw your comment... Ugh.
Presumably
> return (int)Math.random()*10;
would have done t... | 191 |
programminghorror | Garbaz | dpgrz27 | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>My guess:
They at first only had the `if` statements and were confused that the code didn't always return, and just slapped a `while(true)` around it to fix that.
Quite horrific.<|eor|><|eols|><|... | 92 |
programminghorror | ToadingAround | dpgsks1 | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>[deleted]<|eor|><|sor|>I didn't even notice it's using a different random number EVERY SINGLE TIME until I saw your comment... Ugh.
Presumably
> return (int)Math.random()*10;
would have done t... | 71 |
programminghorror | gdubrocks | dpgs837 | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>My favourite part is the method name.<|eor|><|eols|><|endoftext|> | 49 |
programminghorror | thenickdude | dpgtk5h | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>[deleted]<|eor|><|sor|>I didn't even notice it's using a different random number EVERY SINGLE TIME until I saw your comment... Ugh.
Presumably
> return (int)Math.random()*10;
would have done t... | 42 |
programminghorror | ToadingAround | dpgxuzk | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>[deleted]<|eor|><|sor|>I didn't even notice it's using a different random number EVERY SINGLE TIME until I saw your comment... Ugh.
Presumably
> return (int)Math.random()*10;
would have done t... | 37 |
programminghorror | HugoNikanor | dpgxt0q | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>Come on, there's no way any human would be able to understand anything but the above code. Such a thing as
return floor(Math.random() * 10);
would simple be inconceivable for the average man.... | 29 |
programminghorror | pcopley | dphjnkx | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|> public static int random()
{
return 4; // Determined by random dice roll
}
I forget where I saw that, but it is apropos.<|eor|><|eols|><|endoftext|> | 23 |
programminghorror | Stonegray | dpgxd4o | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>My favourite part is the method name.<|eor|><|sor|>I like the 20 calls to the math library <|eor|><|eols|><|endoftext|> | 21 |
programminghorror | alzee76 | dph4l0o | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>I think this is the algorithm comcast is using to determine if my packets get through today..<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | HarryNews | dphkjzj | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|> public static int random()
{
return 4; // Determined by random dice roll
}
I forget where I saw that, but it is apropos.<|eor|><|sor|>That's from xkcd
https://xkcd.com/221/<|eo... | 17 |
programminghorror | thenickdude | dphtrfd | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>[deleted]<|eor|><|sor|>I didn't even notice it's using a different random number EVERY SINGLE TIME until I saw your comment... Ugh.
Presumably
> return (int)Math.random()*10;
would have done t... | 16 |
programminghorror | wuntchtime | dpgrapb | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>If only there was a way for the interval from 0 to 1 to be divided equally into ten intervals without leaving any holes like this! Moreover, if only there was some sort of function to select random... | 15 |
programminghorror | gsuberland | dpgzvr2 | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>[deleted]<|eor|><|sor|>These are solid estimates, but to calculate the real probability you'd need an infinite series due to the discontinuity in each group and the `while(true)`. Madness.<|eor|><|... | 14 |
programminghorror | Jugad | dphg7ub | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A sampling of this function (in python) gives a similar distribution... your calculation is reasonably close (good job).
from random import random
from pprint import... | 14 |
programminghorror | henrebotha | dpgwefo | <|sols|><|sot|>Most Efficient Random Function I've Ever Seen!<|eot|><|sol|>https://i.redd.it/3kwrwwu71iwz.png<|eol|><|sor|>Where did you find this? From a student (I hope) ? From a coworker (god forbid) ? I'd love to hear contexts for where the nightmare fuel originated so I can feel better there isn't some production ... | 14 |
programminghorror | GreenGriffin8 | r168bw | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|eols|><|endoftext|> | 903 |
programminghorror | omg_drd4_bbq | hlwlt2s | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I can't understand ~~why anybody would do~~ this.
(I've read through Learn you a haskell and it's still all alien to me, tbf if I wrote it day to day it'd probably stick)<|eor|><|eols|><|endoftext... | 250 |
programminghorror | D4SM4DD1N | hlwoiw7 | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I can't understand ~~why anybody would do~~ this.
(I've read through Learn you a haskell and it's still all alien to me, tbf if I wrote it day to day it'd probably stick)<|eor|><|sor|>it's pretty ... | 195 |
programminghorror | b9ntt | hlwt7rd | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I can't understand ~~why anybody would do~~ this.
(I've read through Learn you a haskell and it's still all alien to me, tbf if I wrote it day to day it'd probably stick)<|eor|><|sor|>it's pretty ... | 155 |
programminghorror | segft | hlwoeq4 | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>Oh god, running `length . show` on every single number tested...
Should have just compared the value to 10^999
Edit: off by one error<|eor|><|eols|><|endoftext|> | 89 |
programminghorror | magic_mud | hlwt84u | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I couldn't help but take a crack at simplifying this. Since the f function doesn't have to do printing we remove print and put it in main instead:
f :: Integer -> Integer -> Integer -> Integer... | 59 |
programminghorror | NoahTheDuke | hlx2i0b | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I can't understand ~~why anybody would do~~ this.
(I've read through Learn you a haskell and it's still all alien to me, tbf if I wrote it day to day it'd probably stick)<|eor|><|sor|>it's pretty ... | 58 |
programminghorror | gipp | hlwqee9 | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>Oh god, running `length . show` on every single number tested...
Should have just compared the value to 10^999
Edit: off by one error<|eor|><|sor|>Yeah this is the only problem with the code (adm... | 43 |
programminghorror | TARN4T1ON | hlx276l | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I can't understand ~~why anybody would do~~ this.
(I've read through Learn you a haskell and it's still all alien to me, tbf if I wrote it day to day it'd probably stick)<|eor|><|sor|>it's pretty ... | 33 |
programminghorror | kbielefe | hlww1kl | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>Oh god, running `length . show` on every single number tested...
Should have just compared the value to 10^999
Edit: off by one error<|eor|><|sor|>> Edit: off by one error
*That's* why you do it... | 25 |
programminghorror | DonkeyTeeth2013 | hlwo8yu | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I've never learned Haskell, but it looks like it prints ~~the 1000th fibonacci number?~~ how many fibonacci iterations is takes to get to a 1000 or higher.<|eor|><|sor|>Close, it prints the index o... | 24 |
programminghorror | Rrrrry123 | hlwr25v | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>Begon with the functional programming! Don't you know it's OOP or bust?!
In all seriousness, I'm really happy my school's computer science major took a semester to teach a functional programing la... | 21 |
programminghorror | Archmage199 | hlwtxdn | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>Haskhell. Terror in text form. Along with forth and APL<|eor|><|sor|>Haskell is not the problem here.<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | bric12 | hlxajv1 | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I can't understand ~~why anybody would do~~ this.
(I've read through Learn you a haskell and it's still all alien to me, tbf if I wrote it day to day it'd probably stick)<|eor|><|sor|>it's pretty ... | 16 |
programminghorror | Gaareth | hly2z9u | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>Begon with the functional programming! Don't you know it's OOP or bust?!
In all seriousness, I'm really happy my school's computer science major took a semester to teach a functional programing la... | 15 |
programminghorror | TheOccasionalTachyon | hm0e0gb | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I couldn't help but take a crack at simplifying this. Since the f function doesn't have to do printing we remove print and put it in main instead:
f :: Integer -> Integer -> Integer -> Integer... | 11 |
programminghorror | kbielefe | hlxdq78 | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>Oh god, running `length . show` on every single number tested...
Should have just compared the value to 10^999
Edit: off by one error<|eor|><|sor|>> Edit: off by one error
*That's* why you do it... | 11 |
programminghorror | chaosTechnician | hlwnohp | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I've never learned Haskell, but it looks like it prints ~~the 1000th fibonacci number?~~ how many fibonacci iterations is takes to get to a 1000 or higher.<|eor|><|eols|><|endoftext|> | 10 |
programminghorror | mortelsson | hlxl3fl | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>The real horror is that `f`, `a`, `b`, and `i` are *fucking horrible* identifiers.<|eor|><|sor|>```f``` is not terribly descriptive, but then again it's a project euler solution. ```a```, ```b```, ... | 10 |
programminghorror | ZylonBane | hlx958b | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>>I hate myself for writing this ngl
It's okay, I hate people who write ngl too.<|eor|><|eols|><|endoftext|> | 9 |
programminghorror | poemsavvy | hm0antf | <|sols|><|sot|>I can't understand why anybody would do this.<|eot|><|sol|>https://i.redd.it/hjn7uuk6yj181.png<|eol|><|sor|>I couldn't help but take a crack at simplifying this. Since the f function doesn't have to do printing we remove print and put it in main instead:
f :: Integer -> Integer -> Integer -> Integer... | 9 |
programminghorror | lucSurMontaine | q41o0n | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|eols|><|endoftext|> | 904 |
programminghorror | HTTP_404_NotFound | hfvm3u7 | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>One minute? That is pretty fast.... given the atrocity which is occuring.<|eor|><|eols|><|endoftext|> | 207 |
programminghorror | P0L1Z1STENS0HN | hfvm8xt | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>This is not code horror. Fetching all elements from the database and putting them into the page as options e... | 157 |
programminghorror | SAmaruVMR | hfvuo9q | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>Love the naming convention chose by the programmer. *DummyClass*<|eor|><|eols|><|endoftext|> | 120 |
programminghorror | TimeToBecomeEgg | hfvubmt | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>This is not code horror. Fetching all elements from the database and putting them into the page as options e... | 116 |
programminghorror | Vac1911 | hfwgwl4 | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>Calling your DB connection inside a view? Good lord this boy needs ~~jesus~~ MVC<|eor|><|eols|><|endoftext|> | 78 |
programminghorror | DB6 | hfw5jte | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>One minute? That is pretty fast.... given the atrocity which is occuring.<|eor|><|sor|>I was going to say, e... | 65 |
programminghorror | robclancy | hfwaqya | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>One minute? That is pretty fast.... given the atrocity which is occuring.<|eor|><|sor|>I was going to say, e... | 58 |
programminghorror | Goodie__ | hfwd0hd | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>This is not code horror. Fetching all elements from the database and putting them into the page as options e... | 56 |
programminghorror | Rican7 | hfwa429 | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>This is not code horror. Fetching all elements from the database and putting them into the page as options e... | 44 |
programminghorror | NotASucker | hfxnief | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>Calling your DB connection inside a view? Good lord this boy needs ~~jesus~~ MVC<|eor|><|sor|>ThE cOmPiLeR w... | 25 |
programminghorror | TheHoratian | hfw8y3r | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>This is not code horror. Fetching all elements from the database and putting them into the page as options e... | 25 |
programminghorror | _CTI_ | hfw7cyw | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>What can be done to optimize this with a large number of rows?<|eor|><|sor|>Depends on what you're trying to... | 21 |
programminghorror | nikoked | hfvuxhs | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>The real horror here is the light mode<|eor|><|eols|><|endoftext|> | 19 |
programminghorror | TheHazardOfLife | hfvzvof | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>Which programming language / framework am I seeing here? Looks funny, and looks like it could really use som... | 17 |
programminghorror | Xaxxus | hfy50s0 | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>This is not code horror. Fetching all elements from the database and putting them into the page as options e... | 14 |
programminghorror | ForgetTheRuralJuror | hfvwnsj | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>The real horror here is the light mode<|eor|><|sor|>The light, it burns us! *Gollum*<|eor|><|eols|><|endofte... | 13 |
programminghorror | Lystrodom | hfw3tbr | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>This is not code horror. Fetching all elements from the database and putting them into the page as options e... | 12 |
programminghorror | tmukingston | hfvzblh | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>Which programming language / framework am I seeing here? Looks funny, and looks like it could really use som... | 9 |
programminghorror | Captain2Phones_ | hfw2pxp | <|sols|><|sot|>The code retrieves over 100000 string from the database and renders 100000 option element on the UI. It takes 1 minute to be rendered.<|eot|><|sol|>https://i.redd.it/3nngawy3ozr51.png<|eol|><|sor|>Looks like JSP to me<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | thecoty | g2ij57 | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|eols|><|endoftext|> | 897 |
programminghorror | GentlemenBehold | fnlqle3 | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Catched<|eor|><|eols|><|endoftext|> | 241 |
programminghorror | FateJH | fnlrqrg | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Catched<|eor|><|sor|>Caughted.<|eor|><|eols|><|endoftext|> | 129 |
programminghorror | Tasgall | fnm374w | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Second best - my favorite documentation was for a .NET function on MSDN along the lines of "EnableSomething". The description was, "Disables Something".
Someone had fucked up the impleme... | 99 |
programminghorror | AlphaGamer753 | fnlsekq | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Catched<|eor|><|sor|>Caughted.<|eor|><|sor|>Cautchghed<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | nrith | fnlwaa1 | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Catched<|eor|><|sor|>```
do {
try write(usefulComment: insert session)
} catched {
print(Done catched an error: \(error.localizedDescription))
}
```<|eor|><|eols|><|endoftext|> | 40 |
programminghorror | broken-neurons | fnlzioi | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Catched<|eor|><|sor|>Caughted.<|eor|><|sor|>Cautchghed<|eor|><|sor|>Catcheted<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | Sassbjorn | fnmbopl | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Second best - my favorite documentation was for a .NET function on MSDN along the lines of "EnableSomething". The description was, "Disables Something".
Someone had fucked up the impleme... | 30 |
programminghorror | tigie11 | fnm61n8 | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Catched<|eor|><|sor|>Caughted.<|eor|><|sor|>Cautchghed<|eor|><|sor|>Catcheted<|eor|><|sor|>Dropn't<|eor|><|eols|><|endoftext|> | 30 |
programminghorror | kpagcha | fnlygb7 | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Instructions unclear - penis stuck in the microwave<|eor|><|sor|>Don't you mean penis catched in the microwave?<|eor|><|eols|><|endoftext|> | 29 |
programminghorror | truh | fnlwntj | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>It's a not that uncommon practice to first lay out your code in comments and than implement it step by step. Maybe that's what happened here.
edit: whoops op wrote the code themselves.<|... | 26 |
programminghorror | OsantoR | fnllnib | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Instructions unclear - penis stuck in the microwave<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | kokoseij | fnm4gtj | <|sols|><|sot|>Just catched myself writing the best documentation ever<|eot|><|sol|>https://i.redd.it/ux54iwnbl7t41.jpg<|eol|><|sor|>Catched<|eor|><|sor|>Caughted.<|eor|><|sor|>Cough cough.<|eor|><|sor|>oh shIT GET AWAY FROM ME<|eor|><|eols|><|endoftext|> | 19 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.