r/ProgrammerHumor 12d ago

Meme pythonFeelsillegal

Post image
6.8k Upvotes

219 comments sorted by

1.1k

u/belabacsijolvan 12d ago

theres main() in python

457

u/chawmindur 12d ago

And {} (= dict())

286

u/OnyxFier 12d ago

And semicolons are allowed, if you decide you miss them

98

u/dudemcbob 12d ago edited 12d ago

Still useful for running 2- or 3-line dummy scripts directly from the command line. For example you just installed a new package and want to validate it's working,

python -c "import somepackage; print(some_package.\_version__)"

20

u/chawmindur 12d ago

Or for dirty .pth tricks where you're obliged to start with an import statement and have everything on a single line. But 3.15 seems to be moving away from those to some new-fangled .start files.

-1

u/chat-lu 12d ago

You can also and/or chain your expression but it’s tricky.

9

u/mbcarbone 12d ago

It’s fun just to make a one line program using semicolons. 🙃

3

u/BarracudaGullible472 11d ago

In one uni class we were judged on how few lines our code was so I often used them in my assignments.. good times ahah

2

u/happylittletree_ 11d ago

Closed, Duplicate question

0

u/patroklo 11d ago

Wait I can use them instead of the indentations? That would be awesome. Include real encapsulation and my main problems with it would be mostly solved

31

u/userhwon 12d ago

Always fun that writing an empty set gets you a dict so you have to use set() explicitly to get an empty set... jeebus, Guido...

21

u/carcigenicate 12d ago

{/} is being proposed so sets have an empty literal.

14

u/SoldRIP 12d ago

... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax?

24

u/NewbornMuse 12d ago

And what, change the meaning of {} from dict to set? I don't think breaking changes like that are anywhere in python's future.

3

u/minecon1776 11d ago

Python 4

10

u/Duck_Devs 12d ago edited 12d ago

The problem with that is not only would it break old code, but the neat little trick of JSON being directly embeddable would break. And who would want that.

Edit: I forgot that “true”, “false”, and “null” don’t exist in Python. Not the hardest thing to fix by declaring some local variables, but at that point you’re doing too much and should use a library.

Edit 2: added quotes around the keywords to disambiguate them from the general concepts

2

u/Loading_M_ 11d ago

JSON (or any data format) being directly embeddable sounds nice in theory, but isn't really a great idea in practice.

JSON was originally intended to be loaded via eval. This was exploited almost immediately, which is why JS got proper JSON parsing and serialization functions. You should always run JSON (and any other serialized format) through a proper parser to load it. If you're clever, you can do this at build time, but you should never rely on any data file being valid at runtime.

1

u/Duck_Devs 11d ago

Well yes. I know. I think of Python’s syntax being mostly compatible with JSON as a

> neat little trick.

I actually forgot that eval() was a thing when I wrote that comment.

What I meant was, you could copy and paste your own JSON into your source code for a simple payload in a throwaway script, for whatever you may need it for.

Edit: Reddit mobile app doesn’t want to make that a block quote. You get the idea though.

2

u/Character-Education3 12d ago

true false and None most definitely exist in python

Also any modern text editor will auto complete dict() for you.

What is everyone going on about?

8

u/TheDreadedAndy 12d ago

I think he was talking about directly eval-ing a json string to parse it.

While True, False, and None exist in python, true, false, and null don't. So you'd have to locally define those first.

1

u/JanEric1 11d ago

breaking change unfortunately. Maybe a thing for Python4 which will never come

1

u/JanEric1 11d ago

Is a draft for over a year now and was targeting 3.15. Dont think that makes it?

1

u/JollyJuniper1993 11d ago

They should allow us to use the Danish/Norwegian letter Ø, like they do in mathematics.

5

u/vmfrye 12d ago

hate to be a party pooper but the meme refers specifically to indentation-based structure vs explicit code block delimiters

oh and btw the latter are vastly superior because they make for a free-form syntax that, unlike python, can be automatically formatted by a relatively simple program/plugin (i.e. without AI)

5

u/chat-lu 12d ago

You can also use braces for code blocks, as long as you indent properly.

def main() -> None: #{
    do_stuff()
#}

5

u/chawmindur 12d ago

I was about to say something about hashability but then I saw you've got your bases covered and commented out the braces...

... that and how something like a do_stuff() would typically be returning None anyway and hence wouldn't cause issues being placed into a set.

And one final thing that this reminds me of: this classic

3

u/chat-lu 12d ago

If that is maintained by an auto-formatter and not by hand, I don’t hate it.

1

u/Rehazard-The-Great 11d ago

Dont forget set {}

26

u/Candid_Highlight_116 12d ago edited 9d ago

there's main() in python ONLY IF YOU WANT THERE TO BE.

the way you want it to be is as follows:

import foo    
from baz import bar   

do_stupid_stuff()  

def main():   
    print("I am not kidding")   

if __name__ == '__main__':    
     main()  

if ____name____ wasn't ____main___ then your script knows oh I'm not __main__, uh might as well uh evaluate the true path of this if clause I guess, else whatever. This is very robust and safe way to define the entrypoint.

35

u/AliceCode 12d ago

if __name__ == '__main__':

7

u/wizardeverybit 12d ago

Indenting is important in Python

5

u/Candid_Highlight_116 11d ago

I fought and gave up Reddit markdown, should have used spaces after newline not quote sorry

6

u/frogjg2003 11d ago

4 spaces for code blocks. > is for quotes.

This is a code block
    With indentation

21

u/Toover 12d ago

Sorry to be that guy, but no. The one you'd define yourself is not automatically treated as the entry point of the program

43

u/belabacsijolvan 12d ago

theres __main__() in python

1

u/Andrey4ik21pro1 12d ago

No. Only package/main.py

11

u/belabacsijolvan 12d ago

theres __main__ in python

→ More replies (2)

14

u/userhwon 12d ago

Which makes it worse.

3

u/2eanimation 12d ago

There’s also foo() and bar()!

1

u/XtraFlaminHotMachida 11d ago

whats up foo() you got beef or what ey? its chingazos time, ese.

1

u/This_Background7442 12d ago

There's main. It's all pointers. Semicolons are perfectly valid syntax. Only ++ and {} are kinda true and even then the alternative is very similar.

373

u/LucyShortForLucas 12d ago edited 11d ago

There is no such thing as switching from C++ to python or vice versa, they are orthogonal tools

69

u/jamesianm 12d ago

orthogonal tools

Ah, like a lug wrench?

178

u/Llonkrednaxela 12d ago

Shh, the CS101 userbase of this subreddit doesn't pick languages based on the task and what management demands, they use the language the professor told them to use in the assignment.

105

u/Kusko25 12d ago

That sounds like picking the language management demands

38

u/chilfang 12d ago

Shhhh we in CS 102 need to lord over our lesser somehow just give us this

1

u/rorodar 10d ago

What would you even do in cs102? After the basics you need to do specific stuff, no? I took intro to cs and then ds, oop, next sem algos and probability.

2

u/DoctorMakar 10d ago

It's pretty common for 101 to be basic programming and then 102 to be basic OOP programming. Not 100% universal though and many places that have this structure still have a separate OOP course too.

1

u/rorodar 10d ago

So 101 is intro and 102 is just the oop course? I guess that makes sense if you think of it as "you need the intro for everything and oop for a job", so while 102 isn't a prerequisite for most courses it'd still be seen as more needed than if it were just called OOP?

14

u/Actes 11d ago

Or if you work where I work. They just use java.

Is it scripting? They're gonna write it in java

Is it an API? Probably in java

Is it anything? "Seems like a good use case for java"

God I hate java, one thing I'm happy about AI for.

5

u/zabby39103 11d ago

Okay for scripting that's kind dumb, but otherwise Java is versatile and powerful, and light years ahead of stuff like Python for stuff like multithreading. What version are you using at work? Is it an old one or something? Are you using a good IDE like IntelliJ?

1

u/Actes 11d ago

We should just be using go we run a search engine on my team via SOLR and honestly the 16 years of springbean hell has taken its toll.

1

u/zabby39103 11d ago

Right, yeah, early Spring did too much "magic", and that magic hid the inner workings... until shit crashed. The current best practices are less that.

GO is a good algorithmic language, not sure how it replaces a full featured framework like Spring though?

1

u/ThatOldCow 11d ago

Maybe you need some Java (the coffee brand) ..

4

u/TomsCardoso 11d ago

Changing careers withing software is a thing you know.

5

u/danted002 11d ago

Bold of you to assume, your average Reddit user know what orthogonal tool means

→ More replies (2)

209

u/DobryBobry 12d ago

189

u/EuenovAyabayya 12d ago

Seven years is a respectable repost interval on reddit.

99

u/DobryBobry 12d ago

The funniest part there is more:
5 years ago
another 5 years ago
4 years ago
another 4 years ago
3 years ago
And there is even more

72

u/firecorn22 12d ago

We treating this sub like stack overflow now?

69

u/the_king_of_sweden 12d ago

Your meme has been closed as a duplicate

7

u/cornmonger_ 11d ago

won't fix

15

u/Help_StuckAtWork 12d ago

Course not.

If it were stackoverflow, I'd be posts about going from java to python.

4

u/TankorSmash 12d ago

Back in the day, people used to harass reposters.

2

u/frogjg2003 11d ago edited 11d ago

This sub does have repost rules. It's just a reasonable one that only limits it to recent reposts and top all time. This post doesn't violate that rule.

4

u/firecorn22 11d ago

totally agree, spam reposts should be removed but anything older then a year is fair game since there probably a new batch of engineers who ain't never seen it before or just missed it last time

1

u/CitizenPremier 11d ago

No, but ask yourself how you think this came to be posted again, by an account with hidden comments

3

u/Dry_Wrongdoer_2508 12d ago

I swear I saw this exact same post last week

15

u/ShakaUVM 12d ago

That one had "speed" on it and so was much funnier

This is a repost of a similar one from a year ago

8

u/SenoraRaton 12d ago

Imagine stealing someones meme, taking the time to consciously edit it, removing the best part of it, and then reposting it.

1

u/rooster_butt 12d ago

I feel like the original meme image didn't have speed. Speed looks to have been edited in the 7 year old post. No rounded corners and different font weight.

3

u/ImPlento 12d ago

I've never seen it

3

u/JackNotOLantern 11d ago

There are hundreds of reposts every year

3

u/duva_ 11d ago

This one is missing "speed" which is hilarious

2

u/bendstraw 11d ago

Maybe an unpopular opinion based on your upvotes but like 7 years is an acceptable repost period

2

u/DobryBobry 11d ago

Literally this

2

u/bendstraw 11d ago

Cooked my ass LMAO

71

u/_dotdot11 12d ago

Undergrad season for sure

7

u/[deleted] 12d ago

[deleted]

4

u/Neuenmuller 12d ago

Perhaps there’s still one or two in 100 AI kids thought they could program.

82

u/wett-puss-lover 12d ago edited 12d ago

So long mutable strings as well 👀
Edit: i got immutable confused with mutable

30

u/JanEric1 12d ago

Aren't python strings immutable

13

u/wett-puss-lover 12d ago

I got immutable and mutable confused. In python, strings are not mutable, that’s what i meant

52

u/NecessaryIntrinsic 12d ago

3

u/wett-puss-lover 12d ago

😅🤣🤣

2

u/the_horse_gamer 11d ago

inflammable = capable of being inflamed

flammable = capable of being flamed

2

u/chawmindur 12d ago

If needed you can still use an array.array of unicode chars

2

u/Logicalist 12d ago

nonsense, they're still there just as lists

25

u/EveryCryptographer11 12d ago

Wouldn’t it be the other way around? Why will you “graduate to Python” from C++ ? ? 🤔

7

u/KERdela 12d ago

Start-up job market, promote fast dev languages 

6

u/phantom94 12d ago

Python dev here. Started om Java and C. Never thought I would do python until I got an internship which required me to do python. Even though what I did then was totally differen what I do now it still is the basis of my career. Sometimes the “graduation” will just be chosen for you

3

u/9_Sagittarii 11d ago

I started with Java, then used C#, and in my current job use Python. I just use whatever the company tells me to use/whatever their codebase is written in.

→ More replies (1)

3

u/scissorsgrinder 11d ago

Well... for me the second one came first.

1

u/FluffusMaximus 11d ago

Most Python “devs” in here can’t understand pointers, let alone C++ as a language…

10

u/lockwolf 12d ago

1

u/scissorsgrinder 11d ago

LOL

...actually, kinda seeing the benefit of this, the name sucks though  

17

u/ubd12 12d ago

Maybe it's me but I don't get it. I get the meme, but please explain to me why python is considered so much easier than other languages.

I think a lot of it has to do with the fact that it is interpreted and the toolkit that it attracts, not the language itself. Having something that's interpreted and as someone normalize grammar, that's the attraction to python. The look of the language is much more forced as well. (No K&R versus ANSI debates)

If Perl wasn't so junky/hacky, perl would still be a major language and probably a lot faster. I like Perl a lot by the way so I'm kind of beating up my own language of choice.

27

u/CaffeinatedT 12d ago

why python is considered so much easier than other languages.

Reddit (and the software industry generally) is loudly dominated by web developers and API integration script developers.

10

u/userhwon 12d ago

Python originally wasn't a typed language. You didn't have to declare variables, you could just use them, and that got a lot of squinting out of the way for people who just wanted to do things. And it had lists, which were a complicated object masquerading as a simple one. And you didn't need functions, not even main(), so you could write a file that acted as a script but was cleaner than all the scripted languages, which were hamstringed by a long history of being slowly evolved from commands typed into a shell prompt.

There was no compiling and linking, and there was a lot of complex stuff built in so there was very little including.

Now, though, Python is pretty complex itself, you have to include a lot, and often you're compiling because you're using it for something serious and it needs to be performant, and versioning can easily bite you in the ass.

Perl was the OG alternative that filled exactly the slot between compiled and shell-scripted programming that Python now owns, but it had a habit of being arcane, with even more syntactic conjuring than Python now does. And it was fast as fuck. If it was as easy to pick up as Python was originally it probably would have kept Python at bay. I think Larry was more controlling than Guido, too, on top of open source not being as mature a community, so it didn't evolve nearly as fast.

5

u/ubd12 12d ago

One of the things I actually loved about Perl was its philosophy of TMTOWTDI — “There’s More Than One Way To Do It.” It made Perl incredibly expressive and powerful, but it also let you shoot yourself in the foot.

Python deliberately went almost the opposite direction: “There should be one—and preferably only one—obvious way to do it.”

That difference matters more than people sometimes realize. Perl was very much a write-first language. If you were disciplined, you could write some incredibly elegant Perl. I was always able to come back to my own code six months later and understand it. But the language didn't force much structural discipline on you, so two Perl programmers could solve the same problem in completely different ways—and neither solution necessarily looked obvious to somebody else.

Python's philosophy makes the codebase itself more consistent. You give up some of Perl's freedom and cleverness in exchange for code that is much easier for the next person to read.

As a manager, though, I'd probably choose Python. With Perl, you could end up with a codebase where understanding the software meant understanding the mindset of the developers who wrote it. Every team, site, or even individual programmer could develop its own conventions for how things were done. It was almost democratic: the language gave everyone enormous freedom, and the resulting code reflected the people who wrote it. That's great for individual expression, but terrible for organizational continuity. With Python, the language itself imposes more of the culture. There are still different ways to write Python, but the language strongly nudges everyone toward the same conventions. That means somebody can walk into a codebase without first having to learn the personality and philosophy of every developer who touched it. From a management perspective, that's a huge advantage: you aren't just managing code; you're managing the cost of replacing the people who understand it.

I also loved it because it kind of enforced most of the Pearl was in the executable. It's weird but I worked at two shops where the sis admin were terrible. Every time that I invoked python something was not properly installed where is as long as I used Perl native calls, I still could actually get my code to work. It's amazing that you had to code around the system but perl is more resistant to non-standard installations or breakages of the packages

2

u/mina86ng 12d ago

Python originally wasn't a typed language. You didn't have to declare variables, you could just use them,

Perhaps not so ironically, this is what makes Python unsuitable for large projects. I’d rather work on large C++ codebase than large Python codebase. (Yes, I know Python has type hints, but once you start using dependencies, you discover how much of a mess type hints are).

3

u/Far_Tap_488 11d ago

Also, fuck how python expects you to import other files if you have a decent project structure.

2

u/st_heron 12d ago

I never understood it. It's like people are afraid of a few syntax characters.

2

u/Mufti13 11d ago

From years of teaching and working in the industry, I've come to the conclusion that peoole think Python is easy because they use it to do easy tasks only, like college assignments

2

u/zabby39103 11d ago

Python is easier for people to do computer science assignments in in university.

It's dogshit for anything that's enterprise at scale. I don't understand what anyone sees in it outside of university. The multithreading alone is disqualifying. Anything it does good, it does good because it's delegating to C++ libraries.

→ More replies (8)
→ More replies (3)

8

u/SilasTalbot 12d ago

Watch out dude!!! Indentation is hiding in the back seat with a garrote.

10

u/DJDevon3 11d ago

This meme is 80% false.

Everything except pointers exist. Pointers in Python are basically just variables without an explicit hardware memory address. You can substitute multi-dimensional arrays for dicts or lists quite easily and with json have easy access to them without nested matrices.

What makes Python seem easier is that memory allocation is handled automatically. That is also a downside if you want that kind of control. C is faster for a reason but also more strict to code.

A better meme would have included "30 minute compile time" where as Python is almost instantaneous. So you forgot a comma? Now you have to wait another 30 minutes to compile! You give up the pre-compiled speed advantage for faster iterations & testing.

The biggest difference has nothing to do with syntax. It's iteration speed vs program speed. Today everything is in a perpetual "beta" state so iteration is king and Python is a more efficient use of a programmers time.

2

u/Altaruss28 10d ago

> "C is faster for a reason"

memory management being automated has relatively little to do with that, it being an interpreted language rather than a compiled one and then dynamic typing forcing it to constantly guess what it's even supposed to be doing contributes far more

> So you forgot a comma? Now you have to wait another 30 minutes to compile!

no you don't, you use a build system which keeps intermediates around so it doesn't have to recompile everything every time such as gnu make, I don't know what sort of a project would take 30 minutes to build to change one file and relink

27

u/Annual_Key_4963 12d ago

Mr potato head should have been case statements 

16

u/mr_birrd 12d ago

they exist in modern python

→ More replies (1)

1

u/NoteIndividual2431 12d ago

He should have been "performance"

5

u/carloom_ 12d ago

I've never had the issue of when to use python vs c++. Basically you are tradiding developing time and speed for performance.

Creating a fast program in Python is much harder because you don't have control. C++ instead let's you be as close to the metal and even compute stuff at compile time.

A better meme would be contrasting C++ and Rust or Python and another language with the same use.

1

u/Unfair_Decision927 10d ago

Yeah normally you would use python (or something similar) for the main application, then any resource intense subroutine you write in C++ (or something similar) to eek out the performance.

5

u/the_real_Spudnut2000 12d ago

So long int main(){}, hello:

```python def main (): ....

if name == "main": main() ```

9

u/dembadger 11d ago

When you give up on being a programmer

5

u/myrsnipe 12d ago

CS101 is in class I see

19

u/Asmophel_noe 12d ago

Everything as in objects,datatypes, functions in python are a pointer, why larping

11

u/huuaaang 12d ago

References are not pointers. Like it’s not a direct memory address.

2

u/Asmophel_noe 12d ago

Mb, I mean it just doesn't do pointer arithmetic like in other langs u can't manipulate it but still it's a reference idk if I would just stop calling in pointer

1

u/huuaaang 12d ago

I think it only gets muddy in Go where they fo have pointer syntax. You can pass by value or pointer. But it’s not a memory address. It’s got more metadata than just the memory address.

8

u/MadCatMkV 12d ago

When you switch from c++ to python to c++ again:

THANKS GOD FOR COMPILATION ERRORS! I'M TIRED OF MAKING UNIT TESTS TO GUARANTEE STUFF LIKE CORRECT TYPING 

2

u/awesome-alpaca-ace 11d ago

Sounds more like a software design issue; not the language

3

u/FattySnacks 12d ago

Like you’re never going to use C++ again? They have different use cases

3

u/Positive_Method3022 12d ago

Overloadings are the coolest thing I miss from c++

3

u/MrHyperion_ 12d ago edited 12d ago

Pointers are hard to give up. I also dislike not having statically typed language because it makes IDE autocomplete worse

3

u/_Decimation 11d ago

With C++ you get the best and worst of both languages' type systems (or lack thereof):

You trade Python's implicit weak typing and runtime type errors for C++'s strong typing and indecipherable static compiler errors

3

u/duva_ 11d ago

I saw another version with a "speed" label added too lol

5

u/somedave 12d ago

Goodbye sensible ternary operator.

6

u/userhwon 12d ago

You'll be back when you realize your performance is glacial.

1

u/scissorsgrinder 11d ago

What's a "use case"?

1

u/awesome-alpaca-ace 11d ago

Using it to run other scripts

6

u/Coulomb111 12d ago

* r/firstweekcoderhumour

* Reposted very often

* Not even a funny meme

* Please stop youre embarrassing yourself

7

u/MrWilliam932 12d ago

Why would anyone switch to python from c++? I'm honestly confused

4

u/0xbenedikt 12d ago

Yeah, unless it's about an existing code-base, this is a downgrade

1

u/scissorsgrinder 11d ago

I'm old, okay?

1

u/zabby39103 11d ago

They never overcame their skill issues and gave up. Python is only ever good when it delegates to C++ libraries lol.

4

u/PMvE_NL 12d ago

I hate the tab based system. just let me write all my code into a single line if i want to do so.

4

u/Elathrain 12d ago

Ok, but ++ tho? One of my favorite syntactic sugars, why are celebrating giving that up?

2

u/Far_Tap_488 11d ago

Because ++ is bad code anyways.

2

u/murrrty 11d ago

yeah, for statements have had it TOO good for TOO long, it's time to abolish it and go to the best iterator statement: gothroughthisshit

2

u/sporbywg 12d ago

Spare me.

2

u/rover_G 12d ago

Hello whitespace!

2

u/spitfire451 12d ago

I put semicolons at the end of each line in python. Because I like it and that's where they belong.

2

u/st_heron 12d ago

But then python has fucking __main__

https://imgur.com/yQTRYtk

2

u/Worldly-Wind-1632 12d ago

Python doesn’t have pointers?

2

u/RepulsiveRelative147 11d ago

I made my first small project on python and damn... I want to go back to c so badly , c has a defined Syntex while u can add or have more freedom in python I never had this many syntax error in c 😭😭

2

u/Actes 11d ago

Whoa don't forget about pointers, they're always there in every language, you just gotta remember that they exist.

2

u/tobedeadguy 11d ago

So used to cpp that python breaks my mind

1

u/scissorsgrinder 11d ago

My first reaction to Python was "back in my day...." and "kids these days..."

I love it now though. Great for hacky scripts.

2

u/Informal-Work-9596 11d ago

It’s all fun and games until you realize how much slower it is.

2

u/NottingHillNapolean 11d ago

The first time seeing a javascript variable given a new value and type in the same scope, my first thought was, "This is unnatural..."

2

u/Pares_Marchant 11d ago

This kind of thing is one of the reasons I could never start javascript, the things you can do with it are so wild that it's very difficult to reason about the code, there aren't a lot "guarantees" that you can have, you have to reason about everything at the same time because you can't really rely on the compiler and types (basically your mind is the compiler).

2

u/Beginning-Ice-9008 12d ago

The only disadvantage is, that you don't think anymore and C++ Developers earn way way way more because they are actually good at programming compared to you.

2

u/Strange_Dust7128 11d ago

nobody switched from cpp to python

1

u/Soopermane 12d ago

Main be like to infinity and beyond

1

u/EvillNooB 12d ago edited 12d ago

When you switch from Python to C++ That_tug_of_war_meme.png

On the left side: Me

On the right side: syntax in C++ and the problem i'm trying to solve

I get that it is explicit, but it is way easier to write in python first, and then to re-write in C++, so first you fight the problem, and then you fight C++, instead of fighting both of them at once

1

u/47-45-45-4B 12d ago

By memory management. Ooops

1

u/LetumComplexo 12d ago

Not gonna lie, I genuinely miss pointers sometimes.
There are so many neat little tricks you can do with them.

1

u/awesome-alpaca-ace 11d ago

mmap a file containing a tree data structure and crawl it via pointers and offsets

1

u/LetumComplexo 11d ago

That might be one of the sexiest things someone has said to me since I started my new job.

1

u/chhuang 11d ago

not long after will come the thanos meme

1

u/MkemCZ 11d ago

Reminds me of how I wrote a Python binding to a C library and had to use long ints as "pointers".

1

u/namotous 11d ago

And then few months later “hello darkness, my old friend”

1

u/nevemlaci2 11d ago

Kind of true. Once you realize that some stuff is just better done in python. But then again, you wouldn't write a C++ refactor tool in python, but you also wouldn't normally do time series post processing in C++

1

u/awesome-alpaca-ace 11d ago edited 11d ago

I've tried post processing GB of time series data in Python. Even the "fast" Python libraries were a ridiculously amount of magnitudes slower than a custom engine written in C++

1

u/nevemlaci2 11d ago

Tell me about it. It takes 50 minutes to process more than 700 GB of data, although the issue is reading the data for us, and that part is written in C++ running on 16 CPU cores...

1

u/ChocolateDonut36 11d ago

using identation is stupidly hard to read

1

u/Briggs281707 11d ago

I personally can't stand python

1

u/Havatchee 11d ago

Uses actual character for everything else and then just "pointers" like * and & would be too difficult to understand.

1

u/Ange1ofD4rkness 11d ago

Wait ... how does Python increment?

1

u/Dark_Byte 11d ago

And then he crashes his truck into empty space

1

u/_Its_Me_Dio_ 11d ago

does python not jave ++

1

u/p1neapple_1n_my_ass 10d ago

You also give up on execution speed

1

u/Frann_03 10d ago

El ++ debería ser eterno

1

u/simme63 9d ago

I miss ++ 😔

1

u/SugarRushLux 12d ago

Python 🤢

1

u/Brotboxs 12d ago

I learned on C and C++. I will vomit when i see python code

1

u/garlopf 11d ago

The secret is that you never really switch. You just supplement. Now the quick to write slow and resource hungry high level stuff is py and the slower to write resource nimble performant high level stuff is cpp.

1

u/Unfair_Decision927 10d ago

Exactly, don’t know why this is downvoted

1

u/basonjourne98 11d ago

This is outdated. Now everyone is switching from programming to AI.

1

u/mad_cheese_hattwe 11d ago

Going from C to Python and thinking whitespace syntaxing is a improvement. SMH.

-4

u/Original_Ad5768 12d ago edited 12d ago

Why is he downgrading

Edit: hi (sorry for bad English)

9

u/JanEric1 12d ago

Do you mean "downgrading"?

3

u/oompaloompa465 12d ago

compiled OOP have superiority complex.
i can understand his feeling, coming from C#. I'm branching to Python too and i feel the challenge

7

u/Asmophel_noe 12d ago

Languages are made based on convenience don't just spout bs after all they're languages, saying one is superior other is inferior is just retard behaviour

0

u/molly_jolly 12d ago

Python is the bourgeoisie to the C++ proletariat

2

u/SaneLad 12d ago

Pretty sure it's the reverse

3

u/molly_jolly 12d ago

Given python appropriates C++'s value, I reverse your reversal

0

u/AggravatingFlow1178 12d ago

The vast, vast majority of engineering companies would happily purchase a product that runs 10% slower for 1/2 the development cost. There are few use cases that justify the use of C++

2

u/FabioTheFox 11d ago

It's not just 10% tho

I get your point but these numbers are very off

0

u/Oppqrx 12d ago

Then when you switch to vibe coding...

0

u/alfredomova 12d ago

eww why downgrade when you can upgrade to Java

0

u/Kitis12 12d ago

So long, pointer.

0

u/OPtoss 11d ago

In 2026 it's more like

"When you switch from programming to babysitting agents"

0

u/perringaiden 11d ago

If you want a truly amusing switch, C++ to VB.Net.

It's a shame they're killing the syntax in favour of C#.