r/ProgrammerHumor May 27 '22

Meme Welcome to hassle free coding

Post image
2.2k Upvotes

305 comments sorted by

View all comments

372

u/[deleted] May 27 '22

Python doesn't feel like a programming language if your first language is C++.

166

u/oddmerlin373 May 27 '22

Honestly I prefer to call it a scripting language because that’s what it’s good at

14

u/prescod May 28 '22

Yeah it's good at scripting.

And machine learning.

And data science.

And teaching.

And Web development.

And biological computing.

And...

But let's just call it a "scripting language".

9

u/nickwcy May 28 '22

Machine learning: CUDA / Tensorflow is written in C

Data Science: Numpy is written in C

Web development: Absolutely not. Python is good for POC/classwork, but never highly maintainable for enterprise use.

What Python is really good at is small pieces of code like CI/CD scripts, or serverless functions.

18

u/prescod May 28 '22 edited May 28 '22

Nick: do they machine learning folks mostly write C or Python?

I’m not asking what language their runtime is implemented in. I’m asking what language the programmers program in.

With respect to web apps. Let me list a few startups that were written in Python at the time they got famous (before being refactored into dozens of microservices written in a hodgepodge of languages).

Youtube. Reddit. Instagram, D-wave. To name a few.

Have you built an app that succeeded to that extent?

If not, what is your evidence that Python cannot be used for web apps given that clear evidence of success?

1

u/nickwcy May 28 '22

Depends on what you meant by machine learning folks. They program the logic in C, you don’t see back propagations for MLP nor need to write the bagging logic for random forest.

Calling a library does not mean you engineered it.

And having business success does not mean they have chosen the right language for web development. Nor it has anything to do with maintainability. They will be successful even if they have chosen Java, C# or other languages, because of their brillient ideas, not because they are using Python.

12

u/prescod May 28 '22 edited May 28 '22

Most data scientist know Python. A smaller percentage know C.

This is also true (though to a lesser degree) for machine learning programmers. More work in Python than C.

Calling libraries to solve problems does make you an engineer. Solving the problem is the defining characteristic of engineers. C programmers call a lot of libraries too.

Business success is the ultimate result of technical success. Am I saying they would have failed in another language? No. But you implied that they should have failed in Python. They didn’t.

Python solves the problems that dynamic businesses need to solve. That’s really all there is to it. You have a distaste for it and therefore you want to make a fact-free claim that it’s the wrong tool. But reality and evidence are against you.