777

No offence

you are viewing a single comment's thread
view the rest of the comments
[-] Rooki@lemmy.ml 14 points 11 months ago

Python is rather the clown. As it is more Scratch than a programming language

[-] Solumbran@lemmy.world 26 points 11 months ago

Someone tried to learn python and failed.

[-] Valmond@lemmy.ml 8 points 11 months ago

He mixed up spaces and tabs, threw the keyboard out the window.

Python is nice.

[-] masterspace@lemmy.ca 4 points 11 months ago* (last edited 11 months ago)

One of us has spent the last three months trying to help their client untangle their massive python monolith that makes all their in house engineers quit.

Python is a good language for writing a data processing script, not for building a large piece of software.

[-] potustheplant@lemmy.world 3 points 11 months ago

It sounds like the issue was devs creating a crappy monolith, not the language itself.

[-] Solumbran@lemmy.world 2 points 11 months ago

Python is an overall robust language that allows you to do basically whatever you want, and does it pretty well. You can even use C extensions if you want to get peak performance.

The two domains that I believe Python cannot easily work with, are IoT where the interpreter would be a bit too cumbersome for a low-power system, and web programming, where it would still underperform Javascript and Webassembly (even though I am guessing that with a better webassembly support of the browsers, it would be possible to reach a rather efficient interpreter in-browser that would at least reach performances similar to javascript, if not better. And even if slower, the better syntax and lack of absurd rules would be a clear advantage on JavaScript).

[-] abraxas@lemmy.ml 2 points 11 months ago

even though I am guessing that with a better webassembly support of the browsers

Considering V8 overcame python in benchmarks nearly a decade ago, I'm not sure even some miraculous webassembly environment would put python faster than javascript in the browser of all places.

V8 does not quite compete with the big guns in the space (C, Rust, Go), but now that it's only 2-4x slower than C++, it's created this niche of "almost hardcore fast" for javascript that is just unlikely to be dethroned any time soon.

People fail to quite get how many leaps and bounds V8 has taken in the last 10-12 years. Javascript's reputation of being "scripting language slow" is simply no longer the case and hasn't been for an entire Era in software terms. Reasonably-written Javascript is now often faster than heavily-tuned Python, and well-written javascript is faster than reasonably-written C++. It's not necessarily fair (like comparing modern solar to nuclear, with the absurd amount of money that's gone into solar research), but I don't see it changing any time soon.

[-] masterspace@lemmy.ca 1 points 11 months ago* (last edited 11 months ago)

better syntax

Lol I was listening and intently considering what you had to say until this 
  point.
[-] Solumbran@lemmy.world 1 points 11 months ago

Defending javascript syntax is not really a valid thing. Even js devs admit it.

[-] masterspace@lemmy.ca 3 points 11 months ago* (last edited 11 months ago)

Is it perfect? No. Is it inherently better than a language that mistakenly thinks that whitespace is more readable than braces? Yes.

White space delimiting is awful and near impossible to scan in yaml config files, let alone a real programming language.

Well, to be fair, Matz (the Ruby creator) called Python a toy language.

[-] potustheplant@lemmy.world 2 points 11 months ago

That's correct. I don't think anyone would seriously call Python that today.

[-] darcy@sh.itjust.works 5 points 11 months ago

dont listen to them my friend. python sucks. the only reason to use it is the libraries. otherwise use lua if you want a similar scripting language that doesnt care if you forget a space key

[-] Solumbran@lemmy.world 3 points 11 months ago

"Use lua if you want a language that allows you to code in a crappy way" is a good argument

[-] darcy@sh.itjust.works 1 points 11 months ago

sure, but for small simple things (eg. something otherwise done in shell scripting), it is convenient and very simple, with consistent syntax. dont get me wrong: i love compiled languages

this post was submitted on 16 Jul 2023
777 points (99.7% liked)

Programmer Humor

31251 readers
848 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS