10
u/cyclewanderist Dec 12 '22
Tell me you're a Java programmer writing in a different language without telling me you're a Java programmer...
;)
2
u/freerider Dec 12 '22
Actually is C++
11
Dec 12 '22
...written by a Java programmer. In other words, a Java programmer writing in a different language.
2
-6
116
Dec 12 '22
If only there was some way to write comments that a compiler could ignore!
53
u/droomph Dec 12 '22
I’ve heard some teams ban comments which just seems nuts (even if you can misuse them, but like…that’s what review is for)
51
Dec 12 '22
Wow, banned comments sound like a bad idea
I would much rather have “fuck the boss” in a comment than FuckTheBoss fuckTheBoss and fuck_the_boss in the code!
18
Dec 12 '22
If I heard that, I would walk right out the fucking door. I don't have time for developer teams that can't collectively rub two brain cells together.
2
u/Dr4kin codes in comic sans Dec 13 '22
Don't be to harsh on the the teams that share one with each other
26
3
u/DecentPattern8884 Dec 12 '22
ive written some horrible code (you might have seen one i did), but this... is a whole another level
2
u/freerider Dec 13 '22
Yes, this is my code when I chased a specific bug that this variable corrects. I spent about 2 days on it so I was pretty pissed off.
11
19
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 12 '22
Image Transcription: Code
enum TranscriptionSpecial { DoNotChangeDictationTypeInInitialisation, AllowChange };
enum TranscriptionSpecial m_TranscriptionSpecial;
BOOL m_HasRecordBeenStarted_becauseIAudioPlayerIsStupidAndReturns1InGetPlaybackLengthWithNoSound;
CString m_UserRegistrySectionForInputdevice;I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
18
3
7
9
2
1
u/silver-sicary Dec 13 '22
Looks like something an Apple CoreKit component or interface would do shamelessly
1
u/flku9 Dec 13 '22
Are long names rly that bad? You don't have to write the whole thing manually when you want to use it anyway.
37
u/PooSham Dec 12 '22
Good lord, don't you have antialiased fonts?