this post was submitted on 02 Nov 2024
269 points (98.2% liked)

Python

7707 readers
1 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] FizzyOrange@programming.dev 68 points 1 year ago (1 children)

Ok after reading the article this is bullshit. It's only because they are counting JavaScript and Typescript separately.

[–] Grandwolf319@sh.itjust.works 22 points 1 year ago (1 children)

Typescript being that popular is great news onto itself.

[–] daniskarma@lemmy.dbzer0.com 5 points 1 year ago (2 children)

We have different concept about what great news is.

Compiling to an interpreted high level language is crazy. I just refuse to believe we haven't got a better solution to yet.

As someone who works with typescript daily, you're not wrong. It's an extremely overcomplicated glorified linter that tries and mostly succeeds in catching basic type errors. But it also provides false confidence when you concoct something that shows no errors but doesn't behave how you expect.

load more comments (1 replies)
[–] Buttons@programming.dev 19 points 1 year ago (7 children)

Were just waiting on WASM to be able to access the DOM APIs directly, and then all languages will be first class citizens on the web, and then RIP JavaScript.

[–] azertyfun@sh.itjust.works 4 points 1 year ago

Is that even a stated goal? I swear we've been waiting for that to exist for the better part of a decade. It would solve so many issues and comes up in every discussion about Javascript, yet the powers that be seem to have zero interest in pushing this forward.

[–] Blackmist@feddit.uk 3 points 1 year ago

Delphi will be back, baby.

load more comments (5 replies)
[–] innermeerkat@jlai.lu 16 points 1 year ago* (last edited 1 year ago)

Also some projects are using web assembly to make frontend python frameworks such as this one https://github.com/kkinder/puepy

Edit: wrong project

[–] umbrella@lemmy.ml 15 points 1 year ago

sorry js fans, but python is what an interpreted highlevel language should be

[–] cyborganism@lemmy.ca 12 points 1 year ago (1 children)
[–] FUsername@feddit.org 7 points 1 year ago

Yeah I really would love to use Python instead on JavaScript natively for the same use case.

[–] anticurrent@sh.itjust.works 6 points 1 year ago (2 children)

Every time I open a js file from some project I have to tweak to use on my website, I get a brain aneurysm. that shit should never have been invented. python in the browser is the dream we are not allowed to have.

ps: I am just a hobbyist ! so take it lightly.

[–] LANIK2000@lemmy.world 11 points 1 year ago (3 children)

Idk, my only experience with python is that any app written in it doesn't fucking work, throwing some esoteric error that has nothing to do with the error at hand and then me needing to look up what unholy specific version I need and manually setting up an environment for it. I dread the day when I'll want to try some random project and yet again the only way to run it will be some shady ass python script.

JS is pure crack and has no right being the backbone of the web, but python is borderline unusable in my experience.

[–] Rogue@feddit.uk 3 points 1 year ago

I avoid anything written in Python. It's not the language at fault it's the ease of entry so you get a lot of low quality software.

load more comments (2 replies)
[–] oscar@programming.dev 7 points 1 year ago (2 children)

Somebody should write a python to javascript transpiler for the web...

(please don't actually do that)

[–] RonSijm@programming.dev 12 points 1 year ago (4 children)

There's a Python WASM runtime, if you really want to run python in a browser for some reason...

https://github.com/wasmerio/wasmer-python

[–] oscar@programming.dev 3 points 1 year ago

Ooh, neat. There's also puepy, which was linked further down in this thread. It's really cool to see more WASM projects pop up.

load more comments (3 replies)
[–] Kissaki@programming.dev 6 points 1 year ago (2 children)

Python’s major pro is its simple, straightforward syntax, which excels at data handling. This has made it popular with novices of all shades […]

For first-timer coders, Python is easier to learn, understand, and adapt than many low-level programming languages […]

Is python being easy to learn actually true? I can see it being easier than low-level programming. But there's other alternatives like C# and Java that certainly seem much better and easier to me. Especially when you consider the ecosystem around only writing code.

Plus, the Python language is a steadfast feature in the desktop Linux software landscape. It’s preinstalled on most Linux distributions, boasts extensive library support, and can be used to fashion very cool (as well as very basic) Qt, GTK, and other toolkit UIs.

It's certainly available, and more readily available on Linux. The whole v2 v3 mess was lackluster. But I guess preinstalled is convenient, and more accessible than installable Java or whatever.

I've never seen JavaScript or Python popularity as evidence or correlating with actual qualities. More with a self-promoting usage. Python was being used in science, then in AI, then AI became popular. To me, it seems like a natural propagation consequence more than simplicity or features over other frameworks and languages.

[–] coriza@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

Is python being easy to learn actually true?

In my experience teaching C to non computer science students It should be. They struggle a lot with variable type and the strict syntax in general, tokenization , etc, but specially ; and {}. They are more visual so I think the forced identification of python helps and they can see to which block a line of code belongs and also it is easy to think one line one statement. When they forgot a semi-colon it is hard to explain that it became one logical line with the next one.

load more comments (1 replies)
[–] mindbleach@sh.itjust.works 4 points 1 year ago

Yeesh on both counts.

[–] VantaBrandon@lemmy.world 3 points 1 year ago

Snakes, why did it have to be snakes?

[–] Kissaki@programming.dev 3 points 1 year ago

eeew (/s)

I have a dislike for both of them. Well, for JavaScript mainly the server-side part. I'm fine with it on web scripting, where it's the only native one.

load more comments
view more: next β€Ί