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

Python

6684 readers
42 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
[–] [email protected] -1 points 3 months ago

anything else > python > JS

[–] [email protected] 5 points 3 months 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.

[–] [email protected] 1 points 3 months ago

Is python being easy to learn actually true?

I've never found this to be true, I think that's partially because I don't find Python to be very fun to write in, so I don't enjoy it very much, so I don't learn new things about it very quickly.

[–] [email protected] 5 points 3 months ago* (last edited 3 months 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.

[–] [email protected] 3 points 3 months 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.

[–] [email protected] 3 points 3 months ago

Snakes, why did it have to be snakes?

[–] [email protected] 15 points 3 months ago

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

[–] [email protected] -5 points 3 months ago (1 children)

That's what happens when you suck balls at being a programming language. But sure go ahead and program your whatever device in Java or JavaScript. I'm sure it will help something.

[–] [email protected] 1 points 3 months ago
[–] [email protected] 19 points 3 months ago (4 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.

[–] [email protected] 1 points 3 months ago (1 children)

I don't think so - Javascript doesn't have to ship its language runtime so it will always have a size advantage.

[–] [email protected] 2 points 3 months ago (1 children)

You don't need a language runtime if your program has no runtime, right? A rust or C program is just the program, no runtime.

[–] [email protected] 2 points 3 months ago

Well they still have runtimes, but yes they can be pretty minimal.

You're still shipping a load of libraries that come for free with JS though, e.g. with Rust WASM string formatting and unicode support always ends up being annoyingly huge, and that's built in to JS engines. There's also collections (Map, Set), etc.

[–] [email protected] 4 points 3 months 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.

[–] [email protected] 3 points 3 months ago

Delphi will be back, baby.

[–] [email protected] 2 points 3 months ago (1 children)

That would be quite an amazing era to live in ahaha ! We can the start the work as a community to match the JavaScript Ecosystem by providing high quality primitives for developers. For that to happen developer UX has to improve though :) but I think WASM definitely has some future.

However to contrast my previous thoughts, I find it pretty sad that people want to move away from JS when we got thing like Bun & Demo 2.0 hitting their prime!

We got benchmarks, cross-runtime stdlib, better registeries, type safety, enough performance, extendability (with runtime plugins & API). I think were approchaing a TS/JS paradigm that's pretty impressive I must admit.

[–] [email protected] 3 points 3 months ago* (last edited 3 months ago)

Deno looks interesting.

But Bun choosing Zig makes me think their priorities are not my priorities. As of now, you choose Zig (a not-yet-stable language) because you want to learn Zig and make a neat side-project. Those are not my priorities. Zig offers no unique advantages other than neat new syntax.

Deno chose Rust, which, like Zig, is new, but Rust has reached 1.0 and offers a unique advantage with its safety features. I'm not saying anything about the greatness of Rust here, only that Rust does offer unique advantages, and Rust could be chosen because of general priorities.

Bun chose Zig and then worked backwards and formed their priorities around Zig. Deno formed their priorities and their priorities lead them to Rust.

That's how I feel anyway.

load more comments
view more: next ›