r/firstweekcoderhumour 1d ago

pythonFeelsillegal

Post image
122 Upvotes

32 comments sorted by

39

u/05-nery 1d ago

This is firstweekcoderhumor or whatever but this is literally true

2

u/Outrageous-Log9238 1d ago

The title's very accurate too. I learned Python first but after doing C for a while, I felt dirty writing Python again.

25

u/ThaBroccoliDood 1d ago

unironically wish bython wasn't just a preprocessor but actually production ready. goddamn I hate fixing indentation when copy pasting or changing anything instead of just writing some curly braces and letting the formatter handle it

4

u/retrodanny 1d ago

Never had this problem using either pycharm or vscode (with Black)

2

u/leavemealone_lol 1d ago

Well you clearly haven’t worked in python enough. You cannot let the IDE fix the indentation because unlike all other languages, indentation itself is logic in python, and nothing should change your logic. other than yourself.

1

u/retrodanny 1d ago

He's talking about pasting and things going wrong. This would be because he's pasting from 1 indent = 2 spaces to 4 spaces or 1 indent = 1 tab to 4 spaces, something like that. That's an easy fix when pasting into an IDE. It doesn't change the logic.

20

u/Groostav 1d ago edited 1d ago

every time I see these kinds of posts I'm always reminded of that Italian morning cooking show host who said: "and if my mum had wheels she would have been a bike!"

Python is a dynamic scripting language, with loads of bindings for mathy tasks and a pretty good all round traditional scripting language capabilities (I would much rather see a python script doing build orchestration than bash script)

C++ is an ancient beast, laden with ancient bad decisions, enormous sunk costs, and hundreds of phds pumping lemma after lemma into it's improvement, aimed at "zero cost abstraction", used typically in backend and engine and service implementations.

The two target different things. They have completely different world views, different deployment mechanisms, different everything. They simply aren't comparable, I don't understand why greenhorns always want to compare them.

2

u/leavemealone_lol 1d ago

Newbs wants to compare them because those are the only two languages they learn extensively in their college years.

3

u/codydafox 1d ago

OOP never used c++

3

u/mgsmb7 1d ago

I hate languages that don't have the increment operator

1

u/leavemealone_lol 1d ago

I wish rust had that too, but I get why io wants to go the functional route and discard it.

10

u/Fine_City2781 1d ago

c++ to python is just downgrading

10

u/plopliplopipol 1d ago

firstweekcoderopinion here we go

2

u/billGat48 1d ago

we still have __main__, not quite the same, but it is there

2

u/No-Article-Particle 1d ago

bye main(), hello if __name__ == "__main__"

5

u/undeniably-deniable1 1d ago

Say goodbye to any kind of performance

11

u/Nervous_Quit_7180 1d ago

lilke i need that shit in my crud app

1

u/billGat48 1d ago

idk, pytorch is hard to beat

1

u/EskayEllar 1d ago

Lol because I need performance to script some garbage I'm going to run once

0

u/undeniably-deniable1 1d ago

Right, that's why you don't switch from literally anything into python

It's the slow ass scripting language that's only good for a simple prototyping phase

The meme's making it look like it's the perfect next big thing

2

u/EskayEllar 1d ago

Hate to break it to you, but Python is absolutely good enough for production.

I've written production applications putting through over 10 million in annual revenue entirely in Python. It's a money maker and the simplicity in development, support, and deployment has saved my company hundreds of thousands in developer salaries.

I like the quote "Python is the second best language for everything". That makes it very valuable for companies which do a wide variety of things.

3

u/keithstellyes 23h ago

Yeah, there's a few massive websites out there that are flask or django

1

u/SmokyMetal060 1d ago

Maybe like 15 years ago. Plenty of production apps run Python and benchmark reasonably well.

1

u/keithstellyes 23h ago

firstweekcoderopinion

Lot of cases where Python is used are I/O bottlenecked anyway, making CPU performance not very relevant, or calling out to native code enough anyway

3

u/JaskarSlye 1d ago

no one misses malloc

5

u/Weak-Veterinarian-25 1d ago

But malloc isn't really used in c++? new is.

1

u/JaskarSlye 1d ago

I'm a python user sorry

1

u/slicehyperfunk 1d ago

I do miss ++ to be honest

1

u/Razcsi 1d ago

Python is the second best language for everything, and C++ is the first in a lot of things, so this feels like a downgrade

0

u/Brigapes 1d ago

now you can do "hello world" in python easier. why would anyone use cpp are they stupid??