subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | Analprop | jby1vj6 | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>Why is it so hard to fix the fucking indentation? It makes me so mad man lol<|eor|><|soopr|>Zero effort<|eoopr|><|eols|><|endoftext|> | 46 |
programminghorror | DenrexTheSecond | jbwr78k | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>a little annotation
it would be
...
"study": {
"category" : "Computer Science",
"level" : "bachelor"
}
}<|eor|><|sor|>it's not valid json
```
{ // presumed, keys can't exist without an object
"docu... | 28 |
programminghorror | tostuo | jbxrgnj | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>I don't know what's wrong with the code, but I hate those quotation marks<|eor|><|sor|>Despite being a course on JSON, that isn't valid JSON.
Also those quotation marks cause hell for anyone who needs to copy-... | 26 |
programminghorror | Prashank_25 | jbxi6x6 | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>Looks like someone ran XML through a ~~bad~~ professor written XML to JSON converter.<|eor|><|sor|>Is the professor bad or the converter?<|eor|><|sor|>At least one of them<|eor|><|sor|>Or both<|eor|><|eols|><|en... | 25 |
programminghorror | experbia | jbwx3s0 | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>a little annotation
it would be
...
"study": {
"category" : "Computer Science",
"level" : "bachelor"
}
}<|eor|><|sor|>it's not valid json
```
{ // presumed, keys can't exist without an object
"docu... | 25 |
programminghorror | TheCoop1986 | jbx3sm6 | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>Those are the wrong sort of "<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | AlternativeAardvark6 | jbx7lt1 | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>Those are the wrong sort of "<|eor|><|sor|>Like JSON pasted in Word<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | infinity_11 | jbxqxll | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>I don't know what's wrong with the code, but I hate those quotation marks<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | lavahot | jbyckvt | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>Why is it so hard to fix the fucking indentation? It makes me so mad man lol<|eor|><|sor|>If the indentation was correct, they'd have to take the logo out or make the text smaller.<|eor|><|eols|><|endoftext|> | 18 |
programminghorror | securisteve | jbxfn7k | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>Comment: nice<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | entropicdrift | jbykaaa | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>Looks like someone ran XML through a ~~bad~~ professor written XML to JSON converter.<|eor|><|sor|>Is the professor bad or the converter?<|eor|><|sor|>At least one of them<|eor|><|sor|>Or both<|eor|><|sor|>That ... | 14 |
programminghorror | Jjabrahams567 | jbx9uym | <|sols|><|sot|>Taken from slides at uni course<|eot|><|sol|>https://i.redd.it/2x7x3balr9na1.png<|eol|><|sor|>Anakin Skywalker and Hayden Christensen had a child<|eor|><|eols|><|endoftext|> | 11 |
programminghorror | vetruvet | pxx8vx | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|eols|><|endoftext|> | 1,052 |
programminghorror | kingartur3 | heqhjga | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>They even disabled the isNan warning?
Have they tested the condition or it's there just in-case of a cosmic storm?<|eor|><|eols|><|endoftext|> | 260 |
programminghorror | javanperl | hernzdc | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>This is a joke right?<|eor|><|sor|>This is canary code. If they can get this through code review, then they will subtly, over time modify the code to be more complex and obf... | 246 |
programminghorror | mohragk | heqla6k | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>This is a joke right?<|eor|><|eols|><|endoftext|> | 155 |
programminghorror | wildmonkeymind | heqoxjv | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>It's cool, they're using eslint and typescript, so it's probably good to put in the banking software.<|eor|><|eols|><|endoftext|> | 128 |
programminghorror | RFC793 | heqjrwa | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>They even disabled the isNan warning?
Have they tested the condition or it's there just in-case of a cosmic storm?<|eor|><|sor|>Yeah, you know, just silently fail and return... | 114 |
programminghorror | yankjenets | hesabts | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>This is a joke right?<|eor|><|sor|>This is canary code. If they can get this through code review, then they will subtly, over time modify the code to be more complex and obf... | 73 |
programminghorror | Vlyn | hes2455 | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>This is a joke right?<|eor|><|sor|>This is canary code. If they can get this through code review, then they will subtly, over time modify the code to be more complex and obf... | 71 |
programminghorror | vetruvet | heru7ob | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>They even disabled the isNan warning?
Have they tested the condition or it's there just in-case of a cosmic storm?<|eor|><|soopr|>You know, just in case the `|| 0.0` on the ... | 67 |
programminghorror | bluenautilus2 | heqr1lz | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>Disabling the linter really makes this<|eor|><|eols|><|endoftext|> | 52 |
programminghorror | Tasik | her21wf | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>It is obviously meant to convert something like 435664 'cents' to with lets say 3 decimal places to something like 435,67 $
Probably deals with shitty database design.
The ... | 38 |
programminghorror | DarkFlame7 | hes97ok | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>This is a joke right?<|eor|><|sor|>This is canary code. If they can get this through code review, then they will subtly, over time modify the code to be more complex and obf... | 33 |
programminghorror | Jonulfsen | hertbcr | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>It's cool, they're using eslint and typescript, so it's probably good to put in the banking software.<|eor|><|sor|>[deleted]<|eor|><|sor|>I don't get it. I'm not a TS dev, wh... | 30 |
programminghorror | INTO_NIGHT | heqx3iq | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>Paid by the line<|eor|><|eols|><|endoftext|> | 28 |
programminghorror | freak_dessert2 | heqmuiu | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>Now this, this is horror<|eor|><|eols|><|endoftext|> | 25 |
programminghorror | BakuhatsuK | het0h3g | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>I see a lot of people confused, thinking that this function actually does what it says it does. This is the readable version of OP's code:
function convertCentsToDollars... | 23 |
programminghorror | _oSiv | her8m70 | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>It is obviously meant to convert something like 435664 'cents' to with lets say 3 decimal places to something like 435,67 $
Probably deals with shitty database design.
The ... | 21 |
programminghorror | Celdron | hes35e7 | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>It's cool, they're using eslint and typescript, so it's probably good to put in the banking software.<|eor|><|sor|>[deleted]<|eor|><|sor|>I don't get it. I'm not a TS dev, wh... | 20 |
programminghorror | 00PT | heqvaba | <|sols|><|sot|>If only there was some way to know how many cents are in a dollar...<|eot|><|sol|>https://i.redd.it/l6hi1a87jgq71.png<|eol|><|sor|>They even disabled the isNan warning?
Have they tested the condition or it's there just in-case of a cosmic storm?<|eor|><|sor|>I had a problem with NaN equality recently wi... | 18 |
programminghorror | TheKiller36_real | zxgez0 | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|eols|><|endoftext|> | 1,045 |
programminghorror | ZubriQ | j206hb6 | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>true and false: are we a joke to you?<|eor|><|eols|><|endoftext|> | 170 |
programminghorror | PyroCatt | j208rld | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>true and false: are we a joke to you?<|eor|><|sor|>Stop boolean him<|eor|><|eols|><|endoftext|> | 133 |
programminghorror | Darks-Chaos | j20xt8i | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>That looks like c# not java<|eor|><|eols|><|endoftext|> | 78 |
programminghorror | 0xcedbeef | j20809d | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>I think you need to refactor to make it much cleaner:
/// <summary>
/// Selector for True and False
/// </summary>
public enum TrueAndFalse
{
/// <summary>
/// True
/// </s... | 77 |
programminghorror | mrdat | j20dgfz | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>Its good for displaying text to a gui based on the enum<|eor|><|eols|><|endoftext|> | 53 |
programminghorror | theScrapBook | j21t4ab | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>That looks like c# not java<|eor|><|sor|>Yes, that style of XML documentation comments is very C#, not to mention the whole assigning values thing.<|eor|><|eols|><|endoftext|> | 48 |
programminghorror | Probable_Foreigner | j21aab4 | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>true and false: are we a joke to you?<|eor|><|sor|>It's actually recommended to use enums, even for things that only have two states. The reason for this is to avoid confusing function calls, and to add an addition... | 41 |
programminghorror | Needleroozer | j20i6yv | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>true and false: are we a joke to you?<|eor|><|sor|>False? Pffft. Real Programmers use `not(true)`<|eor|><|eols|><|endoftext|> | 31 |
programminghorror | MotoJay | j20evkl | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>Its good for displaying text to a gui based on the enum<|eor|><|sor|>Also good for adding a Maybe once the indecisive users start complaining.<|eor|><|eols|><|endoftext|> | 29 |
programminghorror | sdmfyc | j20gyzs | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>Its good for displaying text to a gui based on the enum<|eor|><|sor|>Yes. Looks like c#. This is common for creating dropdowns in mvc. Since you get the value and the text at the same time.<|eor|><|eols|><|endoftex... | 28 |
programminghorror | PyroCatt | j208us7 | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>I think you need to refactor to make it much cleaner:
/// <summary>
/// Selector for True and False
/// </summary>
public enum TrueAndFalse
{
/// <summary>
/// True
/// </s... | 26 |
programminghorror | HyperactiveWeasel | j20kd8g | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>I think you need to refactor to make it much cleaner:
/// <summary>
/// Selector for True and False
/// </summary>
public enum TrueAndFalse
{
/// <summary>
/// True
/// </s... | 23 |
programminghorror | mikeyjk | j21tk2p | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>true and false: are we a joke to you?<|eor|><|sor|>It's actually recommended to use enums, even for things that only have two states. The reason for this is to avoid confusing function calls, and to add an addition... | 22 |
programminghorror | SowTheSeeds | j20lawb | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>true and false: are we a joke to you?<|eor|><|sor|>False? Pffft. Real Programmers use `not(true)`<|eor|><|sor|>I think we need a Maybe.
When it is neither True nor False, then Maybe.
Not the same thing as NULL, I... | 19 |
programminghorror | MinusPi1 | j208ocp | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>I think you need to refactor to make it much cleaner:
/// <summary>
/// Selector for True and False
/// </summary>
public enum TrueAndFalse
{
/// <summary>
/// True
/// </s... | 18 |
programminghorror | irobot335 | j228gge | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>That looks like c# not java<|eor|><|sor|>Yes, that style of XML documentation comments is very C#, not to mention the whole assigning values thing.<|eor|><|sor|>Plus from the colour scheme, and the references, chan... | 16 |
programminghorror | Trig90 | j20wq4f | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>Why is this flaired as java when it's clearly not?
>!it's a little more verbose in java!<<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | zigs | j20ep9y | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>Its good for displaying text to a gui based on the enum<|eor|><|sor|>Similarily, interacting with APIs that demand "Yes" and "No".<|eor|><|eols|><|endoftext|> | 12 |
programminghorror | napfton | j20ipk2 | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>At least he documented it as required by the coding guidelines.
/s<|eor|><|eols|><|endoftext|> | 11 |
programminghorror | Riifc | j2139on | <|sols|><|sot|>Enterprise code or something<|eot|><|sol|>https://i.redd.it/odzvd2ypwo8a1.jpg<|eol|><|sor|>true and false: are we a joke to you?<|eor|><|sor|>False? Pffft. Real Programmers use `not(true)`<|eor|><|sor|>!(YesOrNo.Yes)<|eor|><|eols|><|endoftext|> | 11 |
programminghorror | RubyBoyYT | psi1m8 | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|eols|><|endoftext|> | 1,043 |
programminghorror | TheSirGrailluet | hdpvvfl | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|> // setup
const System = {
out: {
println: console.log
}
}
const $filename = "idk";
// actual code
let ldap = "(... | 304 |
programminghorror | khedoros | hdqkpa8 | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Clearly C++, with a little missing boilerplate ;-)
#include<string>
#include<iostream>
using namespace std;
class Wrapper1 {
class Wrappe... | 144 |
programminghorror | Qdoit12Super | hdqkvvm | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>PHP + Java, labeled as JavaScript, welcome to your nightmares<|eor|><|eols|><|endoftext|> | 98 |
programminghorror | mr_hard_name | hdpxrle | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Im not a Java expert but I think this isnt that bad. I think in Java you cant use string, it must be String instead. Also, the $ sign before a potential variable (... | 63 |
programminghorror | hammer-jon | hdpu2oq | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Im not a Java expert but I think this isnt that bad. I think in Java you cant use string, it must be String instead. Also, the $ sign before a potential variable (... | 53 |
programminghorror | curiousguy_08 | hdpp2yo | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Im not a Java expert but I think this isnt that bad. I think in Java you cant use string, it must be String instead. Also, the $ sign before a potential variable (... | 44 |
programminghorror | khedoros | hdrcezu | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Clearly C++, with a little missing boilerplate ;-)
#include<string>
#include<iostream>
using namespace std;
class Wrapper1 {
class Wrappe... | 43 |
programminghorror | fakehalo | hdrba9i | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Clearly C++, with a little missing boilerplate ;-)
#include<string>
#include<iostream>
using namespace std;
class Wrapper1 {
class Wrappe... | 39 |
programminghorror | backtickbot | hdpvwj6 | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|> // setup
const System = {
out: {
println: console.log
}
}
const $filename = "idk";
// actual code
let ldap = "(... | 38 |
programminghorror | addywoot | hdrnnak | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>This is a karma farming bot. We have banned them from our subreddit for stealing a very popular post and re-posting it as their own.
The bot is also going insa... | 32 |
programminghorror | --var | hdsbcb4 | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|> // setup
const System = {
out: {
println: console.log
}
}
const $filename = "idk";
// actual code
let ldap = "(... | 27 |
programminghorror | Kengaro | hdrdgvs | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Clearly C++, with a little missing boilerplate ;-)
#include<string>
#include<iostream>
using namespace std;
class Wrapper1 {
class Wrappe... | 21 |
programminghorror | TASagent | hdq0ltb | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Im not a Java expert but I think this isnt that bad. I think in Java you cant use string, it must be String instead. Also, the $ sign before a potential variable (... | 19 |
programminghorror | apokalipscke | hdqtrsd | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Who on earth or the known universe will know what valid JavaScript will look like?<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | Qdoit12Super | hdru481 | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>PHP + Java, labeled as JavaScript, welcome to your nightmares<|eor|><|sor|>But php is a loose typed language right? So the 'string' part is wrong as in Java it wou... | 16 |
programminghorror | khedoros | hdsgcl4 | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Clearly C++, with a little missing boilerplate ;-)
#include<string>
#include<iostream>
using namespace std;
class Wrapper1 {
class Wrappe... | 11 |
programminghorror | Thenderick | hdrtk09 | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>PHP + Java, labeled as JavaScript, welcome to your nightmares<|eor|><|sor|>But php is a loose typed language right? So the 'string' part is wrong as in Java it wou... | 10 |
programminghorror | genesiscz | hds5vgz | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|> // setup
const System = {
out: {
println: console.log
}
}
const $filename = "idk";
// actual code
let ldap = "(... | 10 |
programminghorror | RepostSleuthBot | hdszt3y | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>This is a karma farming bot. We have banned them from our subreddit for stealing a very popular post and re-posting it as their own.
The bot is also going insa... | 9 |
programminghorror | AlphaOmega5732 | hdq0fp5 | <|sols|><|sot|>Found in my college textbook. This is neither valid JavaScript nor valid Java !<|eot|><|sol|>https://i.redd.it/s2d5kfk2vjo51.png<|eol|><|sor|>Im not a Java expert but I think this isnt that bad. I think in Java you cant use string, it must be String instead. Also, the $ sign before a potential variable (... | 9 |
programminghorror | UsernameSixtyNine2 | ibify3 | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|eols|><|endoftext|> | 1,044 |
programminghorror | aduckandanaxe | g1wlxdt | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>Yo what the actual fuck?<|eor|><|eols|><|endoftext|> | 114 |
programminghorror | vrykoul | g1wpnsv | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>That looks like it was once a horrible spreadsheet that someone converted to SQL. The comments (AX, AY, AZ, ...) look like column labels.<|eor|>... | 56 |
programminghorror | UsernameSixtyNine2 | g1wnfgn | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>Yo what the actual fuck?<|eor|><|soopr|>What bit<|eoopr|><|eols|><|endoftext|> | 37 |
programminghorror | UsernameSixtyNine2 | g1wv6hw | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>That looks like it was once a horrible spreadsheet that someone converted to SQL. The comments (AX, AY, AZ, ...) look like column labels.<|eor|>... | 37 |
programminghorror | netinept | g1wr3uj | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>Yo what the actual fuck?<|eor|><|soopr|>What bit<|eoopr|><|sor|>yes.<|eor|><|eols|><|endoftext|> | 33 |
programminghorror | UsernameSixtyNine2 | g1wusac | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>Assuming he's not a native speaker?<|eor|><|soopr|>I believe he is, on other parts of the code he does use mon, tue, wed etc. That's the real ho... | 25 |
programminghorror | pcopley | g1x654t | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>That looks like it was once a horrible spreadsheet that someone converted to SQL. The comments (AX, AY, AZ, ...) look like column labels.<|eor|>... | 17 |
programminghorror | Bishops_Guest | g1x1fd1 | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>That looks like it was once a horrible spreadsheet that someone converted to SQL. The comments (AX, AY, AZ, ...) look like column labels.<|eor|>... | 14 |
programminghorror | AttackOfTheThumbs | g1wtsv2 | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>Assuming he's not a native speaker?<|eor|><|eols|><|endoftext|> | 8 |
programminghorror | ncsupheo | g1x901a | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>Almost downvoted as too awful to be humourous<|eor|><|eols|><|endoftext|> | 7 |
programminghorror | JoCoMoBo | g1ykanq | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>Yo what the actual fuck?<|eor|><|sor|>That's how you get to STDY.<|eor|><|eols|><|endoftext|> | 5 |
programminghorror | UsernameSixtyNine2 | g1ypmwi | <|sols|><|sot|>A colleague sent me a sql statement with some interesting day abbreviations. SUDY is my favourite.<|eot|><|sol|>https://i.redd.it/u3af5s4jqjh51.png<|eol|><|sor|>Assuming he's not a native speaker?<|eor|><|soopr|>I believe he is, on other parts of the code he does use mon, tue, wed etc. That's the real ho... | 5 |
programminghorror | No-Advantage-6835 | vfwyq2 | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|eols|><|endoftext|> | 1,041 |
programminghorror | FoxInATrenchcoat | icy97j5 | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|>*Space Core has entered the chat*<|eor|><|eols|><|endoftext|> | 115 |
programminghorror | Mioleris | icyher3 | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|>When the backend guy implements frontend... :D<|eor|><|eols|><|endoftext|> | 84 |
programminghorror | glorious_reptile | icyifdj | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|><br/> for React developers<|eor|><|eols|><|endoftext|> | 72 |
programminghorror | sntccc | icyh1tr | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|>*Space Core has entered the chat*<|eor|><|sor|>Is that React? Looks like someone forgot how to CSS<|eor|><|eols|><|endoftext|> | 61 |
programminghorror | arjunindia | icz2bcd | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|><br/> for React developers<|eor|><|sor|><Br {uh} /><|eor|><|eols|><|endoftext|> | 49 |
programminghorror | interruptin_cat | icymrdo | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|>Seems like he wanted a really tall margin but one "xl" from his css framework wasn't cutting it.
Also for some reason he didn't want to write any custom css<|eor|><|eols|><|endoftext|> | 41 |
programminghorror | MotoJay | icz5f76 | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|>When the backend guy implements frontend... :D<|eor|><|sor|>He would use a loop<|eor|><|sor|>They did, a shell script with a loop generating this JSX.<|eor|><|eols|><|endoftext|> | 36 |
programminghorror | not_some_username | icz3kzf | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|>When the backend guy implements frontend... :D<|eor|><|sor|>He would use a loop<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | FoxInATrenchcoat | icyk3yx | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|>*Space Core has entered the chat*<|eor|><|sor|>Is that React? Looks like someone forgot how to CSS<|eor|><|sor|>I think so. Vue.js (in my experience) usually doesn't return markup/JSX like this...unl... | 27 |
programminghorror | No-Advantage-6835 | icypgf3 | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|>Seems like he wanted a really tall margin but one "xl" from his css framework wasn't cutting it.
Also for some reason he didn't want to write any custom css<|eor|><|soopr|>He actually didnt know how ... | 24 |
programminghorror | Ferociousfeind | id05ckl | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|><br/> for React developers<|eor|><|sor|>React goes </br>rrrr<|eor|><|eols|><|endoftext|> | 13 |
programminghorror | thePaganProgrammer | icyo8c6 | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|sor|>*Space Core has entered the chat*<|eor|><|sor|>Is that React? Looks like someone forgot how to CSS<|eor|><|sor|>I think so. Vue.js (in my experience) usually doesn't return markup/JSX like this...unl... | 13 |
programminghorror | No-Advantage-6835 | icz2kf1 | <|sols|><|sot|>Found this masterpiece in my discord server<|eot|><|sol|>https://i.redd.it/kxxzy88jdl691.png<|eol|><|soopr|>The author u/vMohammad_ actually wants credit for his great work.... lol?<|eoopr|><|eols|><|endoftext|> | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.