subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | rodrigocfd | ggxh6xz | <|sols|><|sot|>Gonna need you to be more creative with variable naming...<|eot|><|sol|>https://i.redd.it/xvqrvawdh5761.png<|eol|><|sor|>/r/screenshotsarehard<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | jugnuggets | ggxcmg4 | <|sols|><|sot|>Gonna need you to be more creative with variable naming...<|eot|><|sol|>https://i.redd.it/xvqrvawdh5761.png<|eol|><|sor|>Well hey, if you're using a sane IDE you can pick one, right-click, and "rename variable." Repeat until the names make sense.<|eor|><|soopr|>This is IntelliJ, a couple of F6s later and... | 18 |
programminghorror | Mithrandir2k16 | ggxky63 | <|sols|><|sot|>Gonna need you to be more creative with variable naming...<|eot|><|sol|>https://i.redd.it/xvqrvawdh5761.png<|eol|><|sor|>Well, still better than a mix of capital I and small l.
I = Il - ll<|eor|><|sor|>`Il != lI || ll != II`<|eor|><|sor|>Il != lI || ll != II
Beautiful without the code markup xD<|eor|><... | 18 |
programminghorror | jugnuggets | ggxcg9e | <|sols|><|sot|>Gonna need you to be more creative with variable naming...<|eot|><|sol|>https://i.redd.it/xvqrvawdh5761.png<|eol|><|sor|>I count 5 different href variables, did I miss any?<|eor|><|soopr|>Besides doc and m! Haha otherwise correct (I think..)<|eoopr|><|eols|><|endoftext|> | 15 |
programminghorror | MCKoleman | ggxfhlj | <|sols|><|sot|>Gonna need you to be more creative with variable naming...<|eot|><|sol|>https://i.redd.it/xvqrvawdh5761.png<|eol|><|sor|>bad variable/function names are the worst. too many people think typing less means better code<|eor|><|sor|>Good old itoa(dst, num, 10);<|eor|><|sor|>Int to a?<|eor|><|eols|><|endoftex... | 15 |
programminghorror | Vijfhoek | ggyef1i | <|sols|><|sot|>Gonna need you to be more creative with variable naming...<|eot|><|sol|>https://i.redd.it/xvqrvawdh5761.png<|eol|><|sor|>Well, still better than a mix of capital I and small l.
I = Il - ll<|eor|><|sor|>Go for the hatrick: Il|<|eor|><|sor|>Even better one: Il|<|eor|><|sor|>Is this the new HP logo?<|eor|>... | 15 |
programminghorror | Eesti_ | ggxk9eu | <|sols|><|sot|>Gonna need you to be more creative with variable naming...<|eot|><|sol|>https://i.redd.it/xvqrvawdh5761.png<|eol|><|sor|>bad variable/function names are the worst. too many people think typing less means better code<|eor|><|sor|>Good old itoa(dst, num, 10);<|eor|><|sor|>Int to a?<|eor|><|sor|>int to char... | 15 |
programminghorror | maxwai | npo4cf | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|eols|><|endoftext|> | 1,643 |
programminghorror | tateisukannanirase | h063rad | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>I'm starting to think I could be a CS Professor!<|eor|><|eols|><|endoftext|> | 561 |
programminghorror | mohragk | h06bzwq | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Here you go:
if (content == null)
return that.content == null;
return content.equals(that.content);<|eor|><|eols|><|endoftext|> | 226 |
programminghorror | Roberto410 | h066by5 | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>I'm starting to think I could be a CS Professor!<|eor|><|sor|>[deleted]<|eor|><|sor|>For a beginner class, with an individual project, that's probably the best approach for simplicity.<|eor|><|e... | 221 |
programminghorror | Muoniurn | h06kd3n | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Here you go:
if (content == null)
return that.content == null;
return content.equals(that.content);<|eor|><|sor|>Even better:
`return Objects.equals(content, that.content)`<|eor... | 115 |
programminghorror | Roberto410 | h069dqg | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>I'm starting to think I could be a CS Professor!<|eor|><|sor|>[deleted]<|eor|><|sor|>For a beginner class, with an individual project, that's probably the best approach for simplicity.<|eor|><|s... | 112 |
programminghorror | NLJeroen | h065c5s | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>He sins so you dont have to.<|eor|><|eols|><|endoftext|> | 88 |
programminghorror | juantreses | h067uuu | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>I'm starting to think I could be a CS Professor!<|eor|><|sor|>[deleted]<|eor|><|sor|>For a beginner class, with an individual project, that's probably the best approach for simplicity.<|eor|><|s... | 76 |
programminghorror | only_4kids | h066see | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Honestly, I know this is not formatted or whatever, but it could be that he is making gradual steps to show that complex code for simple logic like this, can be made easier/readable with fewer l... | 75 |
programminghorror | PotentBeverage | h067fez | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Are people incapable of putting braces around the damn if statements<|eor|><|eols|><|endoftext|> | 69 |
programminghorror | Wh1te_Rabbit | h06oowl | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Here you go:
if (content == null)
return that.content == null;
return content.equals(that.content);<|eor|><|sor|>Even better:
`return Objects.equals(content, that.content)`<|eor... | 59 |
programminghorror | ArrozConmigo | h06qxba | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Here you go:
if (content == null)
return that.content == null;
return content.equals(that.content);<|eor|><|sor|>Even better:
`return Objects.equals(content, that.content)`<|eor... | 45 |
programminghorror | tmukingston | h06klo6 | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Here you go:
if (content == null)
return that.content == null;
return content.equals(that.content);<|eor|><|sor|>How about
return Objects.equals(this.content, that.content)
Th... | 41 |
programminghorror | maxwai | h063v5q | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>I feel like this wouldnt work? Some one help me out but this is, hold on... yeah I dont even know what language this is. I only started learning cpp and its been a few months since Ive had time ... | 41 |
programminghorror | PolyGlotCoder | h06eqvt | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Maybe Im getting jaded. But just because you can re-write this to be on fewer lines, doesnt mean a huge deal. When *teaching* you write things in a way for students to understand the logic.
Co... | 38 |
programminghorror | mailto_devnull | h068sq0 | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>I'm starting to think I could be a CS Professor!<|eor|><|sor|>[deleted]<|eor|><|sor|>For a beginner class, with an individual project, that's probably the best approach for simplicity.<|eor|><|s... | 37 |
programminghorror | Charlie_Kilo24 | h068imf | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Ah yes *that*
The lesser known cousin of *this*<|eor|><|eols|><|endoftext|> | 30 |
programminghorror | DB6 | h066mav | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>I feel like this wouldnt work? Some one help me out but this is, hold on... yeah I dont even know what language this is. I only started learning cpp and its been a few months since Ive had time ... | 28 |
programminghorror | darksounds | h079aqg | <|sols|><|sot|>My CS Professor. This is how he is writing code.<|eot|><|sol|>https://i.redd.it/u4fyr6vptl271.png<|eol|><|sor|>Here you go:
if (content == null)
return that.content == null;
return content.equals(that.content);<|eor|><|sor|>Even better:
`return Objects.equals(content, that.content)`<|eor... | 24 |
programminghorror | LeoTigers | lenczb | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|eols|><|endoftext|> | 1,646 |
programminghorror | -MazeMaker- | gmgjcsf | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>The worst part is that they clearly know about string multiplication because they start the whole thing out with `s = 'I' * N`. They could have kept the same exact logic without spamming rows of `IIIIIIIIIIIIIIIIII` e... | 483 |
programminghorror | brc1994 | gmg860x | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>This has to be a joke<|eor|><|eols|><|endoftext|> | 164 |
programminghorror | cheerycheshire | gmglzjg | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>The worst part is that they clearly know about string multiplication because they start the whole thing out with `s = 'I' * N`. They could have kept the same exact logic without spamming rows of `IIIIIIIIIIIIIIIIII` e... | 144 |
programminghorror | Solonotix | gmh20zf | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>This has to be a joke<|eor|><|sor|>I expect this is a karma farm, intentionally writing bad code and posting it here for internet points. As others have said, if you know about string multiplication, you're likely not ... | 97 |
programminghorror | vomitkettle | gmgebym | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>what did regex ever do to this person<|eor|><|eols|><|endoftext|> | 76 |
programminghorror | Shizounu | gmgh8w6 | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>what did regex ever do to this person<|eor|><|sor|>even just a loop could do this...<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | sellithy | gmgejim | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>The funny thing is that I basically wrote the same exact solution when I was first learning. It was fine as a first try and because I was still learning. Just amazed that someone thought of the same exact way to solve ... | 32 |
programminghorror | Shizounu | gmgtsmj | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>what did regex ever do to this person<|eor|><|sor|>even just a loop could do this...<|eor|><|sor|>how? a one liner for loop or what?<|eor|><|sor|>Use the loop to coubt the Is in the input (for each), then convert that ... | 24 |
programminghorror | djimbob | gmhxiaq | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>This has to be a joke<|eor|><|sor|>I expect this is a karma farm, intentionally writing bad code and posting it here for internet points. As others have said, if you know about string multiplication, you're likely not ... | 21 |
programminghorror | kst164 | gmgteic | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>what did regex ever do to this person<|eor|><|sor|>even just a loop could do this...<|eor|><|sor|>how? a one liner for loop or what?<|eor|><|sor|>Use the loop to coubt the Is in the input (for each), then convert that ... | 20 |
programminghorror | RusAD | gmhsx5n | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>The worst part is that they clearly know about string multiplication because they start the whole thing out with `s = 'I' * N`. They could have kept the same exact logic without spamming rows of `IIIIIIIIIIIIIIIIII` e... | 17 |
programminghorror | Sarke1 | gmhcdfd | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>ok but the real question is, how can you do this properly?
^(or am I just stupid lol?)<|eor|><|sor|>You do input /1000 for the number of M
Then you use another variable "b" to store input%1000
Then if b=999 you writ... | 17 |
programminghorror | 5p4n911 | gmgocv6 | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>The funny thing is that I basically wrote the same exact solution when I was first learning. It was fine as a first try and because I was still learning. Just amazed that someone thought of the same exact way to solve ... | 14 |
programminghorror | doschauher | gmgb2ey | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>replace the whole code<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | eggys82 | gmhbo1g | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>The worst part is that they clearly know about string multiplication because they start the whole thing out with `s = 'I' * N`. They could have kept the same exact logic without spamming rows of `IIIIIIIIIIIIIIIIII` e... | 13 |
programminghorror | phiiscool | gmijpye | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>This has to be a joke<|eor|><|sor|>I expect this is a karma farm, intentionally writing bad code and posting it here for internet points. As others have said, if you know about string multiplication, you're likely not ... | 12 |
programminghorror | schrdingers_squirrel | gmgxg5t | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>Better solution:
```
replace("I"*5,"V")
.replace("V"*2, "X")
.replace("X"*5, "L")
# ...
```<|eor|><|eols|><|endoftext|> | 11 |
programminghorror | wojwesoly | gmgsfvz | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>ok but the real question is, how can you do this properly?
^(or am I just stupid lol?)<|eor|><|eols|><|endoftext|> | 10 |
programminghorror | Giocri | gmgz0t8 | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>ok but the real question is, how can you do this properly?
^(or am I just stupid lol?)<|eor|><|sor|>You do input /1000 for the number of M
Then you use another variable "b" to store input%1000
Then if b=999 you writ... | 10 |
programminghorror | Regis_DeVallis | gmjq0vx | <|sols|><|sot|>If it works it works right ?<|eot|><|sol|>https://i.imgur.com/iK6wVhp.png<|eol|><|sor|>This has to be a joke<|eor|><|sor|>I expect this is a karma farm, intentionally writing bad code and posting it here for internet points. As others have said, if you know about string multiplication, you're likely not ... | 10 |
programminghorror | rajesh_dude0 | monfd4 | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|eols|><|endoftext|> | 1,645 |
programminghorror | IsAlwaysHungry | gu4xm3q | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Well, the code is crap, but the documentation is beautiful. You see relatively easy the thinking behind the code.<|eor|><|eols|><|endoftext|> | 442 |
programminghorror | nupogodi | gu58rtg | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Well, the code is crap, but the documentation is beautiful. You see relatively easy the thinking behind the code.<|eor|><|sor|>Yeah, the documentation is good, although "thinking" may be the wrong word e.g. "i... | 172 |
programminghorror | ElvinDrude | gu4xuan | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Well, the code is crap, but the documentation is beautiful. You see relatively easy the thinking behind the code.<|eor|><|sor|>Yeah, the documentation is good, although "thinking" may be the wrong word e.g. "i... | 168 |
programminghorror | OMG_A_CUPCAKE | gu4vfus | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Is this a joke submission?<|eor|><|eols|><|endoftext|> | 133 |
programminghorror | smeenz | gu4wu6j | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Is this a joke submission?<|eor|><|sor|>This ... surely.. can not be code that actually runs somewhere<|eor|><|eols|><|endoftext|> | 102 |
programminghorror | Natural-Intelligence | gu53t7h | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Whatever you do, you must be able to say "my code uses AI". If it doesn't, it doesn't sell.<|eor|><|eols|><|endoftext|> | 77 |
programminghorror | muntoo | gu4yvqe | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Is this a joke submission?<|eor|><|sor|>Probably. Otherwise, they probably would have noticed the periodic pattern in the lookup table and simplified it to
int is_even(int x) {
int ix = x % 16;
... | 73 |
programminghorror | nerdyphoenix | gu4x2pi | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>I'm willing to bet coding it in Python would be faster than using subprocess.<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | ChemicalRascal | gu529qg | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>[deleted]<|eor|><|sor|>I mean, you joke, but that sounds like a fantastic little experiment to teach ML.<|eor|><|eols|><|endoftext|> | 70 |
programminghorror | ianff | gu54fnm | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>The real horror is the security risk of blindly running /tmp/a.out which anyone can create.<|eor|><|eols|><|endoftext|> | 64 |
programminghorror | Kaynee490 | gu52xl8 | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Well, the code is crap, but the documentation is beautiful. You see relatively easy the thinking behind the code.<|eor|><|sor|>Yeah, the documentation is good, although "thinking" may be the wrong word e.g. "i... | 64 |
programminghorror | AyrA_ch | gu50vma | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Is this a joke submission?<|eor|><|sor|>Probably. Otherwise, they probably would have noticed the periodic pattern in the lookup table and simplified it to
int is_even(int x) {
int ix = x % 16;
... | 64 |
programminghorror | yhu420 | gu4usu8 | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Isn't it what cython or numba is for? I'm no python expert<|eor|><|eols|><|endoftext|> | 58 |
programminghorror | coopercm | gu5ufxt | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Well, the code is crap, but the documentation is beautiful. You see relatively easy the thinking behind the code.<|eor|><|sor|>Yeah, the documentation is good, although "thinking" may be the wrong word e.g. "i... | 48 |
programminghorror | Charlie_Yu | gu55n9m | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>[deleted]<|eor|><|sor|>I mean, you joke, but that sounds like a fantastic little experiment to teach ML.<|eor|><|sor|>It probably wont work very well, but good for teaching. Codes of simple examples are easier... | 44 |
programminghorror | Wiremaster | gu53jwi | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Hey I'm new to programming and I dont get the use of isEven? What do you use it for?<|eor|><|sor|>isEven is also a bit of a meme. You can just do something like "if it number divides evenly (modulus) by 2, it'... | 36 |
programminghorror | sim642 | gu56e1e | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>[deleted]<|eor|><|sor|>I mean, you joke, but that sounds like a fantastic little experiment to teach ML.<|eor|><|sor|>It probably wont work very well, but good for teaching. Codes of simple examples are easier... | 36 |
programminghorror | Nothing-But-Lies | gu5ehf7 | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>Is this a joke submission?<|eor|><|sor|>Probably. Otherwise, they probably would have noticed the periodic pattern in the lookup table and simplified it to
int is_even(int x) {
int ix = x % 16;
... | 36 |
programminghorror | Spare_Competition | gu5ksxg | <|sols|><|sot|>They said C is faster than Python<|eot|><|sol|>https://i.redd.it/hkq0mbzw1gs61.png<|eol|><|sor|>[deleted]<|eor|><|sor|>Whatever you do, you must be able to say "my code uses AI". If it doesn't, it doesn't sell.<|eor|><|sor|>[I trained a neural network to write this program](https://xkcd.com/2173)<|eor|><... | 35 |
programminghorror | karlvonheinz | inj3f5 | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|eols|><|endoftext|> | 1,629 |
programminghorror | natinusala | g4810k0 | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|eols|><|endoftext|> | 461 |
programminghorror | TK-427 | g4854tt | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>My dev team once set up a confluence wiki to document the xml st... | 179 |
programminghorror | mypetocean | g48f4i9 | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>My dev team once set up a confluence wiki to document the xml st... | 67 |
programminghorror | karlvonheinz | g47tvuj | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|soopr|>...it's the one with content, obviously.<|eoopr|><|eols|><|endoftext|> | 54 |
programminghorror | 0xF013 | g488uzf | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>There is a similar issue where you rename a file/dir by downcasing a letter and the combination of default git settings and mac os settings cause... | 46 |
programminghorror | JuhaJGam3R | g48576w | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>These characters have practical uses. the NBSP is an invisible c... | 33 |
programminghorror | Avamander | g483ian | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>Software that treats filenames as anything other than a bunch of bytes is a worse idea ... | 31 |
programminghorror | Zer0ji | g495m86 | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>The dude who decided to trim the strings in the UI is at least partially at fault imo.<|eor|><|sor|>That would be the web browser displaying `<sp... | 29 |
programminghorror | FlipskiZ | g49aev6 | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>My dev team once set up a confluence wiki to document the xml st... | 29 |
programminghorror | FallenWarrior2k | g48i4ao | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>The dude who decided to trim the strings in the UI is at least partially at fault imo.<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | pqowie313 | g48c6ax | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>There is a similar issue where you rename a file/dir by downcasing a letter and the combination of default git settings and mac os settings cause... | 25 |
programminghorror | karlvonheinz | g4863ol | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>No offense, but how did this take hours to figure out? I'm not sure how something like this couldn't be caught earlier in a matter of minutes.<|... | 24 |
programminghorror | xnign | g48h84q | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>My dev team once set up a confluence wiki to document the xml st... | 24 |
programminghorror | ImJokingNoImNot | g48gw1z | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>Ive seen systems/IDEs where spaces are replaced by 1 pixel dots ... | 23 |
programminghorror | edos112 | g4861fn | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>My dev team once set up a confluence wiki to document the xml st... | 18 |
programminghorror | Owlstorm | g488fuw | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>My dev team once set up a confluence wiki to document the xml st... | 18 |
programminghorror | YM_Industries | g48573v | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>Speaking of collapsing spaces, I'm cranky that [this bug I repor... | 14 |
programminghorror | ImJokingNoImNot | g48c7cr | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>Ive seen systems/IDEs where spaces are replaced by 1 pixel dots ... | 12 |
programminghorror | gethereddout | g48sre5 | <|sols|><|sot|>Quiz: One of those '.gitlab'-directories starts with a space. I'm dying after hours of pain, lol.<|eot|><|sol|>https://i.redd.it/yc9944utvhl51.png<|eol|><|sor|>allowing spaces in directories was a mistake<|eor|><|sor|>[deleted]<|eor|><|sor|>My dev team once set up a confluence wiki to document the xml st... | 11 |
programminghorror | MathDoneInPen | k5xc8z | <|sols|><|sot|>Display Overlap is fun to debug<|eot|><|sol|>https://i.redd.it/4vxxpasiyv261.png<|eol|><|eols|><|endoftext|> | 1,627 |
programminghorror | LostTeleporter | gehtmp7 | <|sols|><|sot|>Display Overlap is fun to debug<|eot|><|sol|>https://i.redd.it/4vxxpasiyv261.png<|eol|><|sor|>Schrodingers Weather<|eor|><|eols|><|endoftext|> | 58 |
programminghorror | Treyzania | geiqg62 | <|sols|><|sot|>Display Overlap is fun to debug<|eot|><|sol|>https://i.redd.it/4vxxpasiyv261.png<|eol|><|sor|>[xkcd 1245: 10-Day Forecast](https://xkcd.com/1245/)<|eor|><|eols|><|endoftext|> | 24 |
programminghorror | LeJoker | gehxy8k | <|sols|><|sot|>Display Overlap is fun to debug<|eot|><|sol|>https://i.redd.it/4vxxpasiyv261.png<|eol|><|sor|>Wonder how old this is. Darksky was discontinued a few months ago, makes me wonder if it's related to what we see here.<|eor|><|eols|><|endoftext|> | 15 |
programminghorror | Maximelene | geig7pr | <|sols|><|sot|>Display Overlap is fun to debug<|eot|><|sol|>https://i.redd.it/4vxxpasiyv261.png<|eol|><|sor|>Don't look at the sky. Stay away from the windows.<|eor|><|eols|><|endoftext|> | 6 |
programminghorror | RavenLabratories | gehyg2e | <|sols|><|sot|>Display Overlap is fun to debug<|eot|><|sol|>https://i.redd.it/4vxxpasiyv261.png<|eol|><|sor|>Wonder how old this is. Darksky was discontinued a few months ago, makes me wonder if it's related to what we see here.<|eor|><|sor|>Pretty sure this image is a couple of years old<|eor|><|eols|><|endoftext|> | 5 |
programminghorror | RaduDanBurchel | ygvlb8 | <|sols|><|sot|>My GF doing Java exercises in browser on my Steam Deck<|eot|><|sol|>https://i.redd.it/vf6y81zqdtw91.jpg<|eol|><|eols|><|endoftext|> | 1,626 |
programminghorror | AndreyVLD | iuaoqjf | <|sols|><|sot|>My GF doing Java exercises in browser on my Steam Deck<|eot|><|sol|>https://i.redd.it/vf6y81zqdtw91.jpg<|eol|><|sor|>The forbidden way of programming<|eor|><|eols|><|endoftext|> | 287 |
programminghorror | sermer48 | iub9gvd | <|sols|><|sot|>My GF doing Java exercises in browser on my Steam Deck<|eot|><|sol|>https://i.redd.it/vf6y81zqdtw91.jpg<|eol|><|sor|>So what youre saying is I could expense a steam deck to my job in order to better work remotely?<|eor|><|eols|><|endoftext|> | 107 |
programminghorror | kinokofurai | iub5bzt | <|sols|><|sot|>My GF doing Java exercises in browser on my Steam Deck<|eot|><|sol|>https://i.redd.it/vf6y81zqdtw91.jpg<|eol|><|sor|>pretty normal for me who was poor af that either programmed on my phone or was forced to excel in class so that people will pick me as a group mate so I can use their laptops.<|eor|><|eols... | 68 |
programminghorror | snookso | iucfcv2 | <|sols|><|sot|>My GF doing Java exercises in browser on my Steam Deck<|eot|><|sol|>https://i.redd.it/vf6y81zqdtw91.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>excuse me but wtf<|eor|><|eols|><|endoftext|> | 63 |
programminghorror | someguynamedjerry | iubz56a | <|sols|><|sot|>My GF doing Java exercises in browser on my Steam Deck<|eot|><|sol|>https://i.redd.it/vf6y81zqdtw91.jpg<|eol|><|sor|>The forbidden way of programming<|eor|><|sor|>Still a pro gaming move.<|eor|><|eols|><|endoftext|> | 59 |
programminghorror | 84436 | iucmv44 | <|sols|><|sot|>My GF doing Java exercises in browser on my Steam Deck<|eot|><|sol|>https://i.redd.it/vf6y81zqdtw91.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>How did you even manage to Are you working for CERN or something?
Imagine particle accelerators that run on Java<|eor|><|eols|><|endoftext|> | 48 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.