r/ProgrammerHumor • • Dec 23 '19
Hi guys I just went from python to C++ and I found a way to make the code more aesthetically pleasing
1.4k
Upvotes
r/ProgrammerHumor • • Dec 23 '19
16
u/Cobayo Dec 23 '19
Btw since C++11 we have smart pointers so you wouldn't need that code at all, they get deleted automatically
7
u/mohragk Dec 23 '19
Guys, don't tell him he doesn't have to new line after every if statement.
537
u/PhiBuh Dec 23 '19
Listen here you little shit...
994
u/FreeStylin03_ Dec 23 '19
Please go back to python
196
u/Pony_Roleplayer Dec 23 '19
"Look how they massacred my boy..."
195
u/aintscurrdscars Dec 23 '19
how can any of us feel safe knowing this person is not in handcuffs
291
u/[deleted] Dec 23 '19
You monster.
159
u/ghostofone1 Dec 23 '19
screams
80
u/2jesusisbetterthan1 Dec 23 '19
Wait , that is illegal
39
u/moosi-j Dec 23 '19
Crap I thought we kept our Style Guide locked down
39
u/[deleted] Dec 23 '19
A lot of angry programmers down here and i totally agree with them
76
u/The_Ty Dec 23 '19
This should be illegal.
Not in a coding sense, a policeman should literally be involved.
37
u/MagicalGandalf Dec 23 '19
MY EYESSS
33
u/[deleted] Dec 23 '19
Okay please get help this isn't okay I'm about to throw up I'm gonna have PTSD about this
31
u/FactoryNewdel Dec 23 '19
Kill it before it lays eggs
29
u/[deleted] Dec 23 '19
it's cursed
27
u/Chadwiq12 Dec 23 '19
FBI? Yeah, this post right here.
51
u/afk_runner Dec 23 '19
Fuck you you fucking fuck! I fucking hated this.
25
u/morales6989 Dec 23 '19
just upvoting because is awful and i want to see the hate fuel a little more.
41
u/[deleted] Dec 23 '19
BEGONE OR YOU WILL FACE THE POWER OF GOD AND ANIME!
20
u/lundsted Dec 23 '19
thanks, i hate it
15
u/BabyPuncher3000 Dec 23 '19
This hurts us.
13
u/TechPr0 Dec 23 '19
I burst out in laughter in my office.
10
u/[deleted] Dec 23 '19
A N G E R Y
9
u/CycleWeeb Dec 23 '19
It does not
16
u/Dragonaax Dec 23 '19
Do you also kill puppies for fun?
8
u/HenceProvedhuehuehue Dec 23 '19
What sorcery is this
8
u/Emile2250 Dec 23 '19
wh.. why would you...? what!?!
8
u/[deleted] Dec 23 '19
Seek help
7
u/[deleted] Dec 23 '19
Die a ppainful death
6
u/Tag366 Dec 23 '19
*inner scream*
6
u/[deleted] Dec 23 '19
stopp
5
u/ThatIsATastyBurger12 Dec 23 '19
I hate this so much, bravo
5
u/demonic_innocence Dec 23 '19
I’m c r y i n g
5
u/TechPr0 Dec 23 '19
Oh dear lord, I still can't control my laughter. I probably look like a lunatic in my office.
5
u/bot-mark Dec 23 '19
You dumb fucking cretin, you fucking fool, absolute fucking buffoon, you bumbling idiot. Fuck you.
8
u/thecass240 Dec 23 '19
If you upgrade to C++ please also upgrade your syntax, don't stick to the "one space kills your program" ways
4
u/Bobjohndud Dec 23 '19
my disappointment is immeasurable and my day is ruined
4
u/[deleted] Dec 24 '19
This give me anxiety... now I can’t sleep thinking one of our little shit interns will pull something like this one day
4
u/DartTimeTime Dec 24 '19
Dear God no.
11
u/ausmedic80 Dec 23 '19
How dare you. Real coders leave it a mess, that way it gives the debugging team something to feel special about
6
u/deljaroo Dec 24 '19
ew ew ew ew ew
you do it like this:
3
u/tomvorlostriddle Dec 23 '19
Shut it down
3
u/1FireWalker Dec 23 '19
Pervent
3
u/[deleted] Dec 23 '19
Every creation of God is vali-...
Noa get the damn boat
3
u/ghostwhat Dec 23 '19
That's a paddlin'
3
u/kiedtl Dec 23 '19
medic!
3
u/other_usernames_gone Dec 23 '19
Oh dear god he's writing a custom compiler
3
u/jonster5 Dec 23 '19
I will find you... and destroy you if it’s the last thing I do...
3
u/[deleted] Dec 23 '19
If you were my son I would disown you.
3
u/[deleted] Dec 23 '19
I’m more annoyed by all the unnecessary nullptr checks,
deleteingnullptris safe.3
u/[deleted] Dec 23 '19
I'm calling the police!
7
u/[deleted] Dec 23 '19
He's speaking the language of gods!
2
u/GaetanWcz Dec 23 '19
Get back to hell!
2
u/[deleted] Dec 23 '19
Good damn it!! Where's my shotgun?
2
u/blahblah2016 Dec 23 '19
Assuming Application is a class you wrote, could all that just not be done in the dtor?
2
u/[deleted] Dec 23 '19
Thank I hate it
2
u/Mazafesio123 Dec 23 '19
This offends me more than it should
2
u/danceau Dec 23 '19
How is this pleasing??
2
u/ABoxOfWaffles Dec 23 '19
I'm new to programming as I'm still in school and don't have a lot of time learning more than I do at school. Can somebosy explain what's wrong?
2
u/[deleted] Dec 24 '19
Haha I remember doing this back in my graduation exam. Sadly, no teacher noticed it.
2
u/PtboFungineer Dec 24 '19
And The Purge shall begin with u/mangoesaresuperior ...
2
u/robo_number_5 Dec 24 '19
Not having {} braces makes code harder to read change my mind
3
u/The__Odor Dec 23 '19
I write Python
this looks great
2
u/[deleted] Dec 23 '19
uwu
0
u/wolxfer_gaming Dec 23 '19
I'm sorry. Is this some sort of programmer joke i'm too dumb fuck to understand
1
u/SifrilGames Dec 23 '19
r/thanksihateit/
1
u/Brutus_Anon Dec 23 '19
Leave this sub and never come back
1
u/[deleted] Dec 23 '19
OH GOD OH FUCK MY EYES
1
u/[deleted] Dec 23 '19
You little s.... Didn't see the horror at first and was wondering why everyone is freaking out
Please stop
1
u/Jormundurok Dec 23 '19
AAAAAAAAAAAAAAAAAAA
1
u/slipped_and_missed_x Dec 23 '19
Thanks, I hate it!
1
u/qwazwak Dec 23 '19
NO NO STOP WHY FUCK NO NO NO I HATE THIS SO MUCH
1
u/n_slash_a Dec 23 '19
Go home Satan
1
u/[deleted] Dec 23 '19
M'input tips fedora
1
u/neil3108 Dec 23 '19
You ruined my holidays thank.
1
u/Armster15 Dec 23 '19
r/madlads
1
u/mildysubjective Dec 23 '19
has anyone told you that your actions have consequences?
1
u/cp_simmons Dec 23 '19
At least you don't have to worry about the whitespace.
1
u/reptop Dec 23 '19
........please no
1
u/Sourcerful Dec 23 '19
Jesus christ
1
u/ghoebious Dec 23 '19
You keep using that word... I don't think it means what you think it means.
1
u/CigsInsideBoi Dec 23 '19
Gross. Plz stop
1
u/DaMastaCoda Dec 23 '19
If(me.doesntlikethis) { Die() ;}
1
u/cheezballs Dec 23 '19
I feel sick.
1
u/RedditorNamedEww Dec 23 '19
Imma go kms real quick
1
u/grandpianotheft Dec 23 '19
could you script something that does just the brackets and semicolons automatically? I think so :)
1
u/Kadude27 Dec 24 '19
Dear god, I'm gonna puke.
1
u/[deleted] Dec 24 '19
Thanks, I hate it
1
u/Renoroshambo Dec 24 '19
You’re a freaking monster
1
u/wdciii Dec 24 '19
r/thanksihateit
1
u/VicariousRedditor Dec 24 '19
r/TIHI
1
u/kag0 Dec 24 '19
I'm pretty sure there's a compiler plugin/preprocessor that does this for C/++ and Java
1
u/chiligy Dec 24 '19
NO
1
u/Ailrk Dec 24 '19
tbh I would rather use curly brackets then changing line with a slash or leaving a dangling open parentheses. Indentation are overrated.
1
u/[deleted] Dec 24 '19
KMN
1
u/SpooderSpartan Dec 24 '19
I wish I could put this on cursed images, but they would not understand.
1
u/derMilchUndSaftMann Dec 24 '19
delet this
1
u/Blogos321 Dec 24 '19
I will literally hack into your computer and delete any files formatted like this
1
u/Darth-Wonka Dec 24 '19
I hope you get all the seg. faults
1
u/xesley-- Dec 24 '19
Lmaoooo this is hilarious
1
u/dahohawley Dec 24 '19
seek help
1
u/jurck222 Dec 24 '19
you dont need jesus you need the holy trinity
1
u/[deleted] Dec 24 '19
monster
1
u/Pacificrhat01 Dec 24 '19
Yeah 😁😁
1
u/koni_rs Dec 24 '19
I LOVE IT
1
u/beedlund Dec 24 '19
Omg just looking at that gives me shivers
1
u/slappster1 Dec 27 '19
As a python programmer, I’m out of the loop. Can someone explain why this styling is so hated?
1
u/JS_int_type Dec 23 '19
Wow an original meme,
I think it's actually more readable
1
u/[deleted] Dec 23 '19
Those missed brackets are going to be impossible to find. You should probably just use Rust
1
u/mbartosi Dec 23 '19
Listen here you little shit
0
u/sciortapiecoro Dec 23 '19
...... I like it.
-1
u/RedNutsBastard Dec 23 '19
Ooooh Boy, how many got triggered? I find this very amusing, and I'm a C# main.
-1
u/[deleted] Dec 23 '19
AAAAAAAAAAAAAAA
-1
u/[deleted] Dec 23 '19
u/programmerhorror
0
u/[deleted] Dec 23 '19
If it looks stupid but it works... Its not stupid? Hmm
0
u/[deleted] Dec 23 '19
I will find you. And I will kill you.
-1
u/[deleted] Dec 23 '19
Die
-2
u/shadow_destroyer217 Dec 23 '19
big brain
-2
u/iandl22 Dec 23 '19
Looks better than the php I write
-2
u/BTWIuseArchWithI3 Dec 23 '19
I like this codingstyle although it's not very applicable in real code
-2
u/emceeRin Dec 23 '19
Sorry idgi
-4
u/Perrydiculous Dec 23 '19
Why is everyone hating on this? This looks like an insanely efficient way to ensure you're not forgetting any brackets/semicolons
0
u/[deleted] Dec 23 '19
[deleted] — view deleted comment
1
u/[deleted] Dec 24 '19
[removed] — view removed comment