subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | mikewirkijowski | ib0fn4c | <|sols|><|sot|>If you find yourself pressing Ctrl-V while coding, maybe try loops.<|eot|><|sol|>https://i.redd.it/xeolbgk9q9391.png<|eol|><|soopr|>Just a list of things:
- python already has arrays containing letters and digits in the builtin `string` module
- it doesnt have to be a list - strings are iterable and thus... | 21 |
programminghorror | Global_Release_4182 | ib0kbzu | <|sols|><|sot|>If you find yourself pressing Ctrl-V while coding, maybe try loops.<|eot|><|sol|>https://i.redd.it/xeolbgk9q9391.png<|eol|><|sor|>Looked up 'loops' on Stack Overflow, copied the code, went to paste, and thought no, maybe try loops! So I looked up loops on Stack Overflow...<|eor|><|sor|>Don't look up recu... | 21 |
programminghorror | madx01 | ib0nbz2 | <|sols|><|sot|>If you find yourself pressing Ctrl-V while coding, maybe try loops.<|eot|><|sol|>https://i.redd.it/xeolbgk9q9391.png<|eol|><|sor|>Don't look up recursion on stack overflow<|eor|><|sor|>Don't look up recursion on stack overflow<|eor|><|sor|>Dont look up recursion on stack overflow<|eor|><|sor|>Dont look u... | 17 |
programminghorror | jaleCro | iayt1yq | <|sols|><|sot|>If you find yourself pressing Ctrl-V while coding, maybe try loops.<|eot|><|sol|>https://i.redd.it/xeolbgk9q9391.png<|eol|><|sor|>boze sacuvaj<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | DavidDual | ib0mz2d | <|sols|><|sot|>If you find yourself pressing Ctrl-V while coding, maybe try loops.<|eot|><|sol|>https://i.redd.it/xeolbgk9q9391.png<|eol|><|sor|>Looked up 'loops' on Stack Overflow, copied the code, went to paste, and thought no, maybe try loops! So I looked up loops on Stack Overflow...<|eor|><|sor|>Don't look up recu... | 16 |
programminghorror | RedstoneTehnik | ib09vvz | <|sols|><|sot|>If you find yourself pressing Ctrl-V while coding, maybe try loops.<|eot|><|sol|>https://i.redd.it/xeolbgk9q9391.png<|eol|><|sor|> $result = null;
$chars = array_merge(range('a', 'z'), range('A', 'Z'), range(0, 9));
for($i = 0; $i < 10; $i++) {
$result = $result.$chars[array_rand($char... | 15 |
programminghorror | orzeszkiziemne | ttnu8t | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|eols|><|endoftext|> | 1,144 |
programminghorror | Rafael20002000 | i2z1a1t | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>12 nested for loops.
O( n^12 )<|eor|><|sor|>We can shorten this to O(no)<|eor|><|eols|><|endoftext|> | 790 |
programminghorror | savantshuia | i2yxndm | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>12 nested for loops.
O( n^12 )<|eor|><|eols|><|endoftext|> | 646 |
programminghorror | fletku_mato | i2z44xn | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>Whoever wrote this taught you two valuable lessons:
* Most code, paid or free, is absolute garbage.
* You shouldn't pay other... | 499 |
programminghorror | aah134x | i2ywzc1 | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>If you get a bug, it is easier to delete and rewrite this function than debuging it<|eor|><|eols|><|endoftext|> | 297 |
programminghorror | Any_Direction8772 | i2yw3sa | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>You paid for code ?????????????? As a dev ?<|eor|><|eols|><|endoftext|> | 208 |
programminghorror | orzeszkiziemne | i2yyvz9 | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>If you get a bug, it is easier to delete and rewrite this function than debuging it<|eor|><|soopr|>I did delete it and ended u... | 172 |
programminghorror | PranshuKhandal | i2z90uk | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>12 nested for loops.
O( n^12 )<|eor|><|sor|>We can shorten this to O(no)<|eor|><|sor|>whenever the parenthesis are obvious, y... | 146 |
programminghorror | DoYouEverJustInvert | i2z9l3h | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>You paid for code ?????????????? As a dev ?<|eor|><|soopr|>I was learning C long time ago and I needed private lessons.<|eoopr... | 138 |
programminghorror | orzeszkiziemne | i2yxymu | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>But... Does it work?<|eor|><|soopr|>No<|eoopr|><|eols|><|endoftext|> | 135 |
programminghorror | orzeszkiziemne | i2yxlxg | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>You paid for code ?????????????? As a dev ?<|eor|><|soopr|>I was learning C long time ago and I needed private lessons.<|eoopr... | 100 |
programminghorror | orzeszkiziemne | i2yyc9w | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>You paid for code ?????????????? As a dev ?<|eor|><|soopr|>I was learning C long time ago and I needed private lessons.<|eoopr... | 83 |
programminghorror | SirSqueep | i2yz2gy | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>Aint no complexity like time complexity because time complexity dont stop<|eor|><|eols|><|endoftext|> | 82 |
programminghorror | Combocore | i2zkafq | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>Whoever wrote this taught you two valuable lessons:
* Most code, paid or free, is absolute garbage.
* You shouldn't pay other... | 70 |
programminghorror | fischundfleisch | i2yw90e | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>But... Does it work?<|eor|><|eols|><|endoftext|> | 69 |
programminghorror | Any_Direction8772 | i2yxofp | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>You paid for code ?????????????? As a dev ?<|eor|><|soopr|>I was learning C long time ago and I needed private lessons.<|eoopr... | 69 |
programminghorror | orzeszkiziemne | i2yxy94 | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>12 nested for loops.
O( n^12 )<|eor|><|soopr|>Yup. Wasn't even remotely close to executing half of the loops.<|eoopr|><|eols|... | 67 |
programminghorror | Novertyhhak-Vasya | i2yv1qp | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>not even that, the variables are wtf too. These are just named "how_many_numbers" and "first" or sth lol.<|eor|><|eols|><|endo... | 62 |
programminghorror | savantshuia | i2yybm0 | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>12 nested for loops.
O( n^12 )<|eor|><|soopr|>Yup. Wasn't even remotely close to executing half of the loops.<|eoopr|><|sor|>... | 62 |
programminghorror | eloel- | i2znjkx | <|sols|><|sot|>I needed help with a task for my C course. This is a fragment of a code I paid for. With money. I paid money for it.<|eot|><|sol|>https://i.redd.it/wliuz3mhewq81.jpg<|eol|><|sor|>Whoever wrote this taught you two valuable lessons:
* Most code, paid or free, is absolute garbage.
* You shouldn't pay other... | 56 |
programminghorror | Pandapip1 | oawt55 | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|eols|><|endoftext|> | 1,145 |
programminghorror | mrprofessor007 | h3kj9np | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Imagine using goto while solving whiteboard interviews.<|eor|><|eols|><|endoftext|> | 293 |
programminghorror | Formal_Worldliness_8 | h3k43ij | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Error: girlfriend threw an exception<|eor|><|eols|><|endoftext|> | 167 |
programminghorror | Direwolf202 | h3l76xu | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Imagine using goto while solving whiteboard interviews.<|eor|><|sor|>I'd be okay with it if they could explain the potential pitfalls of goto. Whith Whiteboard interviews it's important that people remember tha... | 85 |
programminghorror | austephner | h3kexq6 | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Error: girlfriend threw an exception<|eor|><|sor|>Null exception: girlfriend doesnt exist, are you sure you the reference has a value?<|eor|><|eols|><|endoftext|> | 85 |
programminghorror | Polantaris | h3l9732 | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>I've never used goto, but I've seen some good uses for it in low-level languages. It is basically a portable version of inline assembly branch statements, which are sometimes very useful in embedded programming... | 80 |
programminghorror | Possibility_Antique | h3ku2pr | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>I've never used goto, but I've seen some good uses for it in low-level languages. It is basically a portable version of inline assembly branch statements, which are sometimes very useful in embedded programming... | 60 |
programminghorror | bistr-o-math | h3l3wzl | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>* using `goto` nowadays? Not *that* a horrifying
* bad braces style? Thats a matter of taste
* having a back door in your code? Who doesnt?
* first selecting ALL ids, then checking whether one of them is equal ... | 55 |
programminghorror | nazadus | h3lagbe | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Imagine using goto while solving whiteboard interviews.<|eor|><|sor|>I'd be okay with it if they could explain the potential pitfalls of goto. Whith Whiteboard interviews it's important that people remember tha... | 54 |
programminghorror | mrprofessor007 | h3l9xox | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Imagine using goto while solving whiteboard interviews.<|eor|><|sor|>I'd be okay with it if they could explain the potential pitfalls of goto. Whith Whiteboard interviews it's important that people remember tha... | 44 |
programminghorror | z500 | h3lhxio | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>* using `goto` nowadays? Not *that* a horrifying
* bad braces style? Thats a matter of taste
* having a back door in your code? Who doesnt?
* first selecting ALL ids, then checking whether one of them is equal ... | 36 |
programminghorror | eldamir88 | h3lixhz | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Error: girlfriend threw an exception<|eor|><|sor|>Null exception: girlfriend doesnt exist, are you sure you the reference has a value?<|eor|><|sor|>ValeError: girlfriend referenced before assigned<|eor|><|eols|... | 29 |
programminghorror | ElvinDrude | h3lf3l0 | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Imagine using goto while solving whiteboard interviews.<|eor|><|sor|>I'd be okay with it if they could explain the potential pitfalls of goto. Whith Whiteboard interviews it's important that people remember tha... | 28 |
programminghorror | Sassbjorn | h3li65x | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>* using `goto` nowadays? Not *that* a horrifying
* bad braces style? Thats a matter of taste
* having a back door in your code? Who doesnt?
* first selecting ALL ids, then checking whether one of them is equal ... | 25 |
programminghorror | FilipTheSixth | h3led58 | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>* using `goto` nowadays? Not *that* a horrifying
* bad braces style? Thats a matter of taste
* having a back door in your code? Who doesnt?
* first selecting ALL ids, then checking whether one of them is equal ... | 25 |
programminghorror | Igoory | h3kqqli | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Is it switch? That's the only place goto is allowed in C#, to jump to another case. Not preferred, but allowed.<|eor|><|sor|>In C# goto also works outside of switches<|eor|><|eols|><|endoftext|> | 24 |
programminghorror | Educational-Lemon640 | h3lrg7p | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Imagine using goto while solving whiteboard interviews.<|eor|><|sor|>I'd be okay with it if they could explain the potential pitfalls of goto. Whith Whiteboard interviews it's important that people remember tha... | 22 |
programminghorror | BOBBIJDJ | h3ksy6l | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>My IT teacher once told me to never use goto and instead use other "classic" structures like while, and that's why it doesn't make much sense in flowcharts and because of the Bhm-Jacopini theorem<|eor|><|eols|>... | 21 |
programminghorror | TheJoker273 | h3lczdp | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>I've never used goto, but I've seen some good uses for it in low-level languages. It is basically a portable version of inline assembly branch statements, which are sometimes very useful in embedded programming... | 19 |
programminghorror | HTTP_404_NotFound | h3l6p2t | <|sols|><|sot|>goto BACKDOOR; (production code)<|eot|><|sol|>https://i.redd.it/hxqznx40ie871.png<|eol|><|sor|>Which language has goto?<|eor|><|sor|>This is c#.
You never see it for a reason.... because there is a better way to do stuff, 99% of the time....<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | vitorhugomattos | k5hqfz | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|eols|><|endoftext|> | 1,144 |
programminghorror | 8bitslime | gefuuh7 | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>[deleted]<|eor|><|sor|>And with O(1) memory usage. This is quality code.<|eor|><|eols|><|endoftext|> | 237 |
programminghorror | TomNa | geey36p | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>Why are you posting my code solutions here?<|eor|><|eols|><|endoftext|> | 225 |
programminghorror | tuckmuck203 | gef489k | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>We invented loops for a reason, preferably a for loop<|eor|><|sor|>uhhh yeah but this has O(1) instead of O(n). true 10xer code right here<|eor|><|eols|><|endoftext|> | 149 |
programminghorror | BlazingThunder30 | gef4suh | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>We invented loops for a reason, preferably a for loop<|eor|><|sor|>uhhh yeah but this has O(1) instead of O(n). true 10xer code right here<|eor|><|sor|>Edited by PowerDeleteSuite for protection of my own privacy<|eor|><|eols|>... | 133 |
programminghorror | therickeffect1 | gef2dcg | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>We invented loops for a reason, preferably a for loop<|eor|><|eols|><|endoftext|> | 127 |
programminghorror | Needleroozer | gef2fs3 | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>Why are you posting my code solutions here?<|eor|><|sor|>I recognize myself in this picture.<|eor|><|eols|><|endoftext|> | 68 |
programminghorror | HelloThisIsVictor | gefjr1x | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>We invented loops for a reason, preferably a for loop<|eor|><|sor|>uhhh yeah but this has O(1) instead of O(n). true 10xer code right here<|eor|><|sor|>Edited by PowerDeleteSuite for protection of my own privacy<|eor|><|sor|>A... | 62 |
programminghorror | LividPhysics | gefvh7e | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>We invented loops for a reason, preferably a for loop<|eor|><|sor|>uhhh yeah but this has O(1) instead of O(n). true 10xer code right here<|eor|><|sor|>Edited by PowerDeleteSuite for protection of my own privacy<|eor|><|sor|>A... | 57 |
programminghorror | jlnunez89 | gef70yw | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>We invented loops for a reason, preferably a for loop<|eor|><|sor|>loops are way two /s complex /s<|eor|><|sor|>And two, too and to are always 1 edit distance away :|<|eor|><|eols|><|endoftext|> | 43 |
programminghorror | confident_mistake | gegue30 | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>[deleted]<|eor|><|sor|>And with O(1) memory usage. This is quality code.<|eor|><|sor|>Well, technically, if the input has known bounds it's possible to write a solution with a O(1) memory usage. For this problem at least. It m... | 39 |
programminghorror | leviathon01 | gef2ows | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>Redeemed for using Rust. /s<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | vitorhugomattos | gef5pw9 | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>Wait, that syntax looks familiar... what language is that? Looks a lot like the new pattern matching `switch` statements in C# 9! So that's where they got it from...<|eor|><|soopr|>Rust<|eoopr|><|eols|><|endoftext|> | 33 |
programminghorror | counterweight7 | geg5sfr | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>We invented loops for a reason, preferably a for loop<|eor|><|sor|>uhhh yeah but this has O(1) instead of O(n). true 10xer code right here<|eor|><|sor|>Edited by PowerDeleteSuite for protection of my own privacy<|eor|><|sor|>A... | 26 |
programminghorror | Gaareth | gef2yy4 | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>We invented loops for a reason, preferably a for loop<|eor|><|sor|>loops are way two /s complex /s<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | Giocri | gegv0lo | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>[deleted]<|eor|><|sor|>And with O(1) memory usage. This is quality code.<|eor|><|sor|>Well, technically, if the input has known bounds it's possible to write a solution with a O(1) memory usage. For this problem at least. It m... | 25 |
programminghorror | R4nking | geffmqa | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>Why do so many people not know about for loops? This should be beginner-level stuff.<|eor|><|sor|>This code seems like something from a beginner class, but you would be surprised. I am in the upper division courses for CS in c... | 23 |
programminghorror | Pigeonthepooper | gef6ja0 | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>Posting 8kyu codewars is low hanging fruit<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | PORTMANTEAU-BOT | gefaocc | <|sols|><|sot|>ok, i give up.<|eot|><|sol|>https://www.reddit.com/gallery/k5hqfz<|eol|><|sor|>All posts must either show terrible code, or the direct result of terrible code.<|eor|><|sor|>Swipe right<|eor|><|sor|>Swight.
***
^(Bleep-bloop, I'm a bot. This )^[portmanteau](https://en.wikipedia.org/wiki/Portmanteau) ^( ... | 21 |
programminghorror | ito_hotto_doggu | g0kax5 | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|eols|><|endoftext|> | 1,137 |
programminghorror | zacharypamela | fnaefvy | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>I'm no PHP developer, but found this in the official documentation:
> To format dates in other languages, you should use the setlocale() and strftime() functi... | 144 |
programminghorror | BLOZ_UP | fnaucyj | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>Wait why are they assigning to the month variable in the if statements?<|eor|><|sor|>It's always December.<|eor|><|eols|><|endoftext|> | 120 |
programminghorror | codenamejeff | fnas9z0 | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>I'm no PHP developer, but found this in the official documentation:
> To format dates in other languages, you should use the setlocale() and strftime() functi... | 93 |
programminghorror | BLOZ_UP | fnau8fe | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>Finally some Grade A Horror.
Completely untenable i18n with bonus accidental assignment.
<|eor|><|eols|><|endoftext|> | 42 |
programminghorror | codenamejeff | fnas4bf | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>First line : "php"
Alright I'm already horrified<|eor|><|sor|>low effort joke. are we done beating a dead horse?<|eor|><|eols|><|endoftext|> | 42 |
programminghorror | ThatSwedishBastard | fnb0sb0 | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>I've seen this in VB6 code, but with variable names in Swedish and the languages represented by numbers. That is:
`If sprak=1 Then`
`Button1.Label="Ja"` ... | 39 |
programminghorror | Mr_Redstoner | fnasda6 | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>First line : "php"
Alright I'm already horrified<|eor|><|sor|>low effort joke. are we done beating a dead horse?<|eor|><|sor|>This is reddit. I think that suf... | 36 |
programminghorror | Bacon_Destroyer | fnawwt4 | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>Wait why are they assigning to the month variable in the if statements?<|eor|><|sor|>It's always December.<|eor|><|sor|>Well, I did wish it could be Christmas ... | 31 |
programminghorror | Gilsidoo | fna26qv | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>First line : "php"
Alright I'm already horrified<|eor|><|eols|><|endoftext|> | 23 |
programminghorror | ito_hotto_doggu | fnaiiaj | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>I'm no PHP developer, but found this in the official documentation:
> To format dates in other languages, you should use the setlocale() and strftime() functi... | 20 |
programminghorror | zacharypamela | fnaslcc | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>I'm no PHP developer, but found this in the official documentation:
> To format dates in other languages, you should use the setlocale() and strftime() functi... | 17 |
programminghorror | YRYGAV | fnc806a | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>Wait why are they assigning to the month variable in the if statements?<|eor|><|sor|>It's always December.<|eor|><|sor|>Well, it could be dicembre.<|eor|><|eol... | 14 |
programminghorror | keesbeemsterkaas | fnb40hs | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>I'm no PHP developer, but found this in the official documentation:
> To format dates in other languages, you should use the setlocale() and strftime() functi... | 13 |
programminghorror | pROPEnta | fnba3p5 | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>Thanks OP. I was hoping I could wake up in a cold sweat screaming tonight.
Just when you thought you were over your night terrors...<|eor|><|eols|><|endoftex... | 12 |
programminghorror | turboPocky | fnc0a5d | <|sols|><|sot|>When your client says "My new site supports multilanguage", then you open the code:<|eot|><|sol|>https://i.redd.it/ncvspmwblls41.jpg<|eol|><|sor|>I've seen this in VB6 code, but with variable names in Swedish and the languages represented by numbers. That is:
`If sprak=1 Then`
`Button1.Label="Ja"` ... | 12 |
programminghorror | TheMechanic40 | gnz3gz | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|eols|><|endoftext|> | 1,144 |
programminghorror | AttackOfTheThumbs | frculi8 | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>I mean, the website says what it supports, and HEIC isn't one of them.
It's a silly omission, but fuck, I'd argue being allowed to submit a picture instead of just typing on a computer is p... | 301 |
programminghorror | BlamUrDead | frd5yh5 | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>If I remember correctly, HEIC is just one frame of x265 so you can use tools like ffmpeg to convert it to a more conventional image format.<|eor|><|eols|><|endoftext|> | 181 |
programminghorror | jerslan | frdk3vq | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>By reading the article:
- no warning about supported formats
- no front end filter on file extension
- back end doesn't handle it and probably throws a 500 response
- front end doesn't handl... | 173 |
programminghorror | GlobalIncident | frd85zq | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Based on the linked article, the website apparently stopped working on a loading screen, with no indication of any error. HEIC file format or not, a website as importa... | 171 |
programminghorror | theStarctic | frdwi5i | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>If I remember correctly, HEIC is just one frame of x265 so you can use tools like ffmpeg to convert it to a more conventional image format.<|eor|><|sor|>pretty sure most highschoolers taking... | 118 |
programminghorror | bf011 | frd6x8g | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>From what I heard from friends, they sent out a notice to all students that HEIC isn't supported...
... 2 minutes before the first test began.<|eor|><|eols|><|endoftext|> | 100 |
programminghorror | fnordstar | frdd5j5 | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>I mean, the website says what it supports, and HEIC isn't one of them.
It's a silly omission, but fuck, I'd argue being allowed to submit a picture instead of just typing on a computer is p... | 82 |
programminghorror | TheMechanic40 | frdg0h4 | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>I mean, the website says what it supports, and HEIC isn't one of them.
It's a silly omission, but fuck, I'd argue being allowed to submit a picture instead of just typing on a computer is p... | 74 |
programminghorror | K1ddMenace | frdxd2q | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>If I remember correctly, HEIC is just one frame of x265 so you can use tools like ffmpeg to convert it to a more conventional image format.<|eor|><|sor|>pretty sure most highschoolers taking... | 67 |
programminghorror | djimbob | frecb4z | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>By reading the article:
- no warning about supported formats
- no front end filter on file extension
- back end doesn't handle it and probably throws a 500 response
- front end doesn't handl... | 56 |
programminghorror | TheMechanic40 | frddznr | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>By reading the article:
- no warning about supported formats
- no front end filter on file extension
- back end doesn't handle it and probably throws a 500 response
- front end doesn't handl... | 46 |
programminghorror | jerslan | frdecz0 | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>Apple really is the impersonation of the "why can't you just be normal" meme.<|eor|><|sor|>https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format
Yeah, why can't they just use the ... | 43 |
programminghorror | TheMechanic40 | frd7205 | <|sols|><|sot|>College Board can't handle Apple's HEIC photo format<|eot|><|sol|>https://i.redd.it/eftikxw715051.png<|eol|><|sor|>[deleted]<|eor|><|soopr|>I feel like if they're giving students the option to upload a pic of their work, they should consider the fact that people will upload pictures taken on iphones<|eoo... | 41 |
programminghorror | Veggieoskibroski | z5foe3 | <|sols|><|sot|>So much for a simple bool<|eot|><|sol|>https://i.redd.it/y000clhvjc2a1.png<|eol|><|eols|><|endoftext|> | 1,139 |
programminghorror | SAmaruVMR | ixvrx1i | <|sols|><|sot|>So much for a simple bool<|eot|><|sol|>https://i.redd.it/y000clhvjc2a1.png<|eol|><|sor|>That was made specifically for this post, you can't convince me otherwise<|eor|><|eols|><|endoftext|> | 748 |
programminghorror | No-Witness2349 | ixwa80j | <|sols|><|sot|>So much for a simple bool<|eot|><|sol|>https://i.redd.it/y000clhvjc2a1.png<|eol|><|sor|>That just sounds like`if (actionMode)` with extra steps<|eor|><|eols|><|endoftext|> | 172 |
programminghorror | NabrenX | ixw9wsy | <|sols|><|sot|>So much for a simple bool<|eot|><|sol|>https://i.redd.it/y000clhvjc2a1.png<|eol|><|sor|>This has to be on purpose. I refuse to believe anyone would actually do this otherwise.
I am going back to my ignorance.<|eor|><|eols|><|endoftext|> | 158 |
programminghorror | dasacc22 | ixwhm7n | <|sols|><|sot|>So much for a simple bool<|eot|><|sol|>https://i.redd.it/y000clhvjc2a1.png<|eol|><|sor|>!a != !false ? true : false
!a != true ? true : false
!a == false ? true : false
a == true ? true : false
a<|eor|><|eols|><|endoftext|> | 144 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.