subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
UnkleRinkus
go0tagx
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>"Worksmate"?<|eor|><|sor|>OP is probably german, looks like SAP's ABAP language. Poor bastard.<|eor|><|eols|><|endoftext|>
98
programminghorror
ZylonBane
go0smai
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>"Worksmate"?<|eor|><|eols|><|endoftext|>
87
programminghorror
RicardoPro
go10vsx
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Is this kind of coding acceptable in the workplace? Would you be fired for something like this?<|eor|><|eols|><|endoftext|>
74
programminghorror
rubertsmann
go11d6n
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>"Worksmate"?<|eor|><|sor|>OP is probably german, looks like SAP's ABAP language. Poor bastard.<|eor|><|sor|>The variable platz_aktiv is German<|eor|><|eols|><|endoftext|>
62
programminghorror
NatoBoram
go1l4u8
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Is this kind of coding acceptable in the workplace? Would you be fired for something like this?<|eor|><|sor|>You might get a few words of choice during code review and your work won't get merged so you have to start ov...
56
programminghorror
chaz6
go0ic5c
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Oh god ABAP no!<|eor|><|eols|><|endoftext|>
53
programminghorror
JaZoray
go1jh6z
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Oh god ABAP no!<|eor|><|sor|>Is that like a proprietary take on COBOL?<|eor|><|sor|>ABAP is what the devil created after God told him that man's faith is strong enough to overcome Dynamics NAV.<|eor|><|eols|><|endoftex...
53
programminghorror
rubzy0422
go05xcn
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>I don't think even a untrained coding AI would give this code haha<|eor|><|eols|><|endoftext|>
37
programminghorror
Caedendi
go2hxh2
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Is this kind of coding acceptable in the workplace? Would you be fired for something like this?<|eor|><|sor|>You might get a few words of choice during code review and your work won't get merged so you have to start ov...
29
programminghorror
road_laya
go1gq5r
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Oh god ABAP no!<|eor|><|sor|>Is that like a proprietary take on COBOL?<|eor|><|eols|><|endoftext|>
22
programminghorror
Probetag
gnzshk8
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Maps/dictionaries? What are that?<|eor|><|soopr|>Structures, its the programming language ABAP<|eoopr|><|eols|><|endoftext|>
20
programminghorror
Caedendi
go2op3l
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Is this kind of coding acceptable in the workplace? Would you be fired for something like this?<|eor|><|sor|>You might get a few words of choice during code review and your work won't get merged so you have to start ov...
18
programminghorror
chunes
go1q6zt
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Is this kind of coding acceptable in the workplace? Would you be fired for something like this?<|eor|><|sor|>Fired on the spot no questions asked<|eor|><|sor|>Good luck with that in Germany.<|eor|><|eols|><|endoftext|>
16
programminghorror
Probetag
go261nt
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>"Worksmate"?<|eor|><|soopr|>Omg a typo xd<|eoopr|><|eols|><|endoftext|>
15
programminghorror
krisnarocks
go22j4i
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Oh god ABAP no!<|eor|><|sor|>Was gonna ask what janky-ass language is this. Who the f designs a language and think it's fine to use caps for the keywords and use ``<>`` for a string Edit: wait, no, those ``<>`` isn't ...
14
programminghorror
skhoyre
go1ybq5
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Is this kind of coding acceptable in the workplace? Would you be fired for something like this?<|eor|><|sor|>You might get a few words of choice during code review and your work won't get merged so you have to start ov...
14
programminghorror
Tobyvw
gnzs64v
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Maps/dictionaries? What are that?<|eor|><|eols|><|endoftext|>
13
programminghorror
Ranchonyx
go1ka5h
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Oh God, EINDEUTSCHUNG!<|eor|><|eols|><|endoftext|>
13
programminghorror
mcknife96
go2nygx
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Is this kind of coding acceptable in the workplace? Would you be fired for something like this?<|eor|><|sor|>You might get a few words of choice during code review and your work won't get merged so you have to start ov...
13
programminghorror
--ShieldMaiden--
go2anhf
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|sor|>Is this kind of coding acceptable in the workplace? Would you be fired for something like this?<|eor|><|sor|>You might get a few words of choice during code review and your work won't get merged so you have to start ov...
12
programminghorror
Aciliveth
j3bu7c
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|eols|><|endoftext|>
746
programminghorror
Robyt3
g7b8i95
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
203
programminghorror
HyperactiveWeasel
g7axok1
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|eols|><|endoftext|>
125
programminghorror
YmFzZTY0dXNlcm5hbWU_
g7bjj75
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>That regex is just fucking offensive.<|eor|><|eols|><|endoftext|>
88
programminghorror
HyperactiveWeasel
g7b9wg3
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
83
programminghorror
Robyt3
g7ba2v0
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
59
programminghorror
Jezoreczek
g7byv0q
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
58
programminghorror
veryusedrname
g7b5g5x
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>That regex made my cry blood (disclaimer: I'm friend with regex)<|eor|><|eols|><|endoftext|>
47
programminghorror
IIDaFuQII
g7bwbze
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
41
programminghorror
divideddarko1
g7c3csz
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
31
programminghorror
TranscendentalToast
g7b85zi
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>So this filter matches paths with length N?<|eor|><|eols|><|endoftext|>
30
programminghorror
daru567
g7c226v
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
26
programminghorror
LMskouta
g7d6lzr
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>That regex is just fucking offensive.<|eor|><|sor|>14+ years programming and Ive yet to see one that is not offensive. They just mean looking man<|eor|><|eols|><|endoftext|...
21
programminghorror
YM_Industries
g7c5kal
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>The only sane reason for this is if `bulder` only accepts regular expressions and they're only looking for N-length paths.<|eor|><|sor|>Even then it's not sane. `^.{37}$` d...
14
programminghorror
kallefrommalle
g7bh4ps
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>What's the addon/setting which shows the parameter names? And will it work on stupid constructors taking 17 arguments?<|eor|><|eols|><|endoftext|>
13
programminghorror
disappointer
g7c0mlw
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>As the old Jamie Zawinski quote goes: >Some people, when confronted with a problem, think, "I know, I'll use regular expressions."Now they have two problems.<|eor|><|eols|...
12
programminghorror
mustang__1
g7d3yth
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
12
programminghorror
pooerh
g7byu6s
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>What's the addon/setting which shows the parameter names? And will it work on stupid constructors taking 17 arguments?<|eor|><|sor|>Visual Studio 2019 [does it by default](...
10
programminghorror
alekthefirst
g7dsz4y
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
10
programminghorror
serg06
g7cfd6y
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>How does that even work? Does it actually work? Why does it work?<|eor|><|sor|>The pattern matches anything with exactly the length 37, as there a 37 dots and \^ and $ deno...
9
programminghorror
das_Keks
g7bdvr9
<|sols|><|sot|>Came across this masterpiece, I can't even state how disappointed I am<|eot|><|sol|>https://i.redd.it/ukqe7l2yeiq51.jpg<|eol|><|sor|>So this filter matches paths with length N?<|eor|><|sor|>Exactly.<|eor|><|eols|><|endoftext|>
7
programminghorror
colipro
iei2uz
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
747
programminghorror
gonzofish
g2h4u26
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
104
programminghorror
SteroidSandwich
g2gvzfu
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
92
programminghorror
code_hates_me
g2gwumm
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
70
programminghorror
AttackOfTheThumbs
g2hfwir
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
58
programminghorror
LucienZerger
g2gpx2o
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
48
programminghorror
Shizounu
g2gxzi7
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
48
programminghorror
Astrokiwi
g2h787u
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
37
programminghorror
JoeyJuke
g2i71r7
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
24
programminghorror
TheN473
g2hir2x
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
21
programminghorror
TheN473
g2hj5y0
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
20
programminghorror
colipro
g2h9qoj
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
19
programminghorror
adrael-i
g2h7ml5
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
17
programminghorror
guitarist_on_reddit
g2i3s2f
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
17
programminghorror
Buddy-Matt
g2hpmxc
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
15
programminghorror
toastedstapler
g2hn5ng
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
13
programminghorror
Typesalot
g2h8mkt
<|soss|><|sot|>The horror of my first programs from when I was 13.<|eot|><|sost|>When I was 13, in 2008 I started "programming" in visual basic, without knowing any fundamental programming concepts or even English... Since I had no idea that there was such a thing as a **Loop**, I would always just write recursive fun...
13
programminghorror
Vigilantrac
yd0v0n
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|eols|><|endoftext|>
744
programminghorror
doterobcn
itpj0r2
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>For lasagna code to exist, spaghetti code had to exist in the first place, and this is it.<|eor|><|eols|><|endoftext|>
342
programminghorror
cob59
itpouik
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>Source is a 2004 engine and variadic templates weren't supported before C++11... So unfortunately that's the best they could do \\\_()_/<|eor|><|eols|><|endoftext|>
332
programminghorror
CandidPiglet9061
itpze8s
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>I've seen similar system used when you need to perform code generation. For example, Scala used to have a limit of maximum 22 arguments per function, because the compiler only implemented code generation for ...
112
programminghorror
random_lonewolf
itpl7u3
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>I've seen similar system used when you need to perform code generation. For example, Scala used to have a limit of maximum 22 arguments per function, because the compiler only implemented code generation for ...
104
programminghorror
veritron
itqf0s0
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>Source is a 2004 engine and variadic templates weren't supported before C++11... So unfortunately that's the best they could do \\\_()_/<|eor|><|sor|>Source engine used ms visual c++, and in ms visual c++ th...
97
programminghorror
random_lonewolf
itq6l15
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>I've seen similar system used when you need to perform code generation. For example, Scala used to have a limit of maximum 22 arguments per function, because the compiler only implemented code generation for ...
75
programminghorror
MeatyLabia
itpm7zx
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>C# does the same for tuples. Just predefined types up to like 16 parameters.<|eor|><|eols|><|endoftext|>
70
programminghorror
Golden_Lynel
itpf9hi
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>I play a lot of tf2. Source spaghetti is real.<|eor|><|eols|><|endoftext|>
60
programminghorror
Nexuist
itqulhn
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>I've seen similar system used when you need to perform code generation. For example, Scala used to have a limit of maximum 22 arguments per function, because the compiler only implemented code generation for ...
56
programminghorror
andrerav
itq2uls
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>This is either decompiled or auto generated. I dont think it was manually written<|eor|><|soopr|>It's not a decomp, this is the source code they provide officially.<|eoopr|><|sor|>Probably generated by a scri...
46
programminghorror
Sv443_
itpo5r6
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>I really hope a compiler was responsible for this<|eor|><|eols|><|endoftext|>
38
programminghorror
lkearney999
itq490q
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>The quality of the developers on this subreddit is often the real horror and thats horrifying coming from me.<|eor|><|eols|><|endoftext|>
31
programminghorror
Vigilantrac
itpmamn
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>C# does the same for tuples. Just predefined types up to like 16 parameters.<|eor|><|soopr|>nice name bro<|eoopr|><|eols|><|endoftext|>
28
programminghorror
andrerav
itq04gx
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>This is either decompiled or auto generated. I dont think it was manually written<|eor|><|soopr|>It's not a decomp, this is the source code they provide officially.<|eoopr|><|sor|>Probably generated by a scri...
28
programminghorror
RiddSann
itrz1gk
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>I've seen similar system used when you need to perform code generation. For example, Scala used to have a limit of maximum 22 arguments per function, because the compiler only implemented code generation for ...
25
programminghorror
LeonJones
itsz573
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>I've seen similar system used when you need to perform code generation. For example, Scala used to have a limit of maximum 22 arguments per function, because the compiler only implemented code generation for ...
23
programminghorror
captain_obvious_here
itqr86q
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>I'm not a C++ guru, but I did quite a bit of it in the early 2000s and this was pretty common. We had scripts to generate that kind of things, obviously. As said in other comments, powerful templating now exi...
22
programminghorror
meharryp
itqsv7g
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>This is either decompiled or auto generated. I dont think it was manually written<|eor|><|soopr|>It's not a decomp, this is the source code they provide officially.<|eoopr|><|sor|>Probably generated by a scri...
22
programminghorror
StickyPolitical
itpymry
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>This is either decompiled or auto generated. I dont think it was manually written<|eor|><|eols|><|endoftext|>
21
programminghorror
leftofzen
ittrtmj
<|sols|><|sot|>Source Engine's queue call system<|eot|><|sol|>https://i.redd.it/olgttlcguyv91.png<|eol|><|sor|>For lasagna code to exist, spaghetti code had to exist in the first place, and this is it.<|eor|><|sor|>This is not spaghetti code though. This is autogenerated code to provide support for variadic templates b...
21
programminghorror
Rudxain
vf6yup
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|eols|><|endoftext|>
737
programminghorror
BhagwanBill
icu6xtr
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>lol that comment.<|eor|><|eols|><|endoftext|>
265
programminghorror
mianori
icufl6t
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>lol that comment.<|eor|><|sor|>At least they see the problem<|eor|><|eols|><|endoftext|>
172
programminghorror
ralmin
icudfrq
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>``` let digits = '0123456789abcdefghijklmnopqrstuvwxyz'; let regex = RegExp('[' + digits.substring(0, radix) + ']+|.', 'gi'); let match = p1.match(regex); ```<|eor|><|...
151
programminghorror
winkerback
icwbqxz
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>lol that comment.<|eor|><|sor|>At least they see the problem<|eor|><|sor|>Indeed - however they don't step back and think "someone else must have had this issue and fi...
57
programminghorror
BhagwanBill
icveqsn
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>lol that comment.<|eor|><|sor|>At least they see the problem<|eor|><|sor|>Indeed - however they don't step back and think "someone else must have had this issue and fi...
53
programminghorror
devilmaysleep
icv0iw3
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>At this point wouldn't it be easier writing a method that checks if a given character matches a specified base and parse the string? It'd probably not be any shorter ...
49
programminghorror
SnasSn
icv1bm4
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>``` let digits = '0123456789abcdefghijklmnopqrstuvwxyz'; let regex = RegExp('[' + digits.substring(0, radix) + ']+|.', 'gi'); let match = p1.match(regex); ```<|eor|><|...
48
programminghorror
SnasSn
icvqt42
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>``` let digits = '0123456789abcdefghijklmnopqrstuvwxyz'; let regex = RegExp('[' + digits.substring(0, radix) + ']+|.', 'gi'); let match = p1.match(regex); ```<|eor|><|...
35
programminghorror
_PM_ME_PANGOLINS_
icv05j4
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>Because it's JS it's a bit annoying, and I don't know the purpose of the `|.`, but I'd do something like. let match = p1.match(/[0-9a-zA-Z]+/) && !Number.isNaN(Nu...
31
programminghorror
xQuber
icuss21
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>So what would be the proper solution here? Take `/\[\da-z]+|./gi` because that pattern subsumes all the other patterns before?<|eor|><|eols|><|endoftext|>
26
programminghorror
scragar
icuzu5i
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>``` let digits = '0123456789abcdefghijklmnopqrstuvwxyz'; let regex = RegExp('[' + digits.substring(0, radix) + ']+|.', 'gi'); let match = p1.match(regex); ```<|eor|><|...
21
programminghorror
TheGoodOldCoder
icvkdw1
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>> Worst diff I've ever seen Honestly, this is a bunch of regexes, each of which isn't too hard to understand. I've seen similar diffs with a very long single regex. O...
19
programminghorror
_PM_ME_PANGOLINS_
icv0aw2
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>``` let digits = '0123456789abcdefghijklmnopqrstuvwxyz'; let regex = RegExp('[' + digits.substring(0, radix) + ']+|.', 'gi'); let match = p1.match(regex); ```<|eor|><|...
18
programminghorror
blobthekat
icv3sb2
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>*forgets `parseInt` exists*<|eor|><|eols|><|endoftext|>
17
programminghorror
Rudxain
icwgbos
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>``` let digits = '0123456789abcdefghijklmnopqrstuvwxyz'; let regex = RegExp('[' + digits.substring(0, radix) + ']+|.', 'gi'); let match = p1.match(regex); ```<|eor|><|...
17
programminghorror
wilbur4321
icv1ua0
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>``` let digits = '0123456789abcdefghijklmnopqrstuvwxyz'; let regex = RegExp('[' + digits.substring(0, radix) + ']+|.', 'gi'); let match = p1.match(regex); ```<|eor|><|...
13
programminghorror
gcbirzan
icxnk71
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>lol that comment.<|eor|><|sor|>At least they see the problem<|eor|><|sor|>Indeed - however they don't step back and think "someone else must have had this issue and fi...
12
programminghorror
notdedicated
icwqiip
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>Super confused about the `|.` as it basically makes anything before it pointless... (some complex subset) OR any character at all? huh? This could all have been rewrit...
9
programminghorror
Rudxain
iczn6y1
<|sols|><|sot|>Worst diff I've ever seen (added support for multiple numeral system bases)<|eot|><|sol|>https://i.redd.it/995rl1hizd691.png<|eol|><|sor|>lol that comment.<|eor|><|sor|>At least they see the problem<|eor|><|sor|>Indeed - however they don't step back and think "someone else must have had this issue and fi...
8
programminghorror
Thesandro
g7u8kr
<|sols|><|sot|>The great waterfall<|eot|><|sol|>https://i.redd.it/lx0hjnu43zu41.png<|eol|><|eols|><|endoftext|>
740