subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | Tannerleaf | fwk7ibh | <|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>This reminds me of a job site from a while ago, I can't remember which one. A friend of mine sent me a link to a job listing I might be interested in... I applied as my friend.
Turns out the website was passing around the us... | 31 |
programminghorror | wescotte | fwk8l1v | <|sols|><|sot|>yo what the .. ??<|eot|><|sol|>https://i.redd.it/8cwqdd8zn3851.png<|eol|><|sor|>Don't worry. When you type your password it looks like to me. Go ahead. Try it out!<|eor|><|sor|>Works with credit cards too!
CVV2:
^/s<|eor|><|sor|>Nobody accepts American Express.<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | analyticheir | ufz4gh | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|eols|><|endoftext|> | 1,574 |
programminghorror | Ok_Detective5953 | i6wkamm | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>If theres an error, it must be because the package *isnt installed*right? Couldnt possibly be *anything else* of course<|eor|><|eols|><|endoftext|> | 438 |
programminghorror | nh_cham | i6wp1o9 | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Yeah but what if pip3 is not installed? Better add an exception handler for that as well!<|eor|><|eols|><|endoftext|> | 316 |
programminghorror | qwertysrj | i6wvnax | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Who is going to provide password for sudo?<|eor|><|eols|><|endoftext|> | 214 |
programminghorror | RapidCatLauncher | i6x7ksb | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>If theres an error, it must be because the package *isnt installed*right? Couldnt possibly be *anything else* of course<|eor|><|sor|>If only there was an exception specific to import er... | 196 |
programminghorror | FeastOfChildren | i6xbgfe | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Who is going to provide password for sudo?<|eor|><|sor|> os.getenv('password')<|eor|><|eols|><|endoftext|> | 190 |
programminghorror | GroundStateGecko | i6x2xbc | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Yeah but what if pip3 is not installed? Better add an exception handler for that as well!<|eor|><|sor|>Better download a custom python environment then delete the original rubbish.<|eor... | 120 |
programminghorror | MiataCory | i6xbbk1 | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Yeah but what if pip3 is not installed? Better add an exception handler for that as well!<|eor|><|sor|>Better download a custom python environment then delete the original rubbish.<|eor... | 86 |
programminghorror | Victorino__ | i6x8lem | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Who is going to provide password for sudo?<|eor|><|sor|>`input("Password for sudo? ")`, of course!<|eor|><|eols|><|endoftext|> | 82 |
programminghorror | dben89x | i6y84wi | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Who is going to provide password for sudo?<|eor|><|sor|> os.getenv('password')<|eor|><|sor|>os.workWithoutErrors<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | TanteiKody | i6wy4o8 | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Who is going to provide password for sudo?<|eor|><|sor|>Windows: yes<|eor|><|eols|><|endoftext|> | 55 |
programminghorror | daikatana | i6x04yn | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>I can see where they're coming from. "All right kids, want to make cool robots? First, let's learn about pip, sudo, root privileges, packages, importing and blah blah blah." You just lo... | 54 |
programminghorror | kaszak696 | i6xzb07 | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Who is going to provide password for sudo?<|eor|><|sor|>Maybe it assumes Raspbian, which used to have
pi ALL=(ALL) NOPASSWD: ALL
for it's default user account. Well, it still incl... | 47 |
programminghorror | SBolo | i6xyerf | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>If theres an error, it must be because the package *isnt installed*right? Couldnt possibly be *anything else* of course<|eor|><|sor|>If only there was an exception specific to import er... | 39 |
programminghorror | jazzmester | i6wi13m | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Aaaah! Set it on fire!<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | healplease | i6wos07 | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>ok and if device is not connected to the internet, you screwed<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | dafelst | i6wyuaa | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>good luck to Windows users lol<|eor|><|sor|>Pretty sure this is Raspberry Pi specific code, so if you're trying to run it on windows, good luck indeed.<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | qwertysrj | i6wycvp | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>Who is going to provide password for sudo?<|eor|><|sor|>Windows: yes<|eor|><|sor|>Windows might not even have pip or python in PATH. It's pointless to even consider<|eor|><|eols|><|endo... | 29 |
programminghorror | SpicyElectrons | i6wpnsy | <|sols|><|sot|>One of several gems from a quadruped robot kit's codebase<|eot|><|sol|>https://i.redd.it/eibkqmof1vw81.png<|eol|><|sor|>good luck to Windows users lol<|eor|><|eols|><|endoftext|> | 23 |
programminghorror | TheCreat1ve | oceh70 | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|eols|><|endoftext|> | 1,568 |
programminghorror | raadted | h3trnen | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Sqli goes brrrrrrrrr<|eor|><|eols|><|endoftext|> | 309 |
programminghorror | _ahrs | h3u0366 | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Im trying to learn more in general about programming, what did he do wrong?<|eor|><|sor|>I think [this comment](/r/programminghorror/comments/oceh70/some_developers_are_really_overcomplica... | 181 |
programminghorror | daverave1212 | h3tyywx | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Abstractization of SQL is a pet peeve of mine. Why does every language 'abstractize' SQL so much? SQL is like the simplest way you can interract with a database. Yet here I am writing diff... | 175 |
programminghorror | amoliski | h3uc7o4 | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Im trying to learn more in general about programming, what did he do wrong?<|eor|><|sor|>SQL is a database interfacing language where you describe the output you want instead of the method... | 129 |
programminghorror | between0and1 | h3u5zzw | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Im trying to learn more in general about programming, what did he do wrong?<|eor|><|sor|>I think [this comment](/r/programminghorror/comments/oceh70/some_developers_are_really_overcomplica... | 110 |
programminghorror | v_maria | h3u4809 | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Abstractization of SQL is a pet peeve of mine. Why does every language 'abstractize' SQL so much? SQL is like the simplest way you can interract with a database. Yet here I am writing diff... | 91 |
programminghorror | brj5_yt | h3txgmt | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Im trying to learn more in general about programming, what did he do wrong?<|eor|><|eols|><|endoftext|> | 66 |
programminghorror | i3adme | h3vh0ll | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Sqli goes brrrrrrrrr<|eor|><|sor|>SQL injection go brrrr!<|eor|><|eols|><|endoftext|> | 66 |
programminghorror | Perahoky | h3tubrq | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Thats totally legit. Sure, this is a simple case but its evolving.
At least, this way you are able to capsulate and paramterize a sql query string.
We did it the same way (but much more ... | 53 |
programminghorror | TheCreat1ve | h3tw6gn | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Thats totally legit. Sure, this is a simple case but its evolving.
At least, this way you are able to capsulate and paramterize a sql query string.
We did it the same way (but much more ... | 48 |
programminghorror | bankrobba | h3usape | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Sqli goes brrrrrrrrr<|eor|><|sor|>Poor group by statement<|eor|><|eols|><|endoftext|> | 46 |
programminghorror | redfoggg | h3uj00s | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Sometimes in this sub i kinda understand why, but in this case, maybe because i'm a C# developer, i have no idea why this is done this way.
Just why?<|eor|><|eols|><|endoftext|> | 41 |
programminghorror | yeusk | h3ueqac | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Abstractization of SQL is a pet peeve of mine. Why does every language 'abstractize' SQL so much? SQL is like the simplest way you can interract with a database. Yet here I am writing diff... | 41 |
programminghorror | daverave1212 | h3ub5q9 | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Abstractization of SQL is a pet peeve of mine. Why does every language 'abstractize' SQL so much? SQL is like the simplest way you can interract with a database. Yet here I am writing diff... | 37 |
programminghorror | Zacho40 | h3vne91 | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Im trying to learn more in general about programming, what did he do wrong?<|eor|><|sor|>I think [this comment](/r/programminghorror/comments/oceh70/some_developers_are_really_overcomplica... | 35 |
programminghorror | BrazilianTerror | h3udmpm | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Abstractization of SQL is a pet peeve of mine. Why does every language 'abstractize' SQL so much? SQL is like the simplest way you can interract with a database. Yet here I am writing diff... | 31 |
programminghorror | ClauVex | h3w13xr | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Im trying to learn more in general about programming, what did he do wrong?<|eor|><|sor|>I think [this comment](/r/programminghorror/comments/oceh70/some_developers_are_really_overcomplica... | 26 |
programminghorror | AttackOfTheThumbs | h3ud83i | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Abstractization of SQL is a pet peeve of mine. Why does every language 'abstractize' SQL so much? SQL is like the simplest way you can interract with a database. Yet here I am writing diff... | 24 |
programminghorror | doubleyuhtee | h3wwi33 | <|sols|><|sot|>Some developers are really overcomplicating everything<|eot|><|sol|>https://i.redd.it/28t16hl00u871.png<|eol|><|sor|>Im trying to learn more in general about programming, what did he do wrong?<|eor|><|sor|>SQL is a database interfacing language where you describe the output you want instead of the method... | 24 |
programminghorror | BeanieTheTechie | wemf1m | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|eols|><|endoftext|> | 1,575 |
programminghorror | LowBatteryAndroid | iip25qr | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>The same happened to me with trigonometric functions, just some time after I started learning programming. I wanted to move some character across the screen and thought "I need trigonometric fu... | 224 |
programminghorror | NefastoCipa | iipjleb | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>Hey kid, wanna know a protip?
return boolean == false;
That's what you call "optimization". I'm a professional. <|eor|><|eols|><|endoftext|> | 152 |
programminghorror | cassiofachinelli | iipl9hv | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>Hey kid, wanna know a protip?
return boolean == false;
That's what you call "optimization". I'm a professional. <|eor|><|sor|>How is this more optimize then return !boolean?
Seriously intere... | 102 |
programminghorror | ZeMuffinMn | iipnsi0 | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>The same happened to me with trigonometric functions, just some time after I started learning programming. I wanted to move some character across the screen and thought "I need trigonometric fu... | 101 |
programminghorror | fiskfisk | iiphc0l | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>But hey, you solved it using the knowledge you had! It worked!<|eor|><|eols|><|endoftext|> | 95 |
programminghorror | ZeMuffinMn | iiq6qes | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>The same happened to me with trigonometric functions, just some time after I started learning programming. I wanted to move some character across the screen and thought "I need trigonometric fu... | 46 |
programminghorror | joshuakb2 | iipptk9 | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>Pro tip: p == q is equivalent to p XNOR q<|eor|><|eols|><|endoftext|> | 28 |
programminghorror | Flashbek | iiq3kbs | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>The same happened to me with trigonometric functions, just some time after I started learning programming. I wanted to move some character across the screen and thought "I need trigonometric fu... | 26 |
programminghorror | Flashbek | iiq2ujr | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>I remember when I didn't know the existence of the mod operato and wrote myself a 60ish line code to get the rest of a division. It was literally the first thing I did by myself because I wante... | 25 |
programminghorror | NefastoCipa | iipltpm | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>Hey kid, wanna know a protip?
return boolean == false;
That's what you call "optimization". I'm a professional. <|eor|><|sor|>How is this more optimize then return !boolean?
Seriously intere... | 23 |
programminghorror | nimitzhunter | iipkjiy | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>Hey kid, wanna know a protip?
return boolean == false;
That's what you call "optimization". I'm a professional. <|eor|><|sor|>How is this more optimize then return !boolean?
Seriously intere... | 22 |
programminghorror | Aashishkebab | iiqihah | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>Pro tip: p == q is equivalent to p XNOR q<|eor|><|sor|>If they didn't know "not", they definitely didn't know XOR and XNOR.<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | BenjaminGeiger | iiqb5hb | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>It feels like a large chunk of the code posted here qualifies as "noob code", which shouldn't be embarrassing if it's written by a noob.
As useless as that code is, it shows you had the right ... | 20 |
programminghorror | _meddlin_ | iir024v | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>But hey, you solved it using the knowledge you had! It worked!<|eor|><|sor|>Came here to say this! We can laugh about it now, but hey, thats really good learning experience!<|eor|><|eols|><|end... | 19 |
programminghorror | BeanieTheTechie | iipl4sa | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>I was writing my first game and someone said that I could switch the direction on collision with x=-x (mind blown, I used to use X*=-1)<|eor|><|soopr|>formatting tip: put spaces between literal... | 19 |
programminghorror | Flashbek | iiq78b1 | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>The same happened to me with trigonometric functions, just some time after I started learning programming. I wanted to move some character across the screen and thought "I need trigonometric fu... | 17 |
programminghorror | lefsler | iipkv4f | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>I was writing my first game and someone said that I could switch the direction on collision with x=-x (mind blown, I used to use X*=-1)<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | elpioramirez | iiq21pd | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>Plot twist it doesnt validate input so a string true returns true<|eor|><|eols|><|endoftext|> | 12 |
programminghorror | Aashishkebab | iiqijvj | <|sols|><|sot|>throwback to before i knew about the not operator<|eot|><|sol|>https://i.redd.it/y3qg473a2df91.png<|eol|><|sor|>Plot twist it doesnt validate input so a string true returns true<|eor|><|sor|>If it's JavaScript, then yeah.<|eor|><|eols|><|endoftext|> | 12 |
programminghorror | vladvlad002 | m019mq | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|eols|><|endoftext|> | 1,562 |
programminghorror | A_Stan | gq5oljr | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Looks like a code written by a mathematician. I've ran into a couple of similar looking projects during my career.<|eor|><|eols|><|endoftext|> | 681 |
programminghorror | radiantplanet | gq5vr0o | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Tried to pretty it up and add comments
TLDR; Looks like it's reading a file and permuting arrays in the file then writing them out to another file.
I... | 276 |
programminghorror | SlicedBalls69 | gq6puyc | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Looks like a code written by a mathematician. I've ran into a couple of similar looking projects during my career.<|eor|><|sor|>Agreed. When our math t... | 259 |
programminghorror | just_a_dude2727 | gq6ysnr | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Looks like a code written by a mathematician. I've ran into a couple of similar looking projects during my career.<|eor|><|sor|>Agreed. When our math t... | 149 |
programminghorror | backtickbot | gq5vs2m | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Tried to pretty it up and add comments
TLDR; Looks like it's reading a file and permuting arrays in the file then writing them out to another file.
I... | 114 |
programminghorror | Duff_Hoodigan | gq5f6s7 | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>As someone who can't c++ can anyone explain the meaning of whatever this is/does.<|eor|><|eols|><|endoftext|> | 98 |
programminghorror | silverBlessing22 | gq5ov60 | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>As someone who can't c++ can anyone explain the meaning of whatever this is/does.<|eor|><|sor|>It's opening a file, reading an manipulating values and ... | 87 |
programminghorror | Ning1253 | gq5onr3 | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>That's why I hate with passion school competitions in programming. For this very reason.
I would imagine that in vast majority of industries code q... | 81 |
programminghorror | wikipedia_answer_bot | gq6vg73 | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Looks like a code written by a mathematician. I've ran into a couple of similar looking projects during my career.<|eor|><|sor|>Agreed. When our math t... | 81 |
programminghorror | lachyBalboa | gq5vfab | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Were they assessed on number of lines used?
Seems like this would be semi-understanable if it wasns't a condensed mashed potato. Why have multiple... | 72 |
programminghorror | domestos_maximus | gq5k3k9 | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>That's why I hate with passion school competitions in programming. For this very reason.
I would imagine that in vast majority of industries code q... | 71 |
programminghorror | sebzanga | gq5ih9i | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>[Obfuscation](https://en.wikipedia.org/wiki/Obfuscation_(software))<|eor|><|eols|><|endoftext|> | 65 |
programminghorror | radiantplanet | gq5whys | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Tried to pretty it up and add comments
TLDR; Looks like it's reading a file and permuting arrays in the file then writing them out to another file.
I... | 59 |
programminghorror | AFlyingYetOddCat | gq5sq6g | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>As someone who can't c++ can anyone explain the meaning of whatever this is/does.<|eor|><|sor|>It's opening a file, reading an manipulating values and ... | 56 |
programminghorror | SlicedBalls69 | gq6z5y1 | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Looks like a code written by a mathematician. I've ran into a couple of similar looking projects during my career.<|eor|><|sor|>Agreed. When our math t... | 52 |
programminghorror | cyber4dude | gq6aji3 | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Tried to pretty it up and add comments
TLDR; Looks like it's reading a file and permuting arrays in the file then writing them out to another file.
I... | 50 |
programminghorror | Smart-memer | gq6wl8h | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>Looks like a code written by a mathematician. I've ran into a couple of similar looking projects during my career.<|eor|><|sor|>Agreed. When our math t... | 43 |
programminghorror | mustang__1 | gq5ztcy | <|sols|><|sot|>So this is the source code of the official solution of a problem from the National Olympiad<|eot|><|sol|>https://i.redd.it/nu0qufjamol61.png<|eol|><|sor|>That's why I hate with passion school competitions in programming. For this very reason.
I would imagine that in vast majority of industries code q... | 40 |
programminghorror | majcek | vsluy6 | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|eols|><|endoftext|> | 1,561 |
programminghorror | elchignacio | if2xd6l | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>Better safe than sorry. Something might have slipped in between lines 120 and 121.<|eor|><|eols|><|endoftext|> | 320 |
programminghorror | FalseWait7 | if3p1bs | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>Better safe than sorry. Something might have slipped in between lines 120 and 121.<|eor|><|sor|>Yeah that's called line injection. Like sql injection but for lines. You never know.<|eor|><|eols|><|endoftext|> | 142 |
programminghorror | user32532 | if2xsib | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>Maybe if they change it on some later versions that new() isn't empty anymore? Gotta be prepared lol<|eor|><|eols|><|endoftext|> | 121 |
programminghorror | TheKiller36_real | if20p4p | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I've never seen `new()` before lol<|eor|><|eols|><|endoftext|> | 114 |
programminghorror | Sklyanskiy | if219ko | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I've never seen `new()` before lol<|eor|><|sor|>It's new feature of C# 9.0. It was added recently.<|eor|><|eols|><|endoftext|> | 108 |
programminghorror | t4rtpickle | if3tkgk | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>Maybe if they change it on some later versions that new() isn't empty anymore? Gotta be prepared lol<|eor|><|sor|>new() isnt empty unless you pay for the unlimited version. Its only $999.99 a month! Otherwise, the varia... | 96 |
programminghorror | mianori | if4g5lw | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>Better safe than sorry. Something might have slipped in between lines 120 and 121.<|eor|><|sor|>Yeah that's called line injection. Like sql injection but for lines. You never know.<|eor|><|sor|>Never do lines nor inject... | 69 |
programminghorror | tim_skellington | if2xxga | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>because constructors always be adding that "lorem ipsum" stuff.<|eor|><|eols|><|endoftext|> | 65 |
programminghorror | Javascript_above_all | if24s96 | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I've never seen `new()` before lol<|eor|><|sor|>It's new feature of C# 9.0. It was added recently.<|eor|><|sor|>The answer is probably obvious, but I assume it automatically calls the correct constructor according to th... | 63 |
programminghorror | Amromnia | if32bhk | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I've never seen `new()` before lol<|eor|><|sor|>It's new feature of C# 9.0. It was added recently.<|eor|><|sor|>The answer is probably obvious, but I assume it automatically calls the correct constructor according to th... | 57 |
programminghorror | fuj1n | if3n52y | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I've never seen `new()` before lol<|eor|><|sor|>It's new feature of C# 9.0. It was added recently.<|eor|><|sor|>The answer is probably obvious, but I assume it automatically calls the correct constructor according to th... | 45 |
programminghorror | Challos | if3xkkq | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I can understand doing it if this was in C/C++, depending on how the memory is allocated. It would be the equivalent of zeroing an array that you malloced (which isn't always required, but sometimes is).<|eor|><|eols|><... | 43 |
programminghorror | paraflaxd | if2ba2r | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>i understand the horror. java is awful. get some help<|eor|><|sor|>This is c#<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | Sklyanskiy | if2521i | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I've never seen `new()` before lol<|eor|><|sor|>It's new feature of C# 9.0. It was added recently.<|eor|><|sor|>The answer is probably obvious, but I assume it automatically calls the correct constructor according to th... | 38 |
programminghorror | user32532 | if47wr2 | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>Maybe if they change it on some later versions that new() isn't empty anymore? Gotta be prepared lol<|eor|><|sor|>new() isnt empty unless you pay for the unlimited version. Its only $999.99 a month! Otherwise, the varia... | 34 |
programminghorror | DasEvoli | if2rfo7 | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I've never seen `new()` before lol<|eor|><|sor|>It's new feature of C# 9.0. It was added recently.<|eor|><|sor|>The answer is probably obvious, but I assume it automatically calls the correct constructor according to th... | 32 |
programminghorror | Levaru | if524mu | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>Maybe if they change it on some later versions that new() isn't empty anymore? Gotta be prepared lol<|eor|><|sor|>new() isnt empty unless you pay for the unlimited version. Its only $999.99 a month! Otherwise, the varia... | 29 |
programminghorror | harman097 | if3j84p | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>Is it *horror* tho?
Maybe more like a minor disturbance?<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | SatisfactionHot3363 | if2af0d | <|sols|><|sot|>Gotta make sure it's empty.<|eot|><|sol|>https://i.imgur.com/9tzhJWP.jpg<|eol|><|sor|>I've never seen `new()` before lol<|eor|><|sor|>It's new feature of C# 9.0. It was added recently.<|eor|><|sor|>The answer is probably obvious, but I assume it automatically calls the correct constructor according to th... | 21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.