subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
ArisenDrake
idusa7i
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|soopr|>Used in laravel project in file "array\_helpers.php", Senior Dev said it's the most "optimized" way to sort large arrays..<|eoopr|><|sor|>Sure, why use the functions that are written in C tha...
220
programminghorror
arnemcnuggets
idus6qf
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>Am I being a brainlet or does this decay to bubble sort with extra steps<|eor|><|eols|><|endoftext|>
150
programminghorror
Magmagan
iduwgtn
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|soopr|>Used in laravel project in file "array\_helpers.php", Senior Dev said it's the most "optimized" way to sort large arrays..<|eoopr|><|sor|>Your senior dev really needs to revise what O(n) mean...
138
programminghorror
teabolaisacool
iduwjvx
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>Am I being a brainlet or does this decay to bubble sort with extra steps<|eor|><|soopr|>Yup, recursive bubble sort. I even tested it on some large arrays, true, its memory optimized but when it...
127
programminghorror
szymat
iduz8pi
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|soopr|>Used in laravel project in file "array\_helpers.php", Senior Dev said it's the most "optimized" way to sort large arrays..<|eoopr|><|sor|>Your senior dev really needs to revise what O(n) mean...
106
programminghorror
BakuhatsuK
idvgyt3
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>Am I being a brainlet or does this decay to bubble sort with extra steps<|eor|><|soopr|>Yup, recursive bubble sort. I even tested it on some large arrays, true, its memory optimized but when it...
93
programminghorror
szymat
iduy61r
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|soopr|>Used in laravel project in file "array\_helpers.php", Senior Dev said it's the most "optimized" way to sort large arrays..<|eoopr|><|sor|>Your senior dev really needs to revise what O(n) mean...
85
programminghorror
radmanmadical
iduzc3n
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|soopr|>Used in laravel project in file "array\_helpers.php", Senior Dev said it's the most "optimized" way to sort large arrays..<|eoopr|><|sor|>Sure, why use the functions that are written in C tha...
80
programminghorror
cyka__blyad
idvd1wy
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>recursive bubble sort O(n) + recursive activation stack r.i.p<|eor|><|eols|><|endoftext|>
77
programminghorror
AttackOfTheThumbs
idv8t9p
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>Recursive bubble sort. Absolute madlad.<|eor|><|eols|><|endoftext|>
43
programminghorror
kendalltristan
idv13qi
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|soopr|>Used in laravel project in file "array\_helpers.php", Senior Dev said it's the most "optimized" way to sort large arrays..<|eoopr|><|sor|>To my knowledge, PHP isn't tail call optimized so he ...
42
programminghorror
user_namec_hecks_out
iduyfui
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|soopr|>Used in laravel project in file "array\_helpers.php", Senior Dev said it's the most "optimized" way to sort large arrays..<|eoopr|><|sor|>Your senior dev really needs to revise what O(n) mean...
41
programminghorror
piestormer
idvryfi
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>I'm still hung up on the <|eor|><|sor|>In some fonts (like Fira Code, Cascadia Code, and JetBrains Mono) there is a ligature for >= that turns it into a (note that it takes up the same amount ...
31
programminghorror
CaitaXD
idvenjo
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>recursive bubble sort O(n) + recursive activation stack r.i.p<|eor|><|sor|>But it it's tail recurring no ?<|eor|><|sor|>PHP does not seem to have tail call optimization (source: some quick go...
29
programminghorror
polmeeee
idvy1vq
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|soopr|>Used in laravel project in file "array\_helpers.php", Senior Dev said it's the most "optimized" way to sort large arrays..<|eoopr|><|sor|>Your senior dev really needs to revise what O(n) mean...
28
programminghorror
szymat
iduzjo6
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>Am I being a brainlet or does this decay to bubble sort with extra steps<|eor|><|soopr|>Yup, recursive bubble sort. I even tested it on some large arrays, true, its memory optimized but when it...
21
programminghorror
1thief
idw2vkz
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>Am I being a brainlet or does this decay to bubble sort with extra steps<|eor|><|soopr|>Yup, recursive bubble sort. I even tested it on some large arrays, true, its memory optimized but when it...
18
programminghorror
LaLiLuLeLo_0
idwoobd
<|sols|><|sot|>I present to you, "no loops perfect sorting o(n)"<|eot|><|sol|>https://i.redd.it/amtt6qf481891.png<|eol|><|sor|>recursive bubble sort O(n) + recursive activation stack r.i.p<|eor|><|sor|>But it it's tail recurring no ?<|eor|><|sor|>PHP does not seem to have tail call optimization (source: some quick go...
18
programminghorror
acron0
rfr06c
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|eols|><|endoftext|>
788
programminghorror
tyler_church
hofrjl9
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>*Please be automatically generated.* *Please be automatically generated.* *Please be automatically generated.*<|eor|><|eols|><|endoftext|>
173
programminghorror
Casiell89
hofr8dn
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
169
programminghorror
Rambush01
hofu39t
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
112
programminghorror
NiteShdw
hofu54q
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
79
programminghorror
xGlacion
hog2ewv
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
65
programminghorror
diego_fidalgo
hogg4wg
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
48
programminghorror
acron0
hofjbex
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|soopr|>https://github.com/sirslaw/spell-language-generator/blob/ec3bef985b80cf86e2a296cc45c8aa22e799672b/languages/ghukliak.js#L48<|eoopr|><|eols|><|endoftext|>
42
programminghorror
acron0
hofypvq
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|soopr|>https://github.com/sirslaw/spell-language-generator/blob/ec3bef985b80cf86e2a296cc45c8aa22e799672b/languages/ghukliak.js#L48<|eoopr|><|sor|>I don't see any pull requests, OP.<|eor|><|soopr|>I'm still building up the courage<|eoo...
41
programminghorror
Thecrawsome
hoft0ok
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|soopr|>https://github.com/sirslaw/spell-language-generator/blob/ec3bef985b80cf86e2a296cc45c8aa22e799672b/languages/ghukliak.js#L48<|eoopr|><|sor|>I don't see any pull requests, OP.<|eor|><|eols|><|endoftext|>
40
programminghorror
bradnod
hogh4jx
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
38
programminghorror
Exciting-Insect8269
hogodo9
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
38
programminghorror
mohragk
hohu60z
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>*Please be automatically generated.* *Please be automatically generated.* *Please be automatically generated.*<|eor|><|sor|>Please tell me you wrote a script to write this line thrice rather than copy pasting it yourself manual...
36
programminghorror
Audge3841
hoh87qd
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
33
programminghorror
jcode777
hohqqo1
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>*Please be automatically generated.* *Please be automatically generated.* *Please be automatically generated.*<|eor|><|sor|>Please tell me you wrote a script to write this line thrice rather than copy pasting it yourself manual...
32
programminghorror
SunshineOneDay
hog03fu
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>Let me tell you, some large quantity of years ago there was a thread asking about some IRL experience and I had a large'ish post about .. something, I can't remember what now. The only comment I got was "who hurt you?" and it sto...
23
programminghorror
PlayboySkeleton
hogef5z
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
20
programminghorror
JustALinuxNerd
hofs8og
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|soopr|>https://github.com/sirslaw/spell-language-generator/blob/ec3bef985b80cf86e2a296cc45c8aa22e799672b/languages/ghukliak.js#L48<|eoopr|><|sor|>The rest of the code doesn't get better.<|eor|><|eols|><|endoftext|>
18
programminghorror
SunshineOneDay
hogocev
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>Let me tell you, some large quantity of years ago there was a thread asking about some IRL experience and I had a large'ish post about .. something, I can't remember what now. The only comment I got was "who hurt you?" and it sto...
16
programminghorror
Yoduh99
hog811a
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>Let me tell you, some large quantity of years ago there was a thread asking about some IRL experience and I had a large'ish post about .. something, I can't remember what now. The only comment I got was "who hurt you?" and it sto...
11
programminghorror
TheDiplocrap
hog7iht
<|sols|><|sot|>Who hurt you?<|eot|><|sol|>https://i.redd.it/6szg1cduqd581.png<|eol|><|sor|>For one of my exams I wrote a code like this for converting capital letters to regular letters (and vice versa). A case for each letter And all wrote by hand because professor didn't want us taking programming exams on a compute...
9
programminghorror
BojacksNextGF
wv6ws3
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|eols|><|endoftext|>
793
programminghorror
mavaje
ile76hw
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>I especially love the `arg !== 0 && arg === 1`, just to be sure it is one *and* not zero.<|eor|><|eols|><|endoftext|>
552
programminghorror
JoyJoy_
ile2drs
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>A better name for the function would be `hasOneOne`<|eor|><|eols|><|endoftext|>
289
programminghorror
bhison
ilfmfvq
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>I especially love the `arg !== 0 && arg === 1`, just to be sure it is one *and* not zero.<|eor|><|sor|>Quantum computing ready<|eor|><|eols|><|endoftext|>
271
programminghorror
RichCorinthian
ilevltw
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>A better name for the function would be `hasOneOne`<|eor|><|sor|>hasExactlyOneOne. Never sacrifice clarity for brevity!<|eor|><|eols|><|endoftext|>
179
programminghorror
Fuzzy-Ad6467
ilfcn8n
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>A better name for the function would be `hasOneOne`<|eor|><|sor|>hasExactlyOneOne. Never sacrifice clarity for brevity!<|eor|><|sor|>HasExactlyOneOneAndNotZero<|eor|><|eols|><|endoftext|>
129
programminghorror
dert-man
ildtcm3
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>Dont you like my code? I was payed for each line of code and wanted to leave space for future performance improvements.<|eor|><|eols|><|endoftext|>
97
programminghorror
MopicBrett
ilf207c
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>This code was actually written for a quantum computer where a variable can have two values at once so this code is totally legit<|eor|><|eols|><|endoftext|>
87
programminghorror
buzzkillski
ilfrftl
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>A better name for the function would be `hasOneOne`<|eor|><|sor|>hasExactlyOneOne. Never sacrifice clarity for brevity!<|eor|><|sor|>HasExactlyOneOneAndNotZero<|eor|><|sor|>`hasExactlyOneNonZeroOne`<|eor...
85
programminghorror
ZedTT
ilepfy9
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|> export const hasOneItem = (args: Array<number>): boolean => args.filter(arg => arg === 1).length === 1;<|eor|><|sor|>Ok but then how can you make sure arg isn't 0? I mean I know it's 1 but what if it...
81
programminghorror
NatoBoram
ilf3ldx
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>Ok but people who name function argument "args" deserve to be slapped across the face<|eor|><|eols|><|endoftext|>
58
programminghorror
mavaje
ile6x0s
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|> export const hasOneItem = (args: Array<number>): boolean => args.filter(arg => arg === 1).length === 1;<|eor|><|eols|><|endoftext|>
49
programminghorror
TheBreathtaker
ilf9ssi
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>This code was actually written for a quantum computer where a variable can have two values at once so this code is totally legit<|eor|><|sor|>quantum javascript, where any varible can have multiple diffe...
47
programminghorror
mavaje
ileq1fz
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|> export const hasOneItem = (args: Array<number>): boolean => args.filter(arg => arg === 1).length === 1;<|eor|><|sor|>Ok but then how can you make sure arg isn't 0? I mean I know it's 1 but what if it...
42
programminghorror
Sability
ilfwcfl
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>I especially love the `arg !== 0 && arg === 1`, just to be sure it is one *and* not zero.<|eor|><|sor|>Hey you don't know, the value of one count change suddenly! Like when I found a hard-coded constant ...
38
programminghorror
elperroborrachotoo
ilfecg3
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>I especially love the `arg !== 0 && arg === 1`, just to be sure it is one *and* not zero.<|eor|><|sor|>"type-free" language scar.<|eor|><|eols|><|endoftext|>
32
programminghorror
v_maria
ilfakpj
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>when you can write all the hip cool stuff but have absolutely no idea about fundamentals and common sense<|eor|><|eols|><|endoftext|>
30
programminghorror
svetlo_pivo
ilf7c3x
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|> export const hasOneItem = (args: Array<number>): boolean => args.filter(arg => arg === 1).length === 1;<|eor|><|sor|>Ok but then how can you make sure arg isn't 0? I mean I know it's 1 but what if it...
30
programminghorror
Thonk_Thickly
ile5l6e
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>A better name for the function would be `hasOneOne`<|eor|><|sor|>Glad someone said it<|eor|><|eols|><|endoftext|>
21
programminghorror
Digitalburn
ilh3vma
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>Dont you like my code? I was payed for each line of code and wanted to leave space for future performance improvements.<|eor|><|sor|>Like what if the number is actually 2, we should probably add && arg !...
21
programminghorror
kristallnachte
ilfa7ez
<|sols|><|sot|>Found this on a codebase I'm working on<|eot|><|sol|>https://i.redd.it/rx6c4is7acj91.jpg<|eol|><|sor|>This code was actually written for a quantum computer where a variable can have two values at once so this code is totally legit<|eor|><|sor|>quantum javascript, where any varible can have multiple diffe...
21
programminghorror
RoCaP23
uv7x91
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|eols|><|endoftext|>
789
programminghorror
WeeklyOutlandishness
i9jqo2b
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>Props.properties Ah yes, the properties has properties.<|eor|><|eols|><|endoftext|>
254
programminghorror
UnchainedMundane
i9jyno4
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>https://wiki.c2.com/?ThreeStarProgrammer<|eor|><|eols|><|endoftext|>
119
programminghorror
CaitaXD
i9kig9o
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>https://wiki.c2.com/?ThreeStarProgrammer<|eor|><|sor|>>TheThreeStarProgrammers I've known have been devastating to my teams and the code they produce. The attitude that, in my experience, th...
94
programminghorror
jaaval
i9jt8ax
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>What's the *** ? I didn't know we have beyond double pointer.<|eor|><|sor|>Its just usually bad practice to use them as it makes the code really hard to read. If you need more than double po...
81
programminghorror
Nlelith
i9kkr3y
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>https://wiki.c2.com/?ThreeStarProgrammer<|eor|><|sor|>Someone there talked about how the nginx source has four stars in a configuration structure and [holy hell](https://github.com/nginx/ngi...
69
programminghorror
PyroCatt
i9jrsvf
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>Lots of redacted curse words I see. C stands for curse programming language /j<|eor|><|eols|><|endoftext|>
65
programminghorror
alvinmatias
i9jvq5r
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>Well, at least its not pointless<|eor|><|eols|><|endoftext|>
57
programminghorror
RoCaP23
i9jxo7y
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|> *(u64 *) ((void **)&StringLocation) Holy damn and I thought I got the hang of pointers<|eor|><|soopr|>Oh don't worry, both of these are mistakes This one should be ```(u64)StringLocatio...
46
programminghorror
DasEvoli
i9jwucj
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|> *(u64 *) ((void **)&StringLocation) Holy damn and I thought I got the hang of pointers<|eor|><|eols|><|endoftext|>
45
programminghorror
RoCaP23
i9l20u2
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>https://wiki.c2.com/?ThreeStarProgrammer<|eor|><|sor|>Someone there talked about how the nginx source has four stars in a configuration structure and [holy hell](https://github.com/nginx/ngi...
43
programminghorror
Chuck099
i9jrmku
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>What's the *** ? I didn't know we have beyond double pointer.<|eor|><|eols|><|endoftext|>
29
programminghorror
jaaval
i9k5pdk
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>What's the *** ? I didn't know we have beyond double pointer.<|eor|><|sor|>Its just usually bad practice to use them as it makes the code really hard to read. If you need more than double po...
27
programminghorror
polokratoss
i9jtxku
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>What's the *** ? I didn't know we have beyond double pointer.<|eor|><|sor|>Its just usually bad practice to use them as it makes the code really hard to read. If you need more than double po...
26
programminghorror
Chuck099
i9jtp63
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>What's the *** ? I didn't know we have beyond double pointer.<|eor|><|sor|>Its just usually bad practice to use them as it makes the code really hard to read. If you need more than double po...
24
programminghorror
ueberbelichtetesfoto
i9lihk1
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>https://wiki.c2.com/?ThreeStarProgrammer<|eor|><|sor|>Someone there talked about how the nginx source has four stars in a configuration structure and [holy hell](https://github.com/nginx/ngi...
16
programminghorror
Commercial-Berry-640
i9jtavy
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>Ah, yes... pointer hell, long time no see old friend<|eor|><|eols|><|endoftext|>
14
programminghorror
WCBROW01
i9k1toj
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>https://wiki.c2.com/?ThreeStarProgrammer<|eor|><|sor|>I was about to post this. Love how everyone is just so confused by the concept of this many levels of indirection.<|eor|><|eols|><|endof...
13
programminghorror
DeedleFake
i9mmovu
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>https://wiki.c2.com/?ThreeStarProgrammer<|eor|><|sor|>Someone there talked about how the nginx source has four stars in a configuration structure and [holy hell](https://github.com/nginx/ngi...
13
programminghorror
CaitaXD
i9kj4nt
<|sols|><|sot|>I don't think I should be allowed to write c anymore<|eot|><|sol|>https://i.redd.it/e9ek625240191.png<|eol|><|sor|>What's the *** ? I didn't know we have beyond double pointer.<|eor|><|sor|>Table of strings?<|eor|><|sor|>That could be interpreted as a double pointer at most if I'm not mistaken...<|eor|><...
13
programminghorror
AMusingMule
7yty2o
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|eols|><|endoftext|>
789
programminghorror
spacemudd
duj96ee
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
252
programminghorror
automatethethings
dujc8tv
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
98
programminghorror
unndunn
duje98q
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
57
programminghorror
Daealis
dujahoa
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
54
programminghorror
ThirdEncounter
duj8hfk
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>Gotta handle those _edge_ cases! ^/s<|eor|><|eols|><|endoftext|>
46
programminghorror
justifyer
dujgmx7
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
37
programminghorror
Nulagrithom
dujc9rk
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
32
programminghorror
automatethethings
dujhq1q
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
31
programminghorror
AMusingMule
duja0el
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>Aside from the shitty patching, it's also inline inside a HTML file and it's setting some, what appears to be user-generated, data into `innerHTML`. Also if you're shooting yourself in the foot, at least use jQuery correctly, instea...
28
programminghorror
AlGoreBestGore
duj9hl2
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>Aside from the shitty patching, it's also inline inside a HTML file and it's setting some, what appears to be user-generated, data into `innerHTML`. Also if you're shooting yourself in the foot, at least use jQuery correctly, instea...
25
programminghorror
WHY_DO_I_SHOUT
dujxxzj
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
25
programminghorror
Daealis
dujdc8f
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
20
programminghorror
ClutchHunter
dujcg0f
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>Aside from the shitty patching, it's also inline inside a HTML file and it's setting some, what appears to be user-generated, data into `innerHTML`. Also if you're shooting yourself in the foot, at least use jQuery correctly, instea...
15
programminghorror
Katana__
duk57y5
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
12
programminghorror
iamsooldithurts
dujs0fj
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>If this stays in, then yes: it's horrible. However, if stuff is on fire, crashing and burning hard, then something like this is acceptable if (and only if) it is accompanied by also immediately opening a highest priority issue to d...
9
programminghorror
Mildan
dujba1e
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>Aside from the shitty patching, it's also inline inside a HTML file and it's setting some, what appears to be user-generated, data into `innerHTML`. Also if you're shooting yourself in the foot, at least use jQuery correctly, instea...
9
programminghorror
pilif
dujnj9p
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>If this stays in, then yes: it's horrible. However, if stuff is on fire, crashing and burning hard, then something like this is acceptable if (and only if) it is accompanied by also immediately opening a highest priority issue to d...
7
programminghorror
automatethethings
dujhfh0
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
7
programminghorror
IsoldesKnight
dujma2a
<|sols|><|sot|>"Urgent Patch"<|eot|><|sol|>https://i.imgur.com/zrxWMCa.jpg<|eol|><|sor|>URGHHHHHHHHHHHHHHHHHHHHHH. This shit's frustrating. FRUSTRATING. Imagine working with someone who DID just exactly that but then the code is crashing in the try-catch block WITHOUT any fucking feedback. You sit there wasting time t...
7