subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
ReAethered
vb8uxd
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|eols|><|endoftext|>
749
programminghorror
Farsqueaker
ic700vo
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>I like a good Nessage as much as the next guy.<|eor|><|eols|><|endoftext|>
222
programminghorror
PyroCatt
ic72t3n
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>Instant Nessenger<|eor|><|eols|><|endoftext|>
89
programminghorror
FabulousFoodHoor
ic77yhu
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>Nessage received. Loud and clear.<|eor|><|eols|><|endoftext|>
61
programminghorror
CaitaXD
ic7ytqf
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>day 546456 of telling people to use a fucking linter<|eor|><|eols|><|endoftext|>
56
programminghorror
suinp
ic70ube
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>I like a good Nessage as much as the next guy.<|eor|><|sor|>I use iNessage every day<|eor|><|eols|><|endoftext|>
33
programminghorror
anotherNarom
ic8h02w
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>day 546456 of telling people to use a fucking linter<|eor|><|sor|>My tech lead told me when I joined the company that they didn't do any linting as it would slow them down.<|eor|><|eols|><|endoftext|>
23
programminghorror
Sp1derX
ic7iz8c
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>Instant Nessenger<|eor|><|sor|>Imstamt Nessemger<|eor|><|eols|><|endoftext|>
20
programminghorror
ReAethered
ic7ln0d
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>The ternary alone would have the same result<|eor|><|soopr|>That's why I posted this.. it's just so ridiculous<|eoopr|><|eols|><|endoftext|>
20
programminghorror
Javascript_above_all
ic7lgsu
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>The ternary alone would have the same result<|eor|><|eols|><|endoftext|>
17
programminghorror
Thenderick
ic7h1g5
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>I like a good Nessage as much as the next guy.<|eor|><|sor|>Don't shoot the Nessenger! Don't bully OP!<|eor|><|eols|><|endoftext|>
17
programminghorror
the_hair_of_aenarion
ic85ix6
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>day 546456 of telling people to use a fucking linter<|eor|><|soopr|>The company has one too but this is somehow let through...<|eoopr|><|sor|>`git push --no-verify`<|eor|><|eols|><|endoftext|>
15
programminghorror
CaitaXD
ic98h2x
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>day 546456 of telling people to use a fucking linter<|eor|><|sor|>AFAIK a linter checks the code format and style, not the code itself<|eor|><|sor|>What's the tool that puts squigly lines when you re nautghy programmer<|eor...
12
programminghorror
intensely_human
ic8ctj4
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>The ternary alone would have the same result<|eor|><|sor|>Probably there used to be other properties but they got removed during refactoring, that would explain. Btw I really hate ternary, it is completely unreadable but a...
11
programminghorror
Sandarr95
ic968bi
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>What if I had: ``` return { payload, ...(successMessage? { successMessage }: {}) } ``` How would you improve it?<|eor|><|eols|><|endoftext|>
7
programminghorror
siddharth904
ic8u8ko
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>day 546456 of telling people to use a fucking linter<|eor|><|sor|>AFAIK a linter checks the code format and style, not the code itself<|eor|><|eols|><|endoftext|>
7
programminghorror
ReAethered
ic96plc
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>What if I had: ``` return { payload, ...(successMessage? { successMessage }: {}) } ``` How would you improve it?<|eor|><|soopr|>I don't have that? I think your code is fine for that use case<|eoopr|><|eols|><|endoftext...
7
programminghorror
Affectionate_Car3414
icahp6c
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>day 546456 of telling people to use a fucking linter<|eor|><|sor|>AFAIK a linter checks the code format and style, not the code itself<|eor|><|sor|>Linters can absolutely check the semantics of the program, that's where a l...
6
programminghorror
Bacon_Destroyer
ic9cgp8
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>I see this kind of code all of the time. When I code backend, it's all about simplicity and expressive code. When I code frontend, all that flies out the window and the spread operator goes brr...<|eor|><|eols|><|en...
5
programminghorror
Darksquid
ic81t0k
<|sols|><|sot|>Expand and contract<|eot|><|sol|>https://i.redd.it/9yeasmg86d591.png<|eol|><|sor|>The ternary alone would have the same result<|eor|><|sor|>Probably there used to be other properties but they got removed during refactoring, that would explain. Btw I really hate ternary, it is completely unreadable but a...
5
programminghorror
theg721
p9nip9
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
746
programminghorror
zendarr
h9zftgw
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
309
programminghorror
theg721
h9zgtoi
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
267
programminghorror
AFlyingYetOddCat
h9znml4
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
151
programminghorror
road_laya
ha033q9
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
99
programminghorror
SarahC
ha02q0c
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
75
programminghorror
_PM_ME_PANGOLINS_
ha0cn46
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
62
programminghorror
IamImposter
ha03izd
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
48
programminghorror
_PM_ME_PANGOLINS_
ha0cuk6
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
41
programminghorror
dark-panda
ha01ydo
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
40
programminghorror
MichiRecRoom
h9zzu66
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
36
programminghorror
theg721
ha0imou
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
36
programminghorror
_PM_ME_PANGOLINS_
ha0hsvu
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
36
programminghorror
ayunami2000
h9zjofk
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
33
programminghorror
yhgfvtfhbv
ha0ja3m
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
33
programminghorror
DominoNo-
ha0heww
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
33
programminghorror
theg721
ha0ih09
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
32
programminghorror
_PM_ME_PANGOLINS_
ha0e2ef
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
32
programminghorror
Dannei
ha07skh
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
31
programminghorror
bigger_hero_6
h9zrhda
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
30
programminghorror
road_laya
ha037uv
<|soss|><|sot|>This security flaw still exists, years after I first reported it<|eot|><|sost|>Not much point in posting code for this one, since it's a mess (as you'd expect considering the major security flaw) and I'd probably have to explain it anyway. I realise that the sidebar points you to /r/talesfromtechsupport,...
28
programminghorror
Sloop_man
csnmr8
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|eols|><|endoftext|>
754
programminghorror
Sloop_man
exg5f1t
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>How old is that file? Python didn't actually have booleans for a long time and instead you would use the "truthiness" of a value, or just 1 and 0. [A Boolean type was added to Python 2.3](http...
129
programminghorror
Beefster09
exg455j
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>This is actually pretty sane in really old versions of Python that don't have a proper boolean type.<|eor|><|eols|><|endoftext|>
114
programminghorror
Herowyn
exgoqlz
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>This is actually pretty sane in really old versions of Python that don't have a proper boolean type.<|eor|><|sor|>In some old C program we used #define TRUE (0==0) #define FALSE (!T...
88
programminghorror
frosted-mini-yeets
exg5j5w
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>How old is that file? Python didn't actually have booleans for a long time and instead you would use the "truthiness" of a value, or just 1 and 0. [A Boolean type was added to Python 2.3](http...
78
programminghorror
volivav
exgvush
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>This is actually pretty sane in really old versions of Python that don't have a proper boolean type.<|eor|><|sor|>In some old C program we used #define TRUE (0==0) #define FALSE (!T...
71
programminghorror
UnchainedMundane
exgadmt
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>TIL Python lets you assign to built in constants like that. How insidious!<|eor|><|sor|>Not since 2003.<|eor|><|sor|>It "worked" just now when I tried it: ```python % python Python 2.7.15+ (...
47
programminghorror
SuperSuperUniqueName
exgnfya
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>How old is that file? Python didn't actually have booleans for a long time and instead you would use the "truthiness" of a value, or just 1 and 0. [A Boolean type was added to Python 2.3](http...
42
programminghorror
ColoBiker
exg512d
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>TIL Python lets you assign to built in constants like that. How insidious!<|eor|><|eols|><|endoftext|>
30
programminghorror
Herowyn
exhghcd
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>This is actually pretty sane in really old versions of Python that don't have a proper boolean type.<|eor|><|sor|>In some old C program we used #define TRUE (0==0) #define FALSE (!T...
28
programminghorror
Linuxdirk
exhbmvo
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>This is actually pretty sane in really old versions of Python that don't have a proper boolean type.<|eor|><|sor|>In some old C program we used #define TRUE (0==0) #define FALSE (!T...
26
programminghorror
TerrorBite
exgxaqo
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>TIL Python lets you assign to built in constants like that. How insidious!<|eor|><|sor|>All you're doing is creating local variables called True and False which hide the built-in ones in the l...
24
programminghorror
Benoslav
exh4tf2
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>This is actually pretty sane in really old versions of Python that don't have a proper boolean type.<|eor|><|sor|>In some old C program we used #define TRUE (0==0) #define FALSE (!T...
22
programminghorror
syntaxaire
exg5oyl
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>TIL Python lets you assign to built in constants like that. How insidious!<|eor|><|sor|>Not since 2003.<|eor|><|eols|><|endoftext|>
21
programminghorror
swiggityswooty55
exg6eo1
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>TIL Python lets you assign to built in constants like that. How insidious!<|eor|><|sor|>Not since 2003.<|eor|><|sor|>It still works in 2.7, which was released in 2010.<|eor|><|eols|><|endoftex...
21
programminghorror
Wazzaps
exh9h6z
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>This is actually pretty sane in really old versions of Python that don't have a proper boolean type.<|eor|><|sor|>In some old C program we used #define TRUE (0==0) #define FALSE (!T...
21
programminghorror
w3_ar3_l3g10n
exhqo3s
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>How old is that file? Python didn't actually have booleans for a long time and instead you would use the "truthiness" of a value, or just 1 and 0. [A Boolean type was added to Python 2.3](http...
21
programminghorror
vige
exhnb01
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>How old is that file? Python didn't actually have booleans for a long time and instead you would use the "truthiness" of a value, or just 1 and 0. [A Boolean type was added to Python 2.3](http...
15
programminghorror
evestraw
exh6ktm
<|sols|><|sot|>I saw this at the top of a *Python* file at work today<|eot|><|sol|>https://i.imgur.com/qegrWXE.png<|eol|><|sor|>This is actually pretty sane in really old versions of Python that don't have a proper boolean type.<|eor|><|sor|>In some old C program we used #define TRUE (0==0) #define FALSE (!T...
11
programminghorror
MaybE_Tree
ad5lnu
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|eols|><|endoftext|>
754
programminghorror
lijmer
ede4nrk
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>You can call the constructor explicitly by using placement new.<|eor|><|eols|><|endoftext|>
147
programminghorror
pigeon768
edf1k7z
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>> Except constructors can't be called explicitly. In case this is in /r/programminghorror because people think C++ is actually that bad, as opposed to being here because the p...
95
programminghorror
ivanjermakov
edef49l
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>c++ should support `t-->` for pointers to pointers.<|eor|><|sor|>And `t----->` too, just in case<|eor|><|eols|><|endoftext|>
69
programminghorror
patatahooligan
edf0trb
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>You can call the constructor explicitly by using placement new.<|eor|><|sor|>Also `std::optional` can do delayed initialization at the cost of an extra `bool` of space.<|eor|><...
61
programminghorror
Fuzzyzilla
edelmh3
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>I have literally the same thing in my project's codebase! In order to make sure that my RAII OpenGL objects are initialized *after* GL is loaded and launched, I store all of my...
53
programminghorror
pigeon768
edf443v
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>> Except constructors can't be called explicitly. In case this is in /r/programminghorror because people think C++ is actually that bad, as opposed to being here because the p...
38
programminghorror
Fuzzyzilla
edf44bz
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>c++ should support `t-->` for pointers to pointers.<|eor|><|sor|>[deleted]<|eor|><|sor|>I always though the idea of being a great programmer was overemphasized and that there w...
30
programminghorror
PouponMacaque
edf398x
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>c++ should support `t-->` for pointers to pointers.<|eor|><|sor|>[deleted]<|eor|><|sor|>I always though the idea of being a great programmer was overemphasized and that there w...
28
programminghorror
Fuzzyzilla
edetk5j
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>I have literally the same thing in my project's codebase! In order to make sure that my RAII OpenGL objects are initialized *after* GL is loaded and launched, I store all of my...
20
programminghorror
Lunchboxninja1
edfsxl7
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>You can call the constructor explicitly by using placement new.<|eor|><|sor|>Yeah idk what this dude is doing<|eor|><|eols|><|endoftext|>
17
programminghorror
Fuzzyzilla
edf2v4w
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>c++ should support `t-->` for pointers to pointers.<|eor|><|sor|>[deleted]<|eor|><|sor|>*oh dear jesus*<|eor|><|eols|><|endoftext|>
15
programminghorror
starm4nn
edf7h1s
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>Is this the Source code for Dolphin?<|eor|><|eols|><|endoftext|>
14
programminghorror
feldrim
edf8czf
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>Anyway, I liked it. It doesn't explain what that piece of code does but why it does the way it does. It stops the new developer making mistakes by refactoring the code thinking...
14
programminghorror
10se1ucgo
edesvw0
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>I have literally the same thing in my project's codebase! In order to make sure that my RAII OpenGL objects are initialized *after* GL is loaded and launched, I store all of my...
14
programminghorror
DarthEru
edg83m9
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>> Except constructors can't be called explicitly. In case this is in /r/programminghorror because people think C++ is actually that bad, as opposed to being here because the p...
12
programminghorror
ventuspilot
edf7fu3
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>c++ should support `t-->` for pointers to pointers.<|eor|><|sor|>[deleted]<|eor|><|sor|>I always though the idea of being a great programmer was overemphasized and that there w...
12
programminghorror
starm4nn
edfuft7
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>Is this the Source code for Dolphin?<|eor|><|sor|>[deleted]<|eor|><|sor|>I meant the Emulator<|eor|><|eols|><|endoftext|>
11
programminghorror
DryChickenWings
edg1pjj
<|sols|><|sot|>You know it's bad when the comment start with "So here's the deal"<|eot|><|sol|>https://i.redd.it/qw82ysyx1t821.png<|eol|><|sor|>c++ should support `t-->` for pointers to pointers.<|eor|><|sor|>[deleted]<|eor|><|sor|>I always though the idea of being a great programmer was overemphasized and that there w...
10
programminghorror
EmbarrassedActive4
11l6vvh
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|eols|><|endoftext|>
751
programminghorror
MikemkPK
jbav1co
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>It seems silly, but if it's dealing with angles in multiple of 90, it probably makes the code more consistent and readable.<|eor|><|eols|><|endoftext|>
227
programminghorror
Ishax
jbau0ww
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Honestly its whatever. Id do it if the code was very repetitive.<|eor|><|eols|><|endoftext|>
96
programminghorror
gydu2202
jbaztik
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Once I found in a base library the constant `weeks_per_fortnight`.<|eor|><|eols|><|endoftext|>
83
programminghorror
DerekSturm
jbbdv3s
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Once I found in a base library the constant `weeks_per_fortnight`.<|eor|><|sor|>maybe it was for readability? \`weeks\_per\_fortnight\` says a lot more about the program than \`2\`<|eor|><|eols|><|endoftext|...
83
programminghorror
PuddyVanHird
jbc6yzw
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Ridiculous. Should be TAU/4\*2.<|eor|><|eols|><|endoftext|>
70
programminghorror
Classy_Mouse
jbc7doh
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Once I found in a base library the constant `weeks_per_fortnight`.<|eor|><|sor|>maybe it was for readability? \`weeks\_per\_fortnight\` says a lot more about the program than \`2\`<|eor|><|sor|>But then you ...
66
programminghorror
experbia
jbdsycb
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>`Math.sqrt((Math.PI*Math.sin(-0.5*Math.PI))**2+(Math. PI*Math.cos(-0.5*Math.PI))**2)` fixed pls merge <|eor|><|eols|><|endoftext|>
45
programminghorror
NullVoidPointer
jbbpgy8
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Once I found in a base library the constant `weeks_per_fortnight`.<|eor|><|sor|>It adds readability, otherwise you don't know why `2` was used. It cleanly separates what the code is doing from converting uni...
44
programminghorror
bnl1
jbdq73t
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Honestly its whatever. Id do it if the code was very repetitive.<|eor|><|sor|>Just use Mth.PI then<|eor|><|sor|>Then maybe you would use Mth.PI/2 too much and combining them is meh<|eor|><|eols|><|endoftext|...
36
programminghorror
peacefulbelovedfish
jbecynt
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>It seems silly, but if it's dealing with angles in multiple of 90, it probably makes the code more consistent and readable.<|eor|><|sor|>I like the winky sad face at the end of the line the most - like "yeah...
28
programminghorror
JFerdinand68
jbdv1cr
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Once I found in a base library the constant `weeks_per_fortnight`.<|eor|><|sor|>maybe it was for readability? \`weeks\_per\_fortnight\` says a lot more about the program than \`2\`<|eor|><|sor|>Maybe it was ...
20
programminghorror
Fichen
jbfbnmv
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>`Math.sqrt((Math.PI*Math.sin(-0.5*Math.PI))**2+(Math. PI*Math.cos(-0.5*Math.PI))**2)` fixed pls merge <|eor|><|sor|>Every merge request should end in: fixed pls merge<|eor|><|eols|><|endoftext|>
17
programminghorror
timoto
jbdq5z2
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Once I found in a base library the constant `weeks_per_fortnight`.<|eor|><|sor|>I can understand making it a constant for readability, but I cant understand why any sane system would be working with fortnigh...
16
programminghorror
beeteedee
jbc8c2l
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Once I found in a base library the constant `weeks_per_fortnight`.<|eor|><|sor|>I can understand making it a constant for readability, but I cant understand why any sane system would be working with fortnigh...
15
programminghorror
parkotron
jbem8m9
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Once I found in a base library the constant `weeks_per_fortnight`.<|eor|><|sor|>It adds readability, otherwise you don't know why `2` was used. It cleanly separates what the code is doing from converting uni...
15
programminghorror
KagakuNinja
jbbg3b9
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>I was never good at mth...<|eor|><|eols|><|endoftext|>
12
programminghorror
BetterNameThanMost
jbf7dak
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Honestly its whatever. Id do it if the code was very repetitive.<|eor|><|sor|>Just use Mth.PI then<|eor|><|sor|>Then maybe you would use Mth.PI/2 too much and combining them is meh<|eor|><|sor|>What's wrong ...
11
programminghorror
parkotron
jbeljlh
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Once I found in a base library the constant `weeks_per_fortnight`.<|eor|><|sor|>maybe it was for readability? \`weeks\_per\_fortnight\` says a lot more about the program than \`2\`<|eor|><|sor|>Maybe it was ...
11
programminghorror
Colinniey
jbde5i8
<|sols|><|sot|>This java code I found on github...<|eot|><|sol|>https://i.redd.it/60az1jv30dma1.png<|eol|><|sor|>Why is it mth, is math that long a word?<|eor|><|eols|><|endoftext|>
10
programminghorror
Probetag
lncsv1
<|sols|><|sot|>Ehhhh, my worksmate code<|eot|><|sol|>https://i.redd.it/devrg6giwei61.png<|eol|><|eols|><|endoftext|>
753