subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
rangeDSP
eqaf0nq
<|sols|><|sot|>How the fuck does my boss ALWAYS come up with shit like these? (There aren't even as many div open above in the same file)<|eot|><|sol|>https://i.redd.it/9e6l8e4xjw231.png<|eol|><|sor|>divdivdivdivdivdiv form divdivdivdivdivdivdivdivdivdivdiv<|eor|><|sor|>"What's New Pussycat" "What's New Pussycat" "...
23
programminghorror
BLOZ_UP
eq9md0u
<|sols|><|sot|>How the fuck does my boss ALWAYS come up with shit like these? (There aren't even as many div open above in the same file)<|eot|><|sol|>https://i.redd.it/9e6l8e4xjw231.png<|eol|><|sor|>Colleague does this. Wraps everything with a div "just in case". Also restarts webpack hot-reloading "just in case"*. Lo...
14
programminghorror
JohnEffingZoidberg
eqa61xe
<|sols|><|sot|>How the fuck does my boss ALWAYS come up with shit like these? (There aren't even as many div open above in the same file)<|eot|><|sol|>https://i.redd.it/9e6l8e4xjw231.png<|eol|><|sor|>"Yeah, I used to be a programmer too before I moved into management. So I know what counts as good code."<|eor|><|sor|>"...
14
programminghorror
yhu420
eq9iiqs
<|sols|><|sot|>How the fuck does my boss ALWAYS come up with shit like these? (There aren't even as many div open above in the same file)<|eot|><|sol|>https://i.redd.it/9e6l8e4xjw231.png<|eol|><|sor|>My boss did this too. For him time = money so he just spits as much code as he could and if it looked good enough, it's ...
10
programminghorror
michaelboobley
eq9j498
<|sols|><|sot|>How the fuck does my boss ALWAYS come up with shit like these? (There aren't even as many div open above in the same file)<|eot|><|sol|>https://i.redd.it/9e6l8e4xjw231.png<|eol|><|sor|>Does he not use and IDE? Maybe they're just raw dogging up markup in some janky text editor?<|eor|><|eols|><|endoftext|>
10
programminghorror
ZioCain
eq9p3cj
<|sols|><|sot|>How the fuck does my boss ALWAYS come up with shit like these? (There aren't even as many div open above in the same file)<|eot|><|sol|>https://i.redd.it/9e6l8e4xjw231.png<|eol|><|sor|>IMO you can get as much trouble with HTML/CSS as anything else.<|eor|><|soopr|>Totally agree<|eoopr|><|eols|><|endoftext...
10
programminghorror
zerik100
vz23l1
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|eols|><|endoftext|>
870
programminghorror
zerik100
ig5ol0l
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|soopr|>don't worry I'm not sharing private enterprise code, this snippet comes from a crazy bad open source library we have to use in our project. they have the most useless and incomplete docu...
270
programminghorror
slugonamission
ig5s489
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Isn't that just a minified version of https://stackoverflow.com/a/22023833/235700?<|eor|><|eols|><|endoftext|>
137
programminghorror
zerik100
ig5u9d0
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Isn't that just a minified version of https://stackoverflow.com/a/22023833/235700?<|eor|><|soopr|>possible, but then they copy pasted that, minified it and put it up for use in their libra...
104
programminghorror
lucferon
ig5pnw2
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Why would anyone need comments or documentation for this obvious and clear code /s Seriously wtf<|eor|><|eols|><|endoftext|>
91
programminghorror
officiallyaninja
ig6q8ko
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|soopr|>don't worry I'm not sharing private enterprise code, this snippet comes from a crazy bad open source library we have to use in our project. they have the most useless and incomplete docu...
75
programminghorror
break_card
ig6fius
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Great example of why less lines does not necessarily mean better code.<|eor|><|eols|><|endoftext|>
46
programminghorror
flooronthefour
ig7q0fh
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|soopr|>don't worry I'm not sharing private enterprise code, this snippet comes from a crazy bad open source library we have to use in our project. they have the most useless and incomplete docu...
45
programminghorror
zerik100
ig5rvvm
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Why would anyone need comments or documentation for this obvious and clear code /s Seriously wtf<|eor|><|soopr|>the alphabet parameters crack me up the most<|eoopr|><|eols|><|endoftext|>
40
programminghorror
Knaapje
ig6myqe
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>On the bright side, you have `eslint-disable` neatly pointing out all the code smells.<|eor|><|eols|><|endoftext|>
35
programminghorror
slugonamission
ig6477y
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Isn't that just a minified version of https://stackoverflow.com/a/22023833/235700?<|eor|><|sor|>How the hell did you find that?<|eor|><|sor|>Just searched for the string with the SI suffix...
31
programminghorror
lucferon
ig5s1oy
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Why would anyone need comments or documentation for this obvious and clear code /s Seriously wtf<|eor|><|soopr|>the alphabet parameters crack me up the most<|eoopr|><|sor|>Well at least th...
28
programminghorror
mikeputerbaugh
ig7bwpu
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Why would anyone need comments or documentation for this obvious and clear code /s Seriously wtf<|eor|><|soopr|>the alphabet parameters crack me up the most<|eoopr|><|sor|>Bro, do you even...
23
programminghorror
Charleston2Seattle
ig7ezqo
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Great example of why less lines does not necessarily mean better code.<|eor|><|sor|>Rule of thumb, if I remember it correctly, is that every line of code will be written once and read thre...
22
programminghorror
CuriousFunnyDog
ig6ii2x
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>"Clever code" by "clever person". Just because you can does not mean you should. Maintainability was not in their requirements!<|eor|><|eols|><|endoftext|>
21
programminghorror
lucferon
ig5va4q
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Isn't that just a minified version of https://stackoverflow.com/a/22023833/235700?<|eor|><|sor|>How the hell did you find that?<|eor|><|eols|><|endoftext|>
20
programminghorror
voidxy
ig6wr80
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>For one-off code in a stable, tested open source library, this is fine imo.<|eor|><|sor|>I feel the same, it's a simple well known and working function, and it's still readable if you take...
20
programminghorror
ProperProgramming
ig8qr02
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|soopr|>don't worry I'm not sharing private enterprise code, this snippet comes from a crazy bad open source library we have to use in our project. they have the most useless and incomplete docu...
17
programminghorror
BenIsProbablyAngry
ig91mo9
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|soopr|>don't worry I'm not sharing private enterprise code, this snippet comes from a crazy bad open source library we have to use in our project. they have the most useless and incomplete docu...
17
programminghorror
zerik100
ig60j2s
<|sols|><|sot|>The shit I have to put up with in our codebase at work<|eot|><|sol|>https://i.redd.it/pvflg32zokb91.png<|eol|><|sor|>Isn't that just a minified version of https://stackoverflow.com/a/22023833/235700?<|eor|><|soopr|>possible, but then they copy pasted that, minified it and put it up for use in their libra...
17
programminghorror
PacificShoreGuy
uqf25b
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
866
programminghorror
newuser5432
i8qqpgg
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
411
programminghorror
666y4nn1ck
i8qsyfr
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
306
programminghorror
PacificShoreGuy
i8qp2m6
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
220
programminghorror
PacificShoreGuy
i8r4ak8
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
100
programminghorror
Elegant-Vanilla2261
i8qlr23
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
96
programminghorror
Naeio_Galaxy
i8shhmn
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
74
programminghorror
PacificShoreGuy
i8s24nz
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
48
programminghorror
fiskfisk
i8sfvdm
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
39
programminghorror
HobblingCobbler
i8r9kfr
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
38
programminghorror
Axillent
i8ss7tu
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
38
programminghorror
Meylangey
i8t01yb
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
35
programminghorror
Axillent
i8ssow1
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
31
programminghorror
atthereallicebear
i8rriei
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
28
programminghorror
PacificShoreGuy
i8s9vx8
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
27
programminghorror
frederikja
i8sgimz
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
23
programminghorror
RomMTY
i8sbsgb
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
22
programminghorror
K1ngjulien_
i8t2cm3
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
21
programminghorror
666y4nn1ck
i8sse80
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
16
programminghorror
Lucanos
i8tp2ht
<|sols|><|sot|>Someone lost all their data for their Discord bot and asked for my help. They showed me the tutorial they followed. Sure enough, I go to the *popular* tutorial and see raw SQL text inserts and this in the comments. Implemented my own version and dropped a table through message content to verify.<|eot|><|...
9
programminghorror
SyntaxError11
burb8u
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|eols|><|endoftext|>
863
programminghorror
kauefr
epgg6uh
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>Sometimes I'll start a query, and I don't even know where it's going. I just hope I find it along the way. Like an improv query. An improvery.<|e...
393
programminghorror
ranman96734
epgdd54
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>His thesis?! For what? Preschool diploma?<|eor|><|eols|><|endoftext|>
112
programminghorror
iceixia
epgc2ir
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>>sibling2firstname &#x200B; oh dear<|eor|><|eols|><|endoftext|>
93
programminghorror
Urtehnoes
eph2s1y
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>Sometimes I'll start a query, and I don't even know where it's going. I just hope I find it along the way. Like an improv query. An improvery.<|e...
73
programminghorror
varesa
epgfxxv
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>They just need to supply a GET parameter `id` with value `'; DROP TABLE archives;`<|eor|><|eols|><|endoftext|>
70
programminghorror
Urtehnoes
eph2khb
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>Imagine how long that took for him to type<|eor|><|sor|>Any DB 'IDE' that doesn't highlight asterisks and offer to expand them into the column na...
69
programminghorror
jjbugman2468
epgb6bm
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>I'd nope out of there in an instant<|eor|><|eols|><|endoftext|>
59
programminghorror
UnstoppableCompote
epgi5fy
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>His thesis?! For what? Preschool diploma?<|eor|><|sor|>What kind of shit college would even allow this gut to reach his thesis?!<|eor|><|eols|><|...
52
programminghorror
Jonno_FTW
epghel9
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>It remains flexible so you can run arbitrary queries via $_GET if you need to.<|eor|><|eols|><|endoftext|>
50
programminghorror
hex1848
epgri3d
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>They just need to supply a GET parameter `id` with value `'; DROP TABLE archives;`<|eor|><|sor|>Little Bobby Tables!<|eor|><|eols|><|endoftext|>
40
programminghorror
ithika
epgiosu
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>Everyone in here acting like every single degree comes with a DB design and systems programming course for free.<|eor|><|eols|><|endoftext|>
39
programminghorror
asplodzor
epgd7op
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>>sibling2firstname &#x200B; oh dear<|eor|><|sor|>Better than sibling21name ... i guess.<|eor|><|eols|><|endoftext|>
38
programminghorror
2bdb2
epheqec
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>His thesis?! For what? Preschool diploma?<|eor|><|sor|>What kind of shit college would even allow this gut to reach his thesis?!<|eor|><|sor|>You...
37
programminghorror
rocklou
epgefmd
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>What horror is this? child6birthdate, tertiaryyeargraduatedfrom...<|eor|><|eols|><|endoftext|>
32
programminghorror
no_ragrats
eph1g7i
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>>sibling2firstname &#x200B; oh dear<|eor|><|sor|>Better than sibling21name ... i guess.<|eor|><|sor|>My 21st sibling would have a word with y...
30
programminghorror
Swedenstyle34
epis8b2
<|sols|><|sot|>This guy posted his thesis code and asking the members what's wrong, why is his query not working<|eot|><|sol|>https://i.redd.it/02itiy9inb131.jpg<|eol|><|sor|>Sometimes I'll start a query, and I don't even know where it's going. I just hope I find it along the way. Like an improv query. An improvery.<|e...
25
programminghorror
TurboToeter
quqo2p
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|eols|><|endoftext|>
864
programminghorror
HTTP_404_NotFound
hks04f6
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>WELL...... Its not wrong.<|eor|><|eols|><|endoftext|>
240
programminghorror
bluewaffleisnice
hksjh4f
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>If it works it works. Commit<|eor|><|eols|><|endoftext|>
123
programminghorror
spacezombiejesus
hksbj7x
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>The only thing terminator gonna terminate is this code<|eor|><|eols|><|endoftext|>
64
programminghorror
marinuso
hks3wd2
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
60
programminghorror
realnzall
hks0025
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|eols|><|endoftext|>
51
programminghorror
sternold
hks1nnd
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
44
programminghorror
YM_Industries
hks8i9r
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
43
programminghorror
marinuso
hksawn6
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
37
programminghorror
marinuso
hks93q3
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
32
programminghorror
YM_Industries
hksab0u
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
29
programminghorror
bluewaffleisnice
hkvlq3m
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>If it works it works. Commit<|eor|><|sor|>[deleted]<|eor|><|sor|>Joke: here <-------------- Your head: here <---------------<|eor|><|eols|><...
23
programminghorror
TheNorthComesWithMe
hks8a14
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
23
programminghorror
HecknChonker
hksctas
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
22
programminghorror
Horny20yrold
hksab9y
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
16
programminghorror
serg06
hkti1oc
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|> Array(10).fill(items).flat()<|eor|><|eols|><|endoftext|>
11
programminghorror
edgymemesalt
hkt7cya
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not experienced with Typescript. What would be the proper way to do this?<|eor|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => ...
10
programminghorror
marinuso
hkseup1
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>> `items.map(item => item)` lol I think it's to make a copy of the array? I forget how javascript handles references.<|eor|><|sor|>No, that's not necess...
8
programminghorror
Hopefully_moreUnique
hksctdf
<|sols|><|sot|>Asked Github Copilot to duplicate all items in an array ten times. Result was interesting<|eot|><|sol|>https://i.redd.it/cdgmd61pstz71.png<|eol|><|sor|>I'm not sure, but I know it's not *this*. `items.map(item => item)` lol And they say AI's gonna take over the world<|eor|><|sor|>> `items.map(item => i...
7
programminghorror
qodzer0
muima9
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|eols|><|endoftext|>
862
programminghorror
QuinteOne
gv6cwue
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>That comment of him... wow<|eor|><|eols|><|endoftext|>
122
programminghorror
bleuthoot
gv6gp1e
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>The original question on StackOverflow, took me some time to find it: https://stackoverflow.com/questions/3931529/is-not-a-function-jquery-error<|eor|><|eols|><|endoftext|>
116
programminghorror
danishbac0n
gv6qu4r
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>The real question is, if he's successfully targeting these elements by the nth-child in the first place, why does he need to add those classes?<|eor|><|eols|><|endoftext|>
58
programminghorror
ppsp
gv7a54x
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>Ahahahahahhaha that's me! I just left a comment on the stackoverflow post so you can know I'm not lying. I'm laughing so fucking hard right now.<|eor|><|eols|><|endoftext|>
57
programminghorror
szescio
gv6ybrr
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>The real question is, if he's successfully targeting these elements by the nth-child in the first place, why does he need to add those classes?<|eor|><|sor|>...why bother learning html and css, when...
57
programminghorror
HotRodLincoln
gv7i4gi
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>The original question on StackOverflow, took me some time to find it: https://stackoverflow.com/questions/3931529/is-not-a-function-jquery-error<|eor|><|sor|>I love how they eventually figured out t...
41
programminghorror
Javascript_above_all
gv6i0pr
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>jQuery ewww<|eor|><|sor|>back in 2010 jQuery wasn't considered "ewww" yet. JSX tho, ewww.<|eor|><|sor|>Imagine living in 2021 and not liking JSX. But more seriously, what's the problem with it? The...
37
programminghorror
Javascript_above_all
gv6aud4
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>jQuery ewww<|eor|><|eols|><|endoftext|>
28
programminghorror
ppsp
gv7ip7p
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>The original question on StackOverflow, took me some time to find it: https://stackoverflow.com/questions/3931529/is-not-a-function-jquery-error<|eor|><|sor|>I love how they eventually figured out t...
24
programminghorror
ppsp
gv7l90z
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>Ahahahahahhaha that's me! I just left a comment on the stackoverflow post so you can know I'm not lying. I'm laughing so fucking hard right now.<|eor|><|sor|>Lol you're Alex? I noticed the comment:...
24
programminghorror
jasekiw
gv7bbh4
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>Ahahahahahhaha that's me! I just left a comment on the stackoverflow post so you can know I'm not lying. I'm laughing so fucking hard right now.<|eor|><|sor|>Lol you're Alex? I noticed the comment:...
19
programminghorror
ppsp
gv7absx
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>That comment of him... wow<|eor|><|sor|>I wasn't the brightest back then, not that I am now even.<|eor|><|eols|><|endoftext|>
18
programminghorror
The-Daleks
gv6xnb0
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>Finally! A phone screenshot that isn't at 2%!<|eor|><|eols|><|endoftext|>
17
programminghorror
ppsp
gv7agzm
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>The original question on StackOverflow, took me some time to find it: https://stackoverflow.com/questions/3931529/is-not-a-function-jquery-error<|eor|><|sor|>I love how they eventually figured out t...
16
programminghorror
NUTTA_BUSTAH
gv6jmlr
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>jQuery ewww<|eor|><|sor|>back in 2010 jQuery wasn't considered "ewww" yet. JSX tho, ewww.<|eor|><|sor|>Imagine living in 2021 and not liking JSX. But more seriously, what's the problem with it? The...
13
programminghorror
qodzer0
gv6rokj
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>The real question is, if he's successfully targeting these elements by the nth-child in the first place, why does he need to add those classes?<|eor|><|soopr|>Hmmm<|eoopr|><|eols|><|endoftext|>
12
programminghorror
jasekiw
gv7lqe6
<|sols|><|sot|>I'll leave this here, credits: stackoverflow<|eot|><|sol|>https://i.redd.it/eji3zoqca9u61.jpg<|eol|><|sor|>Ahahahahahhaha that's me! I just left a comment on the stackoverflow post so you can know I'm not lying. I'm laughing so fucking hard right now.<|eor|><|sor|>Lol you're Alex? I noticed the comment:...
12