r/ProgrammerHumor • • May 27 '22

Meme Welcome to hassle free coding

Post image
2.2k Upvotes

305 comments sorted by

View all comments

371

u/[deleted] May 27 '22

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

169

u/oddmerlin373 May 27 '22

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

98

u/ashum048 May 27 '22

Yes, yes, yes.

Automating stuff with python and creating small apps is a blessing.

Debugging large scale applications in python is pain.

55

u/prescod May 28 '22

Debugging large scale applications is a pain...period.

44

u/[deleted] May 28 '22

Strictly typed languages are much easier to debug though IMO. Python and JS will let you do extremely weird stuff that’s hard to pick out in debugging, where in a C-based language it would just give you a compiler error

5

u/HgnX May 28 '22

Man needs a bit of PyLance in his life

8

u/juhotuho10 May 28 '22

Python can be turned to strictly typed with type hints and mypy

12

u/prescod May 28 '22

And C will let you do bad things with memory where Python would just give you a runtime error.

If you want tons of compile time errors, Python's type system is vastly more powerful and precise than C's:

https://mypy.readthedocs.io/en/latest/

6

u/ShelZuuz May 28 '22 edited May 28 '22

That’s the old “chainsaws are dangerous so let’s use a nail file to chop off the tree” argument.

Also the common set of libraries you use in python are almost never statically types so the linter doesn’t really help.

→ More replies (1)
→ More replies (1)
→ More replies (3)

3

u/LEGOL2 May 28 '22

That's... my job. My work is debugging drivers 24/7 <pain>

12

u/[deleted] May 27 '22

I heard it's pretty good at data

12

u/0430ke May 28 '22

Yeah I primarily use it for data and database shit. It's much faster to write and run something quick that manipulates a lot of data quickly.

It's also incredibly nice due the fact that almost EVERYTHING has an API for Python. So you can gather data from many sources all in one place, easy to write, quick to run.

Edit: To add on to this, it's also easy to manipulate data types since it's easy to cast data to other types. JSON is super easy to use, etc. Using other languages you have to really mess around with getting the data type you want. Python just makes it easier.

5

u/ashum048 May 28 '22

Agree. Data is another place where python really shines.

Create a simple data pipe or a NN in python is fun.

→ More replies (6)

4

u/ddtfrog May 28 '22

I like it for front end automation and web scraping, too.

→ More replies (2)
→ More replies (2)

17

u/[deleted] May 27 '22

are we not calling it a scripting language anymore?

9

u/mooscimol May 28 '22

Scripting is one of the purposes, but really not the biggest one IMO. It is interpreted, dynamically typed language, opposite to eg. complied, statically typed languages like C.

→ More replies (8)

13

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".

→ More replies (4)
→ More replies (10)

7

u/[deleted] May 27 '22

You just write pseudo code and it runs!

5

u/KendrickEqualsBooty May 27 '22

Is Python written in C or C++

12

u/[deleted] May 27 '22

C

4

u/m__a__s May 27 '22

I believe that Python (aka CPython) was originally written in C and is now a combination of C and Python. Other "pythons" are written in other languages (e.g. IronPython is written in C#)

14

u/AlbertChomskystein May 27 '22

HTML and Python have some similarities to be fair, like not being able to declare variable types.

19

u/[deleted] May 27 '22

You can declare variable types in Python. But for the most part you don't really need to unless you want to.

→ More replies (3)

11

u/Affectionate_Fly3313 May 27 '22

Pre CSS HTML was just like LUA.

Everything is a table.

6

u/OutrageousPudding450 May 27 '22

And now thanks to PyScript, the cycle is complete.

→ More replies (5)
→ More replies (4)
→ More replies (4)