subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | undeadalex | gwmxfg5 | <|sols|><|sot|>At a citation payment website<|eot|><|sol|>https://i.redd.it/dbyxcnwuqmw61.png<|eol|><|sor|>another example of DRY going straight out the window..<|eor|><|sor|>What is DRY<|eor|><|sor|>[https://en.wikipedia.org/wiki/Don%27t\_repeat\_yourself](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)<|eor|><... | 17 |
programminghorror | glieseg | gwncjni | <|sols|><|sot|>At a citation payment website<|eot|><|sol|>https://i.redd.it/dbyxcnwuqmw61.png<|eol|><|sor|>another example of DRY going straight out the window..<|eor|><|sor|>What is DRY<|eor|><|sor|>[https://en.wikipedia.org/wiki/Don%27t\_repeat\_yourself](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)<|eor|><... | 17 |
programminghorror | DrMaxwellEdison | gwnmos6 | <|sols|><|sot|>At a citation payment website<|eot|><|sol|>https://i.redd.it/dbyxcnwuqmw61.png<|eol|><|sor|>1. Move all the "none" code before the ifs, including the one you'll actually want to then show. The if will make it visible again.
2. Realize that now you can replace all the ifs with a single line that sets the ... | 16 |
programminghorror | GrossInsightfulness | gwn5q9i | <|sols|><|sot|>At a citation payment website<|eot|><|sol|>https://i.redd.it/dbyxcnwuqmw61.png<|eol|><|sor|>1. Move all the "none" code before the ifs, including the one you'll actually want to then show. The if will make it visible again.
2. Realize that now you can replace all the ifs with a single line that sets the ... | 13 |
programminghorror | JuliaChanMSL | gwng6z7 | <|sols|><|sot|>At a citation payment website<|eot|><|sol|>https://i.redd.it/dbyxcnwuqmw61.png<|eol|><|sor|>We have all done this.<|eor|><|soopr|>True...but I guess I shouldn't be surprised. It is a government run website and they tend to cheap out on web devs.<|eoopr|><|sor|>Really gotta thank the [most] government[s] ... | 13 |
programminghorror | javarouleur | gwni3mw | <|sols|><|sot|>At a citation payment website<|eot|><|sol|>https://i.redd.it/dbyxcnwuqmw61.png<|eol|><|sor|>for(type of ["citationtime","invoice ",...])
$(type).style.display = type==selection.value ? "table" : "none"<|eor|><|sor|>Youve mixed your jQuery and vanilla JS there a bit<|eor|><|eols|><|endoftext|> | 11 |
programminghorror | iambertan | mxsfgb | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|eols|><|endoftext|> | 952 |
programminghorror | PhilippTheProgrammer | gvr2g5n | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 386 |
programminghorror | iambertan | gvr60gz | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 354 |
programminghorror | just-being-me- | gvsdk9s | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 186 |
programminghorror | jtan212 | gvrdt5x | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>I dont think its a horror. Its still readable<|eor|><|eols|><|endoftext|> | 130 |
programminghorror | AFlyingYetOddCat | gvrjrbr | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>I dont think its a horror. Its still readable<|eor|><|sor|>agreed, the real horror is the hours of head banging wondering why this code seems to do nothing.<|eor|><|eols|><|endoftext|> | 110 |
programminghorror | iambertan | gvsv2mw | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 99 |
programminghorror | iliekcats- | gvt0c1q | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 48 |
programminghorror | tinyogre | gvr8mok | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>this looks like its an animation type of thing except that i dont see any sleep or wait type of call. whats the purpose? instantly reset the looking direction?<|eor|><|soopr|>I tried to use trigonometry (that I hardly know shit about) t... | 45 |
programminghorror | Cool_As_Your_Dad | gvsk4d6 | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 39 |
programminghorror | VinceGhii | gvrphva | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>I dont think its a horror. Its still readable<|eor|><|sor|>Readable code can still be horror... in fact... most "readable" code i see... is.. horror. But i guess it depends on the definition of "horror"...<|eor|><|eols|><|endoftext|> | 33 |
programminghorror | Nothing-But-Lies | gvt2hf8 | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 32 |
programminghorror | ThePharros | gvsol9v | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>I dont think its a horror. Its still readable<|eor|><|sor|>Readable code can still be horror... in fact... most "readable" code i see... is.. horror. But i guess it depends on the definition of "horror"...<|eor|><|sor|> int readable(... | 28 |
programminghorror | Cmgeodude | gvrxos9 | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>This isn't so bad. It's very readable (and I don't know C#). I see the attempt at building a vector and transforming it. The logic is there even if it doesn't execute the way you expect it to.<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | iambertan | gvr5sgx | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>this looks like its an animation type of thing except that i dont see any sleep or wait type of call. whats the purpose? instantly reset the looking direction?<|eor|><|soopr|>I tried to use trigonometry (that I hardly know shit about) t... | 26 |
programminghorror | KCGD_r | gvrygw3 | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 25 |
programminghorror | Sylvezar2 | gvr2glk | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>this looks like its an animation type of thing except that i dont see any sleep or wait type of call. whats the purpose? instantly reset the looking direction?<|eor|><|eols|><|endoftext|> | 23 |
programminghorror | AdminYak846 | gvs4nil | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 15 |
programminghorror | iliekcats- | gvt3bck | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>Looks like an attempt of a novice programmer in Unity to make a character pan from left to right and back to left. But they don't yet understand that the Update method runs all th way from start to end between each two frames, so you wo... | 13 |
programminghorror | Sl3dge78 | gvrb85c | <|sols|><|sot|>end me<|eot|><|sol|>https://i.redd.it/8al0lwkum6v61.png<|eol|><|sor|>this looks like its an animation type of thing except that i dont see any sleep or wait type of call. whats the purpose? instantly reset the looking direction?<|eor|><|soopr|>I tried to use trigonometry (that I hardly know shit about) t... | 12 |
programminghorror | hverma12tfs | l6qszh | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|eols|><|endoftext|> | 947 |
programminghorror | Jugad | gl2kkfa | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Looks like a student solving a problem in a lab course... sure its badly indented and implemented, but its a student doing some lab work. This is not unexpected.<|eor|><|eols|><|endoftext|> | 306 |
programminghorror | sarkie | gl2ovp5 | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Can we create a rule not to accept student code?
This is gatekeeping.<|eor|><|eols|><|endoftext|> | 197 |
programminghorror | stone_henge | gl2m7j9 | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Looks like a student solving a problem in a lab course... sure its badly indented and implemented, but its a student doing some lab work. This is not unexpected.<|eor|><|sor|>I pay little attention to prog... | 144 |
programminghorror | parkotron | gl2qbu7 | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Can we create a rule not to accept student code?
This is gatekeeping.<|eor|><|sor|>Especially because this is just a formatting issue. The actual code is a perfectly reasonable beginner's attempt at print... | 108 |
programminghorror | xorsys | gl2l127 | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Looks like a student solving a problem in a lab course... sure its badly indented and implemented, but its a student doing some lab work. This is not unexpected.<|eor|><|sor|>There's seems to be no leeway ... | 72 |
programminghorror | ShitSimonSays | gl2k8io | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Working as root is just the cherry on top<|eor|><|eols|><|endoftext|> | 59 |
programminghorror | snppmike | gl2zitl | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>A student here -- What would be the proper way to display a table like this in C?<|eor|><|sor|>Use printf formatters like %6d to print numbers with space padding to a fixed width.<|eor|><|eols|><|endoftext... | 37 |
programminghorror | josephblade | gl2suk4 | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Looks like a student solving a problem in a lab course... sure its badly indented and implemented, but its a student doing some lab work. This is not unexpected.<|eor|><|sor|>Even before teaching the nuanc... | 36 |
programminghorror | H-005 | gl2y2jp | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>A student here -- What would be the proper way to display a table like this in C?<|eor|><|sor|>No one writes console programs in the real world.<|eor|><|sor|>First of all, if you don't write console progra... | 36 |
programminghorror | gokayK | gl2t08m | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>A student here -- What would be the proper way to display a table like this in C?<|eor|><|eols|><|endoftext|> | 33 |
programminghorror | zoltan99 | gl4b831 | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Looks like a student solving a problem in a lab course... sure its badly indented and implemented, but its a student doing some lab work. This is not unexpected.<|eor|><|sor|>I pay little attention to prog... | 32 |
programminghorror | snppmike | gl2zxov | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>A student here -- What would be the proper way to display a table like this in C?<|eor|><|sor|>No one writes console programs in the real world.<|eor|><|sor|>I do. A lot. Luckily not with C. In python, usi... | 20 |
programminghorror | randiwulf | gl5cviu | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Looks like a student solving a problem in a lab course... sure its badly indented and implemented, but its a student doing some lab work. This is not unexpected.<|eor|><|sor|>I pay little attention to prog... | 16 |
programminghorror | josephblade | gl368fk | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Looks like a student solving a problem in a lab course... sure its badly indented and implemented, but its a student doing some lab work. This is not unexpected.<|eor|><|sor|>Even before teaching the nuanc... | 16 |
programminghorror | The_god_of_ara-ara | gl3nggq | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>A student here -- What would be the proper way to display a table like this in C?<|eor|><|sor|>No one writes console programs in the real world.<|eor|><|sor|>First of all, if you don't write console progra... | 15 |
programminghorror | neriad200 | gl4xqd4 | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>Looks like a student solving a problem in a lab course... sure its badly indented and implemented, but its a student doing some lab work. This is not unexpected.<|eor|><|sor|>I pay little attention to prog... | 11 |
programminghorror | Trumpkintin | gl3ok40 | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>I don't see too many problems here, other than the indentation, which in a small program like this is not a real problem.<|eor|><|sor|>The main issue seems to be that the whitespace in the table is hard co... | 10 |
programminghorror | H-005 | gl2y7im | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>I don't see too many problems here, other than the indentation, which in a small program like this is not a real problem.<|eor|><|eols|><|endoftext|> | 9 |
programminghorror | gokayK | gl38n1b | <|sols|><|sot|>My eyes bleed out after watching this<|eot|><|sol|>https://i.redd.it/40mckms6y0e61.png<|eol|><|sor|>A student here -- What would be the proper way to display a table like this in C?<|eor|><|sor|>Use printf formatters like %6d to print numbers with space padding to a fixed width.<|eor|><|sor|>That makes s... | 9 |
programminghorror | ConsiderationThin574 | zz0r5f | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|eols|><|endoftext|> | 944 |
programminghorror | Egzo18 | j28s0bv | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>I like those red underline decorations he added! the code looks much nicer this way!<|eor|><|eols|><|endoftext|> | 355 |
programminghorror | ConsiderationThin574 | j28w7n9 | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Wow I'm by no means a python expert so can someone explain what this code is doing/supposed to do?<|eor|><|soopr|>Well, the person who wrote it is also not a python expert, but he claims... | 282 |
programminghorror | AlwaysSecondToLast | j28voj7 | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Wow I'm by no means a python expert so can someone explain what this code is doing/supposed to do?<|eor|><|eols|><|endoftext|> | 133 |
programminghorror | ssjgotenks | j28sgjh | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>I like those red underline decorations he added! the code looks much nicer this way!<|eor|><|sor|>Very festive for the holidays!<|eor|><|eols|><|endoftext|> | 86 |
programminghorror | Huijiro | j294f3v | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Oh yes, we gonna hack the Brazilian Voting Urns with phyton... As they are a totally isolated system not connected to the Internet made to run in bare metal.
That will surely work.<|eor... | 69 |
programminghorror | ZedTT | j29ph1e | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Wow I'm by no means a python expert so can someone explain what this code is doing/supposed to do?<|eor|><|sor|>Honestly the code is so bad that it isn't python anymore. It just happens ... | 69 |
programminghorror | jphmf | j28shk6 | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Quem foi o rquer?<|eor|><|eols|><|endoftext|> | 56 |
programminghorror | AlwaysSecondToLast | j28wki4 | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Wow I'm by no means a python expert so can someone explain what this code is doing/supposed to do?<|eor|><|soopr|>Well, the person who wrote it is also not a python expert, but he claims... | 47 |
programminghorror | Kriss3d | j2ao0o5 | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Wow I'm by no means a python expert so can someone explain what this code is doing/supposed to do?<|eor|><|soopr|>Well, the person who wrote it is also not a python expert, but he claims... | 44 |
programminghorror | ConsiderationThin574 | j28szj5 | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Quem foi o rquer?<|eor|><|soopr|>O gnio aqui https://twitter.com/brasilpodcastbr/status/1608175851765383168?t=7ITMm7lUZZ2jsPyVvsPcrQ&s=19<|eoopr|><|eols|><|endoftext|> | 41 |
programminghorror | CAS-14 | j2ckvft | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Wow I'm by no means a python expert so can someone explain what this code is doing/supposed to do?<|eor|><|soopr|>Well, the person who wrote it is also not a python expert, but he claims... | 27 |
programminghorror | coi1976 | j29ga36 | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>dude is trolling and some took the bait<|eor|><|sor|>He is a "famous" instigator of Bolsonaristas (aka modern Brazilian fascists), he is obviously deliberately lying, but he is definitel... | 25 |
programminghorror | jphmf | j28t91o | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Quem foi o rquer?<|eor|><|soopr|>O gnio aqui https://twitter.com/brasilpodcastbr/status/1608175851765383168?t=7ITMm7lUZZ2jsPyVvsPcrQ&s=19<|eoopr|><|sor|>Meu paizinho amado, que idiota es... | 23 |
programminghorror | InsrtRandomUserHere | j2a2s3t | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>The file name of the file opened behind the code looks like someone forgot to turn off caps lock when typjng it<|eor|><|eols|><|endoftext|> | 19 |
programminghorror | ZedTT | j29rr90 | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Wow I'm by no means a python expert so can someone explain what this code is doing/supposed to do?<|eor|><|sor|>Honestly the code is so bad that it isn't python anymore. It just happens ... | 17 |
programminghorror | french_progress | j2a7air | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>You guys just dont understand the advanced formatting options of wait is that fucking TextEdit<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | Veka_Marin | j2bo0zm | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Isn't Brazil electronic ballots like ultra safe? like they let random people take one machine home to hack it and patch how they got inside?<|eor|><|sor|>This isn't the real machine or t... | 15 |
programminghorror | WootMate | j2avpcx | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>In 72 hours he'll show the real evidence <|eor|><|eols|><|endoftext|> | 12 |
programminghorror | -manabreak | j2a7wet | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Wow I'm by no means a python expert so can someone explain what this code is doing/supposed to do?<|eor|><|soopr|>Well, the person who wrote it is also not a python expert, but he claims... | 12 |
programminghorror | VinceLePrince | j2a2akb | <|sols|><|sot|>Brazilian politician teatching how to hack the elections<|eot|><|sol|>https://i.redd.it/avksvbd6y29a1.png<|eol|><|sor|>Wow I'm by no means a python expert so can someone explain what this code is doing/supposed to do?<|eor|><|soopr|>Well, the person who wrote it is also not a python expert, but he claims... | 11 |
programminghorror | wexiicek | ekel1s | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|eols|><|endoftext|> | 948 |
programminghorror | wexiicek | fd9xnhz | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|soopr|>Yes, I do realize that it could have been a one-liner, which would totally avoid this stupid mistake.<|eoopr|><|eols|><|endoftext|> | 201 |
programminghorror | iggyvolz | fd9z65z | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|soopr|>Yes, I do realize that it could have been a one-liner, which would totally avoid this stupid mistake.<|eoopr|><|sor|>I'm surprised it didn't warn you that saving the re... | 154 |
programminghorror | EdTheOtherNerd | fda1d5o | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>That right there is why so many people claim functional programming is superior.<|eor|><|eols|><|endoftext|> | 113 |
programminghorror | Mysicek | fda0lby | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>Can you explain?
Im new to programming<|eor|><|sor|>He overwrote value of temp with the second filter, which makes the line with the first filter totally useless. He shou... | 112 |
programminghorror | shvelo | fdatmuy | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>How is this horror? It's just a simple mistake to make.<|eor|><|eols|><|endoftext|> | 104 |
programminghorror | wexiicek | fda4zom | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|soopr|>Yes, I do realize that it could have been a one-liner, which would totally avoid this stupid mistake.<|eoopr|><|sor|>I'm surprised it didn't warn you that saving the re... | 60 |
programminghorror | examinedliving | fdacfht | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|soopr|>Yes, I do realize that it could have been a one-liner, which would totally avoid this stupid mistake.<|eoopr|><|sor|>I'm surprised it didn't warn you that saving the re... | 48 |
programminghorror | pancomputationalist | fdag9lr | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>That right there is why so many people claim functional programming is superior.<|eor|><|sor|>When I saw this, I really wished for the pipeline operator in more mainstrea... | 43 |
programminghorror | ilkikuinthadik | fddaju4 | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>How is this horror? It's just a simple mistake to make.<|eor|><|sor|>The horror is being a student and realising an error after the submission. Truly a feeling of dread.<... | 39 |
programminghorror | optimal_substructure | fdadvmb | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|soopr|>Yes, I do realize that it could have been a one-liner, which would totally avoid this stupid mistake.<|eoopr|><|sor|>I'm surprised it didn't warn you that saving the re... | 34 |
programminghorror | jonivesto | fd9yp5w | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>This is not horror<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | quadlix | fda2lj5 | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>Can you explain?
Im new to programming<|eor|><|sor|>He overwrote value of temp with the second filter, which makes the line with the first filter totally useless. He shou... | 31 |
programminghorror | xiRazZzer | fda02kq | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>Can you explain?
Im new to programming<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | droomph | fdawuao | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>That right there is why so many people claim functional programming is superior.<|eor|><|sor|>I'm kinda short on experience, does functional programming is really good li... | 23 |
programminghorror | ghillisuit95 | fdbax3f | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>That right there is why so many people claim functional programming is superior.<|eor|><|sor|>When I saw this, I really wished for the pipeline operator in more mainstrea... | 23 |
programminghorror | dented42 | fdb3iid | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>How can you apply a filter to a dimensionless value? Theres no dt to integrate/convolve against.<|eor|><|eols|><|endoftext|> | 20 |
programminghorror | undifini | fdbj7vd | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>How does one even eliminate noise from *a single value*? Wouldn't you normally do that to a series of values?<|eor|><|eols|><|endoftext|> | 17 |
programminghorror | examinedliving | fdaf5zu | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|soopr|>Yes, I do realize that it could have been a one-liner, which would totally avoid this stupid mistake.<|eoopr|><|sor|>I'm surprised it didn't warn you that saving the re... | 17 |
programminghorror | Mysicek | fda4cm6 | <|sols|><|sot|>This bit I wrote for a school project. Only realised after the deadline.<|eot|><|sol|>https://i.redd.it/c2gjshgmdz841.png<|eol|><|sor|>Can you explain?
Im new to programming<|eor|><|sor|>He overwrote value of temp with the second filter, which makes the line with the first filter totally useless. He shou... | 16 |
programminghorror | orondf343 | jbl5uf | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|eols|><|endoftext|> | 949 |
programminghorror | orondf343 | g8vxsrc | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|soopr|>This was used to display a drop-down list of years in a couple of ASP.NET WebForms pages.
The person that wrote this stored procedure said: "I never would have believed that I ever wrote this if my name weren't on ... | 420 |
programminghorror | gemini88mill | g8w3ydb | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|sor|>Omg I am currently in the same predicament with my company. The original guy who wrote the software died so I'm wading through sprocs of things that make sense only to this mysterious man, occasionally I get a comment... | 204 |
programminghorror | frijoles | g8wfa9t | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|soopr|>This was used to display a drop-down list of years in a couple of ASP.NET WebForms pages.
The person that wrote this stored procedure said: "I never would have believed that I ever wrote this if my name weren't on ... | 149 |
programminghorror | yard2010 | g8w3y08 | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|sor|>Engineern't<|eor|><|eols|><|endoftext|> | 99 |
programminghorror | Gillix98 | g8w9id4 | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|sor|>Omg I am currently in the same predicament with my company. The original guy who wrote the software died so I'm wading through sprocs of things that make sense only to this mysterious man, occasionally I get a comment... | 86 |
programminghorror | pcopley | g8wl5y4 | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|soopr|>This was used to display a drop-down list of years in a couple of ASP.NET WebForms pages.
The person that wrote this stored procedure said: "I never would have believed that I ever wrote this if my name weren't on ... | 82 |
programminghorror | orondf343 | g8w3c70 | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|sor|>For the replacement, I guess you moved everything to the frontend?<|eor|><|soopr|>Correct, and it is now based on the current year rather than arbitrary values<|eoopr|><|eols|><|endoftext|> | 69 |
programminghorror | TGotAReddit | g8wd3y9 | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|soopr|>This was used to display a drop-down list of years in a couple of ASP.NET WebForms pages.
The person that wrote this stored procedure said: "I never would have believed that I ever wrote this if my name weren't on ... | 59 |
programminghorror | Owlstorm | g8vz9v1 | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|sor|>For the replacement, I guess you moved everything to the frontend?<|eor|><|eols|><|endoftext|> | 58 |
programminghorror | TGotAReddit | g8whin8 | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|soopr|>This was used to display a drop-down list of years in a couple of ASP.NET WebForms pages.
The person that wrote this stored procedure said: "I never would have believed that I ever wrote this if my name weren't on ... | 55 |
programminghorror | UnkleRinkus | g8w72c3 | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|sor|>And you modified to change to 2021, right?<|eor|><|eols|><|endoftext|> | 42 |
programminghorror | RichCorinthian | g8wc2lo | <|sols|><|sot|>Just found this in production<|eot|><|sol|>https://i.imgur.com/maWejgB.png<|eol|><|sor|>Omg I am currently in the same predicament with my company. The original guy who wrote the software died so I'm wading through sprocs of things that make sense only to this mysterious man, occasionally I get a comment... | 34 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.