subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | eloel- | iwm5deg | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>I can almost imagine the date\_of\_birth column being a mishmash of different formats. Still better ways to do it, obviously, but I doubt this is someone going off on a perfectly formatted column.<|eor|><|eol... | 50 |
programminghorror | kiskoza | iwm70u2 | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Lol, and it has to get updated every year. Bravo.<|eor|><|sor|>nah, just subtract one from the year in the previous line to keep the diff smaller<|eor|><|eols|><|endoftext|> | 49 |
programminghorror | t3kner | iwmiplp | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Expert mode: add support for displaying Korean ages<|eor|><|eols|><|endoftext|> | 43 |
programminghorror | EagleCoder | iwmhbna | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Lol, and it has to get updated every year. Bravo.<|eor|><|sor|>Bonus! Its wrong for an increasingly higher percentage of people the closer to the beginning of the year you are, because people havent had their... | 41 |
programminghorror | Hybr13 | iwmm9jm | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Expert mode: add support for displaying Korean ages<|eor|><|sor|>I'll bite. How do Koreans do ages differently?<|eor|><|sor|>Long story short, you are already 1 years old when you are born. You are age 0 when... | 38 |
programminghorror | eloel- | iwmnpvt | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Lol, and it has to get updated every year. Bravo.<|eor|><|sor|>Bonus! Its wrong for an increasingly higher percentage of people the closer to the beginning of the year you are, because people havent had their... | 29 |
programminghorror | eloel- | iwmnyo8 | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Expert mode: add support for displaying Korean ages<|eor|><|sor|>I'll bite. How do Koreans do ages differently?<|eor|><|sor|>Long story short, you are already 1 years old when you are born. You are age 0 when... | 28 |
programminghorror | eloel- | iwnp2os | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Expert mode: add support for displaying Korean ages<|eor|><|sor|>I'll bite. How do Koreans do ages differently?<|eor|><|sor|>Long story short, you are already 1 years old when you are born. You are age 0 when... | 21 |
programminghorror | Sockoflegend | iwmk48m | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Expert mode: add support for displaying Korean ages<|eor|><|sor|>I'll bite. How do Koreans do ages differently?<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | mshthn | iwmedy0 | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Nah please say you made this up. No one can be this stupid.<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | FreelanceFrankfurter | iwncokh | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Lol, and it has to get updated every year. Bravo.<|eor|><|sor|>Bonus! Its wrong for an increasingly higher percentage of people the closer to the beginning of the year you are, because people havent had their... | 11 |
programminghorror | DaniDipp | iwnlo12 | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Expert mode: add support for displaying Korean ages<|eor|><|sor|>I'll bite. How do Koreans do ages differently?<|eor|><|sor|>Long story short, you are already 1 years old when you are born. You are age 0 when... | 11 |
programminghorror | Senior_Wolverine23 | iwn9off | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>All these people saying you don't need math to code<|eor|><|eols|><|endoftext|> | 9 |
programminghorror | werdl_ | iwm6tj4 | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>How lovely<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | PhysicsInner3591 | iwmn1zn | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Lol, and it has to get updated every year. Bravo.<|eor|><|sor|>Looks like it hasn't been updated since 2019.<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | PhysicsInner3591 | iwmm9b9 | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Expert mode: add support for displaying Korean ages<|eor|><|sor|>Actually this works just fine for the Korean age, since it is not needed to account for the birth date.<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | t3kner | iwmtpyc | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>Expert mode: add support for displaying Korean ages<|eor|><|sor|>I'll bite. How do Koreans do ages differently?<|eor|><|sor|>https://www.90daykorean.com/korean-age-all-about-age-in-korea/<|eor|><|sor|>Do Kore... | 6 |
programminghorror | Circuit_Guy | iwnvjsa | <|sols|><|sot|>Such a nice formula to come across<|eot|><|sol|>https://i.redd.it/o9h1ttajt60a1.png<|eol|><|sor|>You know that job application that was asking how many lines of code you wrote? This dude was the OG setting himself up for those jobs since 2019.<|eor|><|eols|><|endoftext|> | 5 |
programminghorror | trBlueJ | s1nfe1 | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|eols|><|endoftext|> | 1,086 |
programminghorror | trBlueJ | hs9c3tp | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|soopr|>For those who don't see it, I call to attention line 10, `rm -rf $DIRECTROY/*`. It is also important to know that, in the case where a referenced environment variable does not exist, no error occurs.... | 169 |
programminghorror | trBlueJ | hs9hl7x | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|soopr|>For those who don't see it, I call to attention line 10, `rm -rf $DIRECTROY/*`. It is also important to know that, in the case where a referenced environment variable does not exist, no error occurs.... | 93 |
programminghorror | CyborneVertighost | hsaj6uu | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>You should also be quoting your variable expansions. If someone calls your script like this:
$ my-script "oops " # note the extra space on the end
Then your script will also blow away the conten... | 89 |
programminghorror | InvalidUserException | hsacriz | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|soopr|>For those who don't see it, I call to attention line 10, `rm -rf $DIRECTROY/*`. It is also important to know that, in the case where a referenced environment variable does not exist, no error occurs.... | 84 |
programminghorror | Thaddaeus-Tentakel | hsa3pim | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>Since it fits the topic: Making bash scripts less stupid: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/<|eor|><|eols|><|endoftext|> | 81 |
programminghorror | trBlueJ | hs9hbfs | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>What font/terminal are you using?
(I like the font.)<|eor|><|soopr|>Terminus font.
In GVIM with colorscheme pablo.<|eoopr|><|eols|><|endoftext|> | 73 |
programminghorror | theevildjinn | hsa2l14 | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|soopr|>For those who don't see it, I call to attention line 10, `rm -rf $DIRECTROY/*`. It is also important to know that, in the case where a referenced environment variable does not exist, no error occurs.... | 42 |
programminghorror | tchernobog84 | hsa1cna | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|soopr|>For those who don't see it, I call to attention line 10, `rm -rf $DIRECTROY/*`. It is also important to know that, in the case where a referenced environment variable does not exist, no error occurs.... | 41 |
programminghorror | HabbitBaggins | hsa7hvi | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|soopr|>For those who don't see it, I call to attention line 10, `rm -rf $DIRECTROY/*`. It is also important to know that, in the case where a referenced environment variable does not exist, no error occurs.... | 35 |
programminghorror | trollsmurf | hsaurq3 | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>What font/terminal are you using?
(I like the font.)<|eor|><|sor|>Do you mean "were you using"?<|eor|><|eols|><|endoftext|> | 34 |
programminghorror | InvalidUserException | hs9ukow | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>needs --no-preserve-root to be destructive<|eor|><|sor|>No. `rm -rf /*` does not need `--no-preserve-root` to run, at least on the random container I just tried it on.
This command doesn't rm root, it... | 30 |
programminghorror | mgord9518 | hsaimxq | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|soopr|>For those who don't see it, I call to attention line 10, `rm -rf $DIRECTROY/*`. It is also important to know that, in the case where a referenced environment variable does not exist, no error occurs.... | 30 |
programminghorror | Thaddaeus-Tentakel | hsasjwy | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>Since it fits the topic: Making bash scripts less stupid: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/<|eor|><|sor|>This is terrible advice, `set -e` is no replacement for error... | 23 |
programminghorror | meganeyangire | hsakynh | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>Still not as bad as the most commented commit on Github.<|eor|><|sor|>Which is?<|eor|><|sor|>[This one](https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb8... | 23 |
programminghorror | psi- | hsa7tss | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>What font/terminal are you using?
(I like the font.)<|eor|><|sor|>You might light also this: https://int10h.org/oldschool-pc-fonts/fontlist/font?ibm_model3x_alt2
But the problem is that it pretty muc... | 18 |
programminghorror | drcopus | hsadc2t | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>That's truly horrifying. I always feel like I'm playing with the void when I use `rm -rf`<|eor|><|eols|><|endoftext|> | 17 |
programminghorror | no_opinions_allowed | hsbmmrj | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>Since it fits the topic: Making bash scripts less stupid: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/<|eor|><|sor|>The other guy was downvoted, but he's right: two out of three... | 16 |
programminghorror | InvalidUserException | hs9utwu | <|sols|><|sot|>One typo can spell immense destruction...<|eot|><|sol|>https://i.redd.it/gbfsi7yhh4b81.png<|eol|><|sor|>[deleted]<|eor|><|sor|>`set -u` would help. How would a function?<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | Brainix | az8fi5 | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|eols|><|endoftext|> | 1,074 |
programminghorror | adkon | ei60kwy | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>What darkness must be in one's soul to stray down this path in the search of truth?<|eor|><|eols|><|endoftext|> | 309 |
programminghorror | Durdys | ei631up | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>>helps to simplify complex boolean logic.<|eor|><|eols|><|endoftext|> | 148 |
programminghorror | icewolfsig226 | ei636wf | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>When you get paid by the line?<|eor|><|eols|><|endoftext|> | 125 |
programminghorror | Coherent_Paradox | ei65q3p | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>Not enough Factory. I still expect a BooleanBuilder to generate booleans. And of course a BooleanBuilderFactoryImpl<|eor|><|eols|><|endoftext|> | 101 |
programminghorror | InternetAccount00 | ei647v6 | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>What darkness must be in one's soul to stray down this path in the search of truth?<|eor|><|sor|>This path is the path of the Independent Contractor.<|eor|><|eols|><|endoftext|> | 93 |
programminghorror | mach04 | ei6a4wa | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>needs a `Logger.log("checkifTrue() returned " + isTrue);`<|eor|><|eols|><|endoftext|> | 77 |
programminghorror | x4u | ei62p5r | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>That's very useful in case you may need to change the implementation of checkIfTrue(), i.e. to return false if true to work around a similarly brilliant fix that you did earlier. Remember the golden rules of enterprise development: N... | 71 |
programminghorror | best-commenter | ei62sfl | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>Booleans are sooooop last year. Cool kids use [two-case enums](https://www.hackingwithswift.com/articles/172/using-two-cased-enums-in-place-of-a-boolean) instead. <|eor|><|eols|><|endoftext|> | 37 |
programminghorror | RunasSudo | ei6kdfs | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>What darkness must be in one's soul to stray down this path in the search of truth?<|eor|><|sor|>> What darkness must be in one's soul to stray down this path in the search of `BooleanUtils.TRUE`?
FTFY<|eor|><|eols|><|endoftext|> | 37 |
programminghorror | neilalexanderr | ei68y4g | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>If you were wondering how contractors cement themselves into well-paid contracts long-term, well, this is it.<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | jmiesionczek | ei6ff10 | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>Not enough Factory. I still expect a BooleanBuilder to generate booleans. And of course a BooleanBuilderFactoryImpl<|eor|><|sor|>dont forget the unit tests<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | Alekzcb | ei6nqoc | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>Booleans are sooooop last year. Cool kids use [two-case enums](https://www.hackingwithswift.com/articles/172/using-two-cased-enums-in-place-of-a-boolean) instead. <|eor|><|sor|>Unironically agree with this 100%. If the value doesn't ... | 30 |
programminghorror | broken-neurons | ei67ziq | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>Needs a try catch around that just in case checking true or false to true or false throws an exception. /s
Just to improve it
private static bool TRUE = true;
private static bool checkIfTrue(bool isTrue)
{
try... | 26 |
programminghorror | Return_Of_The_Fly | ei61nsm | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>What about "File Not Found", though? <|eor|><|eols|><|endoftext|> | 21 |
programminghorror | Nall-ohki | ei646v7 | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>Booleans are sooooop last year. Cool kids use [two-case enums](https://www.hackingwithswift.com/articles/172/using-two-cased-enums-in-place-of-a-boolean) instead. <|eor|><|sor|>Nothing wrong with this.
Neither are Go's typed primiti... | 21 |
programminghorror | HandshakeOfCO | ei7fs4w | <|sols|><|sot|>Simplify.<|eot|><|sol|>https://i.redd.it/18rh0a9c55l21.jpg<|eol|><|sor|>Not enough Factory. I still expect a BooleanBuilder to generate booleans. And of course a BooleanBuilderFactoryImpl<|eor|><|sor|>dont forget the unit tests<|eor|><|sor|>CheckIfCheckIsTrueIsTrue<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | wargodz009 | ervi6f | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|eols|><|endoftext|> | 1,075 |
programminghorror | penguin_94 | ff6beq6 | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Well yes, but actually yes<|eor|><|eols|><|endoftext|> | 337 |
programminghorror | slowlycatchiemonkey | ff6wm1e | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>As a PHP dev this makes me very sad. As does being a PHP dev<|eor|><|eols|><|endoftext|> | 124 |
programminghorror | Last_Snowbender | ff67r0z | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|eols|><|endoftext|> | 119 |
programminghorror | wargodz009 | ff68gzw | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|soopr|>nope. i use phpstorm
notepad++ was just my go to app when viewing single file<|eoopr|><|eols|><|endoftext|> | 106 |
programminghorror | wargodz009 | ff69pmf | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|soopr|>nope. i use phpstorm
notepad++ was just my go to app when viewing single file<|eoopr|><|sor|>I was worried there for a second lol.
Btw, PHPStorm can o... | 69 |
programminghorror | Elsolar | ff6edwg | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Yes, this is actually, unironically normal. If that code is ever uncommented, the if/else becomes meaningful. If the commented out code is deemed forever useless and deleted, THEN you remove the ... | 64 |
programminghorror | PhiBuh | ff6bib7 | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|soopr|>nope. i use phpstorm
notepad++ was just my go to app when viewing single file<|eoopr|><|sor|>I was worried there for a second lol.
Btw, PHPStorm can o... | 63 |
programminghorror | Lucavon | ff6lhmq | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|soopr|>nope. i use phpstorm
notepad++ was just my go to app when viewing single file<|eoopr|><|sor|>I was worried there for a second lol.
Btw, PHPStorm can o... | 49 |
programminghorror | cyrusol | ff6cix0 | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|soopr|>nope. i use phpstorm
notepad++ was just my go to app when viewing single file<|eoopr|><|sor|>I was worried there for a second lol.
Btw, PHPStorm can o... | 46 |
programminghorror | Lucavon | ff6nd12 | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>I was worried there for a second lol.
Btw, PHPStorm can open single files too, just saying.<|eor|><|soopr|>yup. its just to open files faster. you know. poor slow millennium old pc problems.<|eo... | 44 |
programminghorror | taylankasap | ff6azjf | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|soopr|>nope. i use phpstorm
notepad++ was just my go to app when viewing single file<|eoopr|><|sor|>I was worried there for a second lol.
Btw, PHPStorm can o... | 41 |
programminghorror | Last_Snowbender | ff691a5 | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|soopr|>nope. i use phpstorm
notepad++ was just my go to app when viewing single file<|eoopr|><|sor|>I was worried there for a second lol.
Btw, PHPStorm can o... | 40 |
programminghorror | goodoldgrim | ff6dbcx | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Yes, this is actually, unironically normal. If that code is ever uncommented, the if/else becomes meaningful. If the commented out code is deemed forever useless and deleted, THEN you remove the ... | 37 |
programminghorror | MungeParty | ff846yi | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Well yes, but actually yes<|eor|><|sor|>Otherwise, yes<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | wordbug | ff6e86c | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Yes, this is actually, unironically normal. If that code is ever uncommented, the if/else becomes meaningful. If the commented out code is deemed forever useless and deleted, THEN you remove the ... | 35 |
programminghorror | prameshbajra | ff6b584 | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Do we work in the same company?
Let's not meet ever. <|eor|><|eols|><|endoftext|> | 34 |
programminghorror | Last_Snowbender | ff67q1c | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Forget the conditionals. Your real problem is the "<?php" string. It could be shortened to three keystrokes: "<?".<|eor|><|sor|>This only works if the option `short_open_tag` is set to `on`, whic... | 32 |
programminghorror | static_motion | ff6z7ue | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|soopr|>nope. i use phpstorm
notepad++ was just my go to app when viewing single file<|eoopr|><|sor|>May I recommend VSCode? Its my favorite, at least until re... | 31 |
programminghorror | goodoldgrim | ff6efdr | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Yes, this is actually, unironically normal. If that code is ever uncommented, the if/else becomes meaningful. If the commented out code is deemed forever useless and deleted, THEN you remove the ... | 30 |
programminghorror | caerphoto | ff6ofo0 | <|sols|><|sot|>just a normal if else condition on our codebase<|eot|><|sol|>https://i.redd.it/l39emi6a85c41.png<|eol|><|sor|>Are you coding in Notepad++?<|eor|><|soopr|>nope. i use phpstorm
notepad++ was just my go to app when viewing single file<|eoopr|><|sor|>May I recommend VSCode? Its my favorite, at least until re... | 27 |
programminghorror | geekveek | bvf8dt | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|eols|><|endoftext|> | 1,075 |
programminghorror | cguess | epoyybo | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Ah... JavaScript. Every time I run yarn add ... and see 1324 packages my eye twitches and my inevitable aneurism comes a tad bit closer.
How... how, does anyone, anywhere, believe this is the best way to build the literal enti... | 212 |
programminghorror | jokullmusic | epow2o7 | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>I have many questions, but I'll narrow them down to two.
1. How does this happen?
2. That code snippet doesn't actually accomplish anything, right?<|eor|><|sor|>IIRC the package devs wanted to have metrics on the number of inst... | 137 |
programminghorror | cguess | epp078e | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Ah... JavaScript. Every time I run yarn add ... and see 1324 packages my eye twitches and my inevitable aneurism comes a tad bit closer.
How... how, does anyone, anywhere, believe this is the best way to build the literal enti... | 108 |
programminghorror | Lord_of_Lemons | epouzhm | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>I have many questions, but I'll narrow them down to two.
1. How does this happen?
2. That code snippet doesn't actually accomplish anything, right?<|eor|><|eols|><|endoftext|> | 102 |
programminghorror | onthefence928 | epowkcg | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Isnt this a huge no-no for production builds? Including a useless dependency that possibly thousands of people will rely on to build their software? Just wow.<|eor|><|sor|>dirty secret is far too many npm packages are barely mai... | 87 |
programminghorror | sim642 | epp6kge | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>I have many questions, but I'll narrow them down to two.
1. How does this happen?
2. That code snippet doesn't actually accomplish anything, right?<|eor|><|sor|>IIRC the package devs wanted to have metrics on the number of inst... | 78 |
programminghorror | phogna__bologna | epozwm8 | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Ah... JavaScript. Every time I run yarn add ... and see 1324 packages my eye twitches and my inevitable aneurism comes a tad bit closer.
How... how, does anyone, anywhere, believe this is the best way to build the literal enti... | 59 |
programminghorror | SkaSicki | eppdddv | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>I have many questions, but I'll narrow them down to two.
1. How does this happen?
2. That code snippet doesn't actually accomplish anything, right?<|eor|><|sor|>IIRC the package devs wanted to have metrics on the number of inst... | 57 |
programminghorror | DCoder1337 | epp7iw4 | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Ah... JavaScript. Every time I run yarn add ... and see 1324 packages my eye twitches and my inevitable aneurism comes a tad bit closer.
How... how, does anyone, anywhere, believe this is the best way to build the literal enti... | 46 |
programminghorror | schurmanr34 | epovmeu | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Isnt this a huge no-no for production builds? Including a useless dependency that possibly thousands of people will rely on to build their software? Just wow.<|eor|><|eols|><|endoftext|> | 39 |
programminghorror | alienoperations | epp6vz4 | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>[deleted]<|eor|><|sor|>A library caused builds run on a lot of servers to break, because a totally useless dependency couldn't be downloaded.<|eor|><|eols|><|endoftext|> | 38 |
programminghorror | svick | epplwlp | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>I have many questions, but I'll narrow them down to two.
1. How does this happen?
2. That code snippet doesn't actually accomplish anything, right?<|eor|><|sor|>IIRC the package devs wanted to have metrics on the number of inst... | 38 |
programminghorror | DCoder1337 | eppj1sa | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Ah... JavaScript. Every time I run yarn add ... and see 1324 packages my eye twitches and my inevitable aneurism comes a tad bit closer.
How... how, does anyone, anywhere, believe this is the best way to build the literal enti... | 36 |
programminghorror | droomph | epp9ga2 | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Ah... JavaScript. Every time I run yarn add ... and see 1324 packages my eye twitches and my inevitable aneurism comes a tad bit closer.
How... how, does anyone, anywhere, believe this is the best way to build the literal enti... | 31 |
programminghorror | keight88 | eppjsp9 | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Ah... JavaScript. Every time I run yarn add ... and see 1324 packages my eye twitches and my inevitable aneurism comes a tad bit closer.
How... how, does anyone, anywhere, believe this is the best way to build the literal enti... | 27 |
programminghorror | wegwacc | epoz3a4 | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Isnt this a huge no-no for production builds? Including a useless dependency that possibly thousands of people will rely on to build their software? Just wow.<|eor|><|sor|>It would be, if NPM weren't such a clusterfuck, and deve... | 24 |
programminghorror | tuckmuck203 | eppf79p | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>I have many questions, but I'll narrow them down to two.
1. How does this happen?
2. That code snippet doesn't actually accomplish anything, right?<|eor|><|sor|>IIRC the package devs wanted to have metrics on the number of inst... | 19 |
programminghorror | cguess | epp85qs | <|sols|><|sot|>Useful npm package<|eot|><|sol|>https://i.imgur.com/VbihebD.png<|eol|><|sor|>Ah... JavaScript. Every time I run yarn add ... and see 1324 packages my eye twitches and my inevitable aneurism comes a tad bit closer.
How... how, does anyone, anywhere, believe this is the best way to build the literal enti... | 17 |
programminghorror | sw-vet | rg9cdz | <|sols|><|sot|>Tend to say FIFTY is 0x34 and challenge the reviewer<|eot|><|sol|>https://i.redd.it/s0mrr7i6wi581.png<|eol|><|eols|><|endoftext|> | 1,073 |
programminghorror | DamnOrangeCat | hoj937m | <|sols|><|sot|>Tend to say FIFTY is 0x34 and challenge the reviewer<|eot|><|sol|>https://i.redd.it/s0mrr7i6wi581.png<|eol|><|sor|>Ok but I need to know why half of them are censored<|eor|><|eols|><|endoftext|> | 334 |
programminghorror | TheConservativeTechy | hoiug27 | <|sols|><|sot|>Tend to say FIFTY is 0x34 and challenge the reviewer<|eot|><|sol|>https://i.redd.it/s0mrr7i6wi581.png<|eol|><|sor|>185 is also incorrect... Should be 0xB9 instead of 0x78<|eor|><|eols|><|endoftext|> | 171 |
programminghorror | sw-vet | hoiq54n | <|sols|><|sot|>Tend to say FIFTY is 0x34 and challenge the reviewer<|eot|><|sol|>https://i.redd.it/s0mrr7i6wi581.png<|eol|><|soopr|>Pure horror seeing this, and what the understanding of naming constants is...<|eoopr|><|sor|>Isnt 0x32 in hex == 50 in decimal though? Im not sure I understand the horror really.
3*16 = 4... | 168 |
programminghorror | bistr-o-math | hojczdy | <|sols|><|sot|>Tend to say FIFTY is 0x34 and challenge the reviewer<|eot|><|sol|>https://i.redd.it/s0mrr7i6wi581.png<|eol|><|sor|>Ok but I need to know why half of them are censored<|eor|><|sor|>OP should really have used NSFW tag instead<|eor|><|eols|><|endoftext|> | 156 |
programminghorror | skantanio | hoj6x6b | <|sols|><|sot|>Tend to say FIFTY is 0x34 and challenge the reviewer<|eot|><|sol|>https://i.redd.it/s0mrr7i6wi581.png<|eol|><|sor|>MINUS_ONE -1<|eor|><|sor|>Just in case math receives an update in the future that changes the value of -1. I dont see an issue here. /s<|eor|><|eols|><|endoftext|> | 143 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.