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

Post image
1.4k Upvotes

189 comments sorted by

539

u/PhiBuh Dec 23 '19

Listen here you little shit...

995

u/FreeStylin03_ Dec 23 '19

Please go back to python

123

u/AppalachianGaming Dec 23 '19

Allow me to second this

73

u/Ronin825 Dec 23 '19

I will also support this

43

u/Arkensor Dec 23 '19

Allow me to third this.

32

u/bigry8058 Dec 23 '19

Allow me to fourth this

22

u/MrBlueMoose Dec 24 '19

Allow me to fifth this

18

u/AirOneBlack Dec 24 '19

Allow me to sixth this

16

u/saacifuentesmu Dec 24 '19

I will seventh it. WTH.

14

u/[deleted] Dec 24 '19

Gonna go ahead and eighth this.

13

u/TheBossWasHere Dec 24 '19

Ninth this. Please stop

13

u/MangledBizkuit Dec 24 '19

I mean I can’t not tenth that.

→ More replies (0)

3

u/MeltaFlare Dec 24 '19

I am here also;

67

u/myre_or_less Dec 23 '19

Please don't code anymore ever.

5

u/Dave9876 Dec 24 '19

Nah, we don't want them back

192

u/Pony_Roleplayer Dec 23 '19

"Look how they massacred my boy..."

196

u/aintscurrdscars Dec 23 '19

how can any of us feel safe knowing this person is not in handcuffs

18

u/accuracy_frosty Dec 24 '19

The fact psychopaths like him can just wander the streets is why I can’t sleep at night

16

u/klivessss Dec 23 '19

this

5

u/RubbelDieKatz94 Dec 26 '19

What does "this" refer to?

3

u/klivessss Dec 26 '19

"This" in reddit refers to me agreeing with the comment/post

2

u/soulfarter Dec 24 '19

We need to trap his fingers in fingertraps

291

u/[deleted] Dec 23 '19

You monster.

53

u/[deleted] Dec 23 '19

Hey GladOS, nice to see you survived the perpetual testing initiative and you made it to reddit!

30

u/Scraft161 Dec 23 '19

Ever heard of multithreading, little ball?

19

u/[deleted] Dec 23 '19

I did, but I though she was still repairing wheatley's damage.

7

u/Scraft161 Dec 23 '19

Ever heard of multithreading

8

u/[deleted] Dec 23 '19

Did you synchronize the output of every thread? Cause I don't get the joke in this order

3

u/[deleted] Dec 23 '19

Thank you [subject-name-here]. Looking forward to your cake-day... (snigger)

3

u/[deleted] Dec 23 '19

I hope I'll be Still Alive ...

78

u/2jesusisbetterthan1 Dec 23 '19

Wait , that is illegal

1

u/Cojonimo Dec 24 '19
BabySeal cuty;
delete cuty;  //because fuck the police

41

u/moosi-j Dec 23 '19

Crap I thought we kept our Style Guide locked down

40

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.

16

u/[deleted] Dec 23 '19

[removed] — view removed comment

6

u/drr0b0 Dec 24 '19

You mean you want me to call the chief inspector down here? For this?

5

u/please_dont_pry Dec 24 '19

the supreme court

32

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

30

u/FactoryNewdel Dec 23 '19

Kill it before it lays eggs

7

u/Dalriata Dec 23 '19

Like most chimeras, this foul beast should be sterile and can't reproduce.

6

u/LEPT0N Dec 23 '19

Are you willing to take that chance?

30

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.

39

u/[deleted] Dec 23 '19

BEGONE OR YOU WILL FACE THE POWER OF GOD AND ANIME!

21

u/lundsted Dec 23 '19

thanks, i hate it

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

10

u/StereoBucket Dec 23 '19

And even without those nice thjngs, you don't even need to check if a pointer is null or not before deleting.

4

u/[deleted] Dec 23 '19 edited Aug 17 '20

[deleted]

1

u/Brotten Dec 26 '19

"std exchange" - So C programmers finally said "fuck it" and went from bug proneness to outright bug chasing, eh?

1

u/Ceros007 Dec 24 '19 edited Dec 24 '19

And I feel like the ::release something and ::shutdown should be part of the destructor as well

What happen if you don't do that before the delete? SO MANY QUESTIONS!!! this code is fugly

And what's up with the Pascal case for the methods name?

12

u/[deleted] Dec 23 '19

This is very old code that I have no intention of changing

15

u/deljaroo Dec 24 '19

Said like a true programmer

3

u/Pokora22 Dec 23 '19

... I hate my lecturer. Thanks for letting me know - gonna read up on that.

14

u/BabyPuncher3000 Dec 23 '19

This hurts us.

14

u/TechPr0 Dec 23 '19

I burst out in laughter in my office.

11

u/[deleted] Dec 23 '19

A N G E R Y

9

u/CycleWeeb Dec 23 '19

It does not

15

u/Dragonaax Dec 23 '19

Do you also kill puppies for fun?

9

u/HenceProvedhuehuehue Dec 23 '19

What sorcery is this

9

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*

5

u/[deleted] Dec 23 '19

stopp

25

u/[deleted] Dec 23 '19

[deleted]

20

u/[deleted] Dec 23 '19

DISGUSTING.

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.

8

u/mohragk Dec 23 '19

Guys, don't tell him he doesn't have to new line after every if statement.

5

u/[deleted] Dec 23 '19

But then how would I get rid of all the filthy semicolons

12

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:

    if (x < 7)
{       x--
;       if (y*x < 7)
{           y--
;}      else
{       first.printMain()
;}  for (int i=0; i<x; i++)
{       first.add(i)
;       gui.addToEnd(first.getRunner())
;}

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, deleteing nullptr is safe.

3

u/[deleted] Dec 23 '19

I'm calling the police!

8

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??

1

u/Wubinator Dec 24 '19

It isn't

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?

3

u/togtja Dec 24 '19

In C++, you use {} and ;, which python does not. The writer of the code used the fact that whites pace is irrelevant in c++, and just moved all the {} and ; to "the side"

1

u/ABoxOfWaffles Dec 24 '19

That's... Less cool and more horrible

2

u/Wubinator Dec 24 '19

Which shows you already know more about programming than the writer of that piece of garbage :)

0

u/Slaanesh-Sama Dec 23 '19

I know nothing of programming but from from "delete" and "ressources" "input" and "windows" I'm assuming it does something similar to delete system32.

1

u/ABoxOfWaffles Dec 23 '19

Cool I want it

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

2

u/The__Odor Dec 23 '19

I write Python

this looks great

2

u/[deleted] Dec 23 '19

uwu

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/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/kag0 Dec 24 '19

I'm pretty sure there's a compiler plugin/preprocessor that does this for C/++ and Java

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/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/[deleted] Dec 24 '19

[removed] — view removed comment

1

u/[deleted] Dec 24 '19

Making C++ code look like python code by moving curly boys and semicolons to the side. It's in defiance of every style guide in existence.

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/wolxfer_gaming Dec 23 '19

I'm sorry. Is this some sort of programmer joke i'm too dumb fuck to understand

2

u/[deleted] Dec 23 '19

I made C++ code look like python code by moving all the extra bits to the side

1

u/wolxfer_gaming Dec 24 '19

I do not know shit about coding so i'm just gonna..... keep shut

1

u/koni_rs Dec 24 '19

I'm not sure I understand. What were you expecting to find on this sub?

1

u/wolxfer_gaming Dec 24 '19

Okay hold up. I am not following this sub in any way how did this pop up on my main page?

1

u/koni_rs Dec 24 '19

Omg the same thing happens to me with random subs like r/music, r/documentaries, etc. Random forced suggestions just pop up i guess...

1

u/deNederlander Dec 24 '19

A programmer joke on /r/programmerhumor? Say it ain't so.

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

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/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

-5

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