Okay, which one of you Java devs did this

Lysergid@lemmy.ml to Programmer Humor@programming.dev – 414 points –
41

You are viewing a single comment

Python is a virus

I'll bite, which programming language should people use instead of Python?

Well, obviously, we should all exclusively program in Haskell.

reject high level programming and reurn to assembly

I would say Erlang but hey if you are in a Haskell mood then by all means.

Except for the parts where you need something like Rust, that would be an improvement.

Python is considered a programming language? I still classify it as scripting lol

That said, i'd personally use good old c/c++ or even c#/.net over python lol

Yes Python is definitely a programming language, I write in C/C++/C#/Python/Bash each language has its areas where they are best.

I prefer Python for DevOps related code and writing smaller programs/tools. You just get so much handed to you with Python's toolbox, it just makes things easier, you can use it as a scripting language or write a modular object oriented program.

I use C/C++ when performance matters and I want things to be Done right TM, and make sure to use all the help the compilers and static code checkers can give.

Python is just scripting language over C. Change my mind

Literally fucking what? Python is object oriented and garbage collected, and people write production web backends in it.

Bash is a programming language... honestly it's like rectangles and squares - all scripting languages are programming languages but not all programming languages are flexible enough to be commonly considered scripting languages.

Python is a scripting language, but it's generally called a programming language, because there are no key differences in their features or workings. Just as C# and Java, Python is first compiled to .pyc files and then executed with a special program, eg. Mono for C#, OpenJRE for the second and just python for the latter, except for Python it's more hidden. C# supports Classes, Python does, but C does not (officially) ... so wouldn't C be less of a programming language then?
In the end, scripting languages are just defined as one by being easier and faster to run by all/most implementations as the "gcc main.c" and "./a.out" method of "real" programming languages, by just using "python main.py" or "node main.js" for your program. Therefore, they can be changed on the fly and added to another script.
What IS generally called a scripting language is eg. Bash, as it's not compiled, supports few features and is not that cross compatible (except maybe with eg. WSL).

I'm a huge C/C++ fan, but some tasks just aren't suitable for them. Parsing HTML/XML in C++? It's possible, but a pain in the ass. I know it, I did it. Having parsed plans, tables and xml responses in C++, I can tell you Python is more suited for this job. The extra few milliseconds you save aren't worth the hassle of verbose exception handling, non standard libraries which need different systems to stay up to date (some don't support your make system of choice) and harder integrated extension support (you can't just throw in a .py script for support of other providers, but need to explicitly integrate eg. lua support), especially if the bottleneck is not your code, with ~10 ms runtime, but some random ass server with ~100 ms ping.

C# “compiles” to intermediary bytecode, then ran in a vm. Same as Java. I’d say that’s no better than a “scripting” language with a JIT.

I wouldnt say a vm (as there is no emulated hardware layer around the running code ) , but sure you made a valid point actually!

2 more...