subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | yaminokaze4 | gvvci4h | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>what's this programming language?<|eor|><|eols|><|endoftext|> | 81 |
programminghorror | SkeletonWink | gvv7aa3 | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>Got the same thing today with a for loop, got into 50 ifs<|eor|><|eols|><|endoftext|> | 57 |
programminghorror | speller26 | gvvlggd | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>what's this programming language?<|eor|><|sor|>it's OCaml, one of the best functionnal languages<|eor|><|sor|>Cries in lisp.<|eor|><|sor|>Cries in F#<|eor|><|sor|>F# is basically OCaml for .NET, still a grea... | 56 |
programminghorror | emax-gomax | gvvddoj | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>what's this programming language?<|eor|><|sor|>it's OCaml, one of the best functionnal languages<|eor|><|sor|>Cries in lisp.<|eor|><|eols|><|endoftext|> | 47 |
programminghorror | exploding_cat_wizard | gvwkp1e | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>This light theme is the real horror<|eor|><|sor|>Almost a quarter (4/13) of top level comments are about not using the best color scheme for a properly bright work environment. Is basement dwelling really th... | 37 |
programminghorror | doubleone44 | gvvfuw7 | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>what's this programming language?<|eor|><|sor|>it's OCaml, one of the best functionnal languages<|eor|><|sor|>Cries in lisp.<|eor|><|sor|>Cries in F#<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | stonkilla4 | gvvhhx8 | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>"it's indented perfectly though"
- Python somebody<|eor|><|sor|>Python nobody. FTFY<|eor|><|eols|><|endoftext|> | 29 |
programminghorror | Roberto410 | gvvias7 | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>This light theme is the real horror<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | The6thExtinction | gvw8h8u | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>We have to stop it before it takes all of our jobs.<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | NoahTheDuke | gvvki67 | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>what's this programming language?<|eor|><|sor|>it's OCaml, one of the best functionnal languages<|eor|><|sor|>Cries in lisp.<|eor|><|sor|>Common Lisp is an amazing classical functional language but not a goo... | 20 |
programminghorror | Orange_Mushroom_ | gvvohl1 | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>THROWING FLASHBANG! FLASHBANG OUT! FLASHBANG!<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | Boiethios | gvwmtps | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>This light theme is the real horror<|eor|><|sor|>Almost a quarter (4/13) of top level comments are about not using the best color scheme for a properly bright work environment. Is basement dwelling really th... | 18 |
programminghorror | The-Daleks | gvx3vig | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>We have to stop it before it takes all of our jobs.<|eor|><|sor|>We has't to stand ho t ere t doth take all of our jobs
***
^(I am a bot and I swapp'd some of thy words with Shakespeare words.)
Commands... | 15 |
programminghorror | Tornado547 | gvwsgq6 | <|sols|><|sot|>A horrific suggestion from the linter..<|eot|><|sol|>https://v.redd.it/246cyino8ev61<|eol|><|sor|>"Robots are gonna take over"
Robots:<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | scaryAstronaut | ixk4jx | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|eols|><|endoftext|> | 1,536 |
programminghorror | theXpanther | g67d91y | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>The correct answer in this case is `main.cpp:1:21: warning: extra tokens at end of #include directive`<|eor|><|eols|><|endoftext|> | 517 |
programminghorror | blueg3 | g67ieiq | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>The correct answer in this case is `main.cpp:1:21: warning: extra tokens at end of #include directive`<|eor|><|sor|>Incorrect, due to insufficient pedantry.
That's the output of the compiler, while the questions clearly a... | 243 |
programminghorror | denideniz | g67lwuc | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>The correct answer in this case is `main.cpp:1:21: warning: extra tokens at end of #include directive`<|eor|><|sor|>Incorrect, due to insufficient pedantry.
That's the output of the compiler, while the questions clearly a... | 238 |
programminghorror | Andy_B_Goode | g67ygz6 | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>I think I've transcribed it accurately:
#include <iostream>
#include <string>
using namespace std;
class B {
int b;
public: B(){
}
B(int i) {
b = i;
}
int show(... | 191 |
programminghorror | emelrad12 | g67cetr | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>Rejected for formatting. And the author fired.<|eor|><|eols|><|endoftext|> | 148 |
programminghorror | Jojajones | g6836ss | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>I think I've transcribed it accurately:
#include <iostream>
#include <string>
using namespace std;
class B {
int b;
public: B(){
}
B(int i) {
b = i;
}
int show(... | 50 |
programminghorror | pokexpert30 | g67oagt | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>A humble question, what does `friend` do?
Also `C c(10);` should fail, shouldn't it?<|eor|><|sor|>I recall friend meaning the object you're referring to as a friend has access to your member or something<|eor|><|eols|><|en... | 47 |
programminghorror | Kengaro | g67nkho | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>A humble question, what does `friend` do?
Also `C c(10);` should fail, shouldn't it?<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | dontquestionmyaction | g68y6fy | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>A humble question, what does `friend` do?
Also `C c(10);` should fail, shouldn't it?<|eor|><|sor|>I recall friend meaning the object you're referring to as a friend has access to your member or something<|eor|><|sor|>( )... | 35 |
programminghorror | Truly_Unknown | g6a9351 | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>The correct answer in this case is `main.cpp:1:21: warning: extra tokens at end of #include directive`<|eor|><|sor|>Incorrect, due to insufficient pedantry.
That's the output of the compiler, while the questions clearly a... | 27 |
programminghorror | LordDoomAndGloom | g67xy1q | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>I had a professor that would present code in his lectures by putting them in the same word document the lecture was in (without any code formatting). Very smart guy who knew his shit, but BRUH<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | mohragk | g67iqdf | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>Reject this as valid code for using `using std`, no descriptive class and variable names and unnecessary usage of objects.<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | BertyLohan | g695yp6 | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>I think I've transcribed it accurately:
#include <iostream>
#include <string>
using namespace std;
class B {
int b;
public: B(){
}
B(int i) {
b = i;
}
int show(... | 24 |
programminghorror | Hupf | g69br2y | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>Rejected for formatting. And the author fired.<|eor|><|sor|>Ah yes, the mandatory company coding style guide<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | inchester | g68bkec | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>A humble question, what does `friend` do?
Also `C c(10);` should fail, shouldn't it?<|eor|><|sor|>> Also C c(10); should fail, shouldn't it?
Thats perfectly valid cpp code. Creates C on the stack and passes 10 to the cons... | 17 |
programminghorror | DrStalker | g69dnl1 | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>I think I've transcribed it accurately:
#include <iostream>
#include <string>
using namespace std;
class B {
int b;
public: B(){
}
B(int i) {
b = i;
}
int show(... | 17 |
programminghorror | Fulgurata | g69kdf8 | <|sols|><|sot|>Online exam horror.<|eot|><|sol|>https://i.redd.it/5zx2ft1o4oo51.jpg<|eol|><|sor|>I think I've transcribed it accurately:
#include <iostream>
#include <string>
using namespace std;
class B {
int b;
public: B(){
}
B(int i) {
b = i;
}
int show(... | 16 |
programminghorror | LostErrorCode404 | w200up | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|eols|><|endoftext|> | 1,532 |
programminghorror | deadbeef1a4 | igna82t | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>when the syntax highlighting just gives up<|eor|><|eols|><|endoftext|> | 822 |
programminghorror | LostErrorCode404 | ignagjg | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>when the syntax highlighting just gives up<|eor|><|soopr|>Im going to start uploading this code to github Copilot in hopes it recommends this as a genuine solution.<|eoopr|><|eols|><|endoftext|> | 758 |
programminghorror | PaintingJo | ign9zzy | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>Ah yes, calling Math.random() with jsfuck<|eor|><|eols|><|endoftext|> | 388 |
programminghorror | 4BDUL4Z1Z | ignlvrj | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>After like 50% of it, the code colour formatter be like:
> wtf bro? you're on your own, I'm done. Enough of this fuckary.<|eor|><|eols|><|endoftext|> | 278 |
programminghorror | alesimula97 | ignng05 | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>when the syntax highlighting just gives up<|eor|><|soopr|>Im going to start uploading this code to github Copilot in hopes it recommends this as a genuine solution.<|eoopr|><|sor|>This is the most villainous com... | 259 |
programminghorror | teabaguk | ign64hy | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>Result: 4<|eor|><|eols|><|endoftext|> | 198 |
programminghorror | LostErrorCode404 | ignmnkv | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>After like 50% of it, the code colour formatter be like:
> wtf bro? you're on your own, I'm done. Enough of this fuckary.<|eor|><|soopr|>I converted the entire 50,000 lines of code from the three.js library in... | 147 |
programminghorror | Metarract | ignev2m | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>Result: 4<|eor|><|sor|>[relevant xkcd](https://xkcd.com/221/)<|eor|><|eols|><|endoftext|> | 140 |
programminghorror | ZuriPL | igne5iv | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>when the syntax highlighting just gives up<|eor|><|soopr|>Im going to start uploading this code to github Copilot in hopes it recommends this as a genuine solution.<|eoopr|><|sor|>Hahahahaha I'm gonna try to ge... | 133 |
programminghorror | LostErrorCode404 | igna549 | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>Ah yes, calling Math.random() with jsfuck<|eor|><|soopr|>I didnt know the site could handle DOM manipulation until I tried this.<|eoopr|><|eols|><|endoftext|> | 130 |
programminghorror | PaintingJo | ignaape | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>Ah yes, calling Math.random() with jsfuck<|eor|><|soopr|>I didnt know the site could handle DOM manipulation until I tried this.<|eoopr|><|sor|>JavaScript is full of wonders
(and jank)<|eor|><|eols|><|endoftext... | 73 |
programminghorror | PaintingJo | igneiw8 | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>Ah yes, calling Math.random() with jsfuck<|eor|><|sor|>We really need cssfuck<|eor|><|sor|>We most definitely do *not* need cssfuck
*But I want it*<|eor|><|eols|><|endoftext|> | 64 |
programminghorror | ZuriPL | igneaxk | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>Ah yes, calling Math.random() with jsfuck<|eor|><|sor|>We really need cssfuck<|eor|><|eols|><|endoftext|> | 55 |
programminghorror | ProfitCommercial5536 | ign8x4d | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>It's so horrible yet so good<|eor|><|eols|><|endoftext|> | 46 |
programminghorror | NotQuiteAmish | igppv7f | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>Result: 4<|eor|><|sor|>[relevant xkcd](https://xkcd.com/221/)<|eor|><|sor|>I never understood this joke, could someone explain it please? I know the method will always return 4, but I dont understand why the com... | 44 |
programminghorror | PyMaster22 | ignr0c7 | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>After like 50% of it, the code colour formatter be like:
> wtf bro? you're on your own, I'm done. Enough of this fuckary.<|eor|><|soopr|>I converted the entire 50,000 lines of code from the three.js library in... | 37 |
programminghorror | NotARandomNumber | ignp81v | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>This is why I include my username in all my code.<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | Loisel06 | igp7ok7 | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>when the syntax highlighting just gives up<|eor|><|soopr|>Im going to start uploading this code to github Copilot in hopes it recommends this as a genuine solution.<|eoopr|><|sor|>Hahahahaha I'm gonna try to ge... | 30 |
programminghorror | h0stetler | ignpuk2 | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>Ah yes, calling Math.random() with jsfuck<|eor|><|soopr|>I didnt know the site could handle DOM manipulation until I tried this.<|eoopr|><|sor|>JavaScript is full of wonders
(and jank)<|eor|><|sor|>Mostly jank<... | 30 |
programminghorror | LostErrorCode404 | ignvli7 | <|sols|><|sot|>Working random number generator<|eot|><|sol|>https://i.redd.it/k115d6rh1cc91.png<|eol|><|sor|>After like 50% of it, the code colour formatter be like:
> wtf bro? you're on your own, I'm done. Enough of this fuckary.<|eor|><|soopr|>I converted the entire 50,000 lines of code from the three.js library in... | 29 |
programminghorror | the_german_flag | qe2nzr | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|eols|><|endoftext|> | 1,533 |
programminghorror | PeksyTiger | hhqq1gu | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>Datum. Data is for arrays.<|eor|><|eols|><|endoftext|> | 281 |
programminghorror | the_german_flag | hhqb2dp | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>What is this article about lol<|eor|><|soopr|>How to be a real programmer ninja. Become one yourself [here](https://javascript.info/ninja-code).
>Programmer ninjas of the past used these tricks to sha... | 128 |
programminghorror | Jin_Taejin | hhqhrm5 | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>What is this article about lol<|eor|><|soopr|>How to be a real programmer ninja. Become one yourself [here](https://javascript.info/ninja-code).
>Programmer ninjas of the past used these tricks to sha... | 98 |
programminghorror | Vizioso | hhqrm1g | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>I mean if we're trying to make it shorter, lets create public class A, with public static function b, put that code in a separate project and import it as a dependency, and then we can access this as A.... | 88 |
programminghorror | haykam821 | hhqs3yg | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>Datum. Data is for arrays.<|eor|><|sor|>Each bit your variable stores is its own datum. For maximum clarity, document all the data your variable stores, bit by bit.<|eor|><|eols|><|endoftext|> | 78 |
programminghorror | Figoos | hhqakww | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>What is this article about lol<|eor|><|eols|><|endoftext|> | 74 |
programminghorror | pacific_plywood | hhqr5zh | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>What is this article about lol<|eor|><|soopr|>How to be a real programmer ninja. Become one yourself [here](https://javascript.info/ninja-code).
>Programmer ninjas of the past used these tricks to sha... | 67 |
programminghorror | pavel_lishin | hhr2h3i | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>Someone I worked with used to _love_ naming variables `$hold`. As in, it held data. Temporarily. Across hundreds of lines of code.<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | TheOnlyMisterFlow | hhqpqzp | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>The funny thing is, there is no need to have short variable names in the code. When its done, you can just run it through a minifier, like most libraries do<|eor|><|sor|>r/woosh<|eor|><|eols|><|endoftex... | 33 |
programminghorror | Roflkopt3r | hhralu0 | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>What is this article about lol<|eor|><|soopr|>How to be a real programmer ninja. Become one yourself [here](https://javascript.info/ninja-code).
>Programmer ninjas of the past used these tricks to sha... | 29 |
programminghorror | schimmelA | hhqw1eb | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>What is this article about lol<|eor|><|soopr|>How to be a real programmer ninja. Become one yourself [here](https://javascript.info/ninja-code).
>Programmer ninjas of the past used these tricks to sha... | 29 |
programminghorror | OhSaladYouSoFunny | hhqhqsj | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>What is this article about lol<|eor|><|soopr|>How to be a real programmer ninja. Become one yourself [here](https://javascript.info/ninja-code).
>Programmer ninjas of the past used these tricks to sha... | 23 |
programminghorror | lordheart | hhr62js | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>I do love the ternary operator and I'm probably guilty of this but don't do this.<|eor|><|sor|>Ternary can be great, especially for a quick inline statement. Two ternary combined can be ok but should pr... | 22 |
programminghorror | culculain | hhr2bxg | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>I do love the ternary operator and I'm probably guilty of this but don't do this.<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | supersharp | hhr1bv1 | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>Datum. Data is for arrays.<|eor|><|sor|>Each bit your variable stores is its own datum. For maximum clarity, document all the data your variable stores, bit by bit.<|eor|><|sor|>That's a fragment of a d... | 17 |
programminghorror | intensely_human | hhr205u | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>Funny, my guru coworker logged two bugs just yesterday because of aliases in a SQL query named "a" and "i". Thanks to the ninja, the bugs flew right past me when reviewing.
*a.column_1* was supposed ... | 16 |
programminghorror | Snoo87743 | hhrcvot | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>Just gonna put here some ooooold shit i have to maintain now...
r.extend = r.fn.extend = function() {
var a, b, c, d, e, f, g = arguments[0] || {}, h = 1, i = arguments.length, j = !1;
... | 15 |
programminghorror | 20_characters_is_not | hhrjalp | <|sols|><|sot|>"The ideal name for a variable is data."<|eot|><|sol|>https://i.redd.it/b7tq0t7wj6v71.png<|eol|><|sor|>Datum. Data is for arrays.<|eor|><|sor|>All too many letters. If you type more than dat youre wasting valuable time and memory.<|eor|><|eols|><|endoftext|> | 15 |
programminghorror | Baixst | k0r35k | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|eols|><|endoftext|> | 1,533 |
programminghorror | kuemmel234 | gdk2k4o | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 432 |
programminghorror | babbletags1 | gdkg605 | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 169 |
programminghorror | mohragk | gdjr9em | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>And the lack of spaces inline and overall inconsistency is hurting my eyes.
And why is this a class? Why not simply create a function that performs the DFT? It doesn't make sense that a ... | 130 |
programminghorror | sitilge | gdk0ghk | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>He would be having bad time with Python then.
Edit: spelling<|eor|><|eols|><|endoftext|> | 92 |
programminghorror | DarkblueFlow | gdjx7ec | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>And the lack of spaces inline and overall inconsistency is hurting my eyes.
And why is this a class? Why not simply create a function that performs the DFT? It doesn't make sense that a ... | 68 |
programminghorror | kuemmel234 | gdkttob | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 60 |
programminghorror | usedToBeUnhappy | gdla1rv | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 46 |
programminghorror | Baixst | gdjytdt | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>And the lack of spaces inline and overall inconsistency is hurting my eyes.
And why is this a class? Why not simply create a function that performs the DFT? It doesn't make sense that a ... | 43 |
programminghorror | bonafidebob | gdkohw0 | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 34 |
programminghorror | maibrl | gdkzql6 | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 30 |
programminghorror | Speicherleck | gdkpt05 | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 28 |
programminghorror | bonafidebob | gdkljmb | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 26 |
programminghorror | Sophira | gdk4gi3 | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Could this have been copied and pasted from elsewhere and then just not reformatted?<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | Baixst | gdjxstg | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>And the lack of spaces inline and overall inconsistency is hurting my eyes.
And why is this a class? Why not simply create a function that performs the DFT? It doesn't make sense that a ... | 21 |
programminghorror | Asakial | gdlep20 | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Didn't look too closely at the code, but given the context the indenting looks to me like an attempt at being pedagogical; trying to emphasize that the function is what the students are s... | 19 |
programminghorror | kuemmel234 | gdlg47b | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 19 |
programminghorror | nerdyphoenix | gdkmi2l | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 18 |
programminghorror | Pazuuuzu | gdksfu5 | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>He would be having bad time with Python then.
Edit: spelling<|eor|><|sor|>Don't even jooe about that stuff. I love it but took me a while to get used to it. Not like vim which for I just... | 16 |
programminghorror | CJKay93 | gdku60w | <|sols|><|sot|>The amount of spaces my professor puts infront of an if<|eot|><|sol|>https://i.redd.it/o9ddxw8snd161.png<|eol|><|sor|>Reminds me of my first semester at German uni.
Gotta love having a 60 year old professor teaching you programming basics in c with so many red flags for anyone who spends any serious tim... | 15 |
programminghorror | aharmonicminor | kv8wps | <|sols|><|sot|>I was sent this as satire, but its so horrendous I had to share<|eot|><|sol|>https://i.redd.it/g347joj30ra61.jpg<|eol|><|eols|><|endoftext|> | 1,528 |
programminghorror | danyil20xx | giwv1fa | <|sols|><|sot|>I was sent this as satire, but its so horrendous I had to share<|eot|><|sol|>https://i.redd.it/g347joj30ra61.jpg<|eol|><|sor|>Public Viod, my favourite.<|eor|><|eols|><|endoftext|> | 446 |
programminghorror | larsmaehlum | giwz15j | <|sols|><|sot|>I was sent this as satire, but its so horrendous I had to share<|eot|><|sol|>https://i.redd.it/g347joj30ra61.jpg<|eol|><|sor|>Public Viod, my favourite.<|eor|><|sor|>I so have to make a class named viod and sneak it into a code review to see if people are paying attention.<|eor|><|eols|><|endoftext|> | 228 |
programminghorror | ReservedClass | giwwfms | <|sols|><|sot|>I was sent this as satire, but its so horrendous I had to share<|eot|><|sol|>https://i.redd.it/g347joj30ra61.jpg<|eol|><|sor|> Looks like they watched Java and Javascript tutorials thinking it was the same<|eor|><|eols|><|endoftext|> | 207 |
programminghorror | aharmonicminor | giwxalz | <|sols|><|sot|>I was sent this as satire, but its so horrendous I had to share<|eot|><|sol|>https://i.redd.it/g347joj30ra61.jpg<|eol|><|sor|> Looks like they watched Java and Javascript tutorials thinking it was the same<|eor|><|soopr|>it looks like every languages styling in a shitshow of one code block<|eoopr|><|eols... | 103 |
programminghorror | Gaareth | gix3ofb | <|sols|><|sot|>I was sent this as satire, but its so horrendous I had to share<|eot|><|sol|>https://i.redd.it/g347joj30ra61.jpg<|eol|><|sor|>Public Viod, my favourite.<|eor|><|sor|>I so have to make a class named viod and sneak it into a code review to see if people are paying attention.<|eor|><|sor|>damn that's evil<|... | 85 |
programminghorror | im-a-guy-like-me | gix6r90 | <|sols|><|sot|>I was sent this as satire, but its so horrendous I had to share<|eot|><|sol|>https://i.redd.it/g347joj30ra61.jpg<|eol|><|sor|>Capital R return is best return.<|eor|><|eols|><|endoftext|> | 81 |
programminghorror | larsmaehlum | gix3wcz | <|sols|><|sot|>I was sent this as satire, but its so horrendous I had to share<|eot|><|sol|>https://i.redd.it/g347joj30ra61.jpg<|eol|><|sor|>Public Viod, my favourite.<|eor|><|sor|>I so have to make a class named viod and sneak it into a code review to see if people are paying attention.<|eor|><|sor|>damn that's evil<|... | 79 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.