this post was submitted on 11 Jun 2023
31 points (100.0% liked)
Technology
37742 readers
593 users here now
A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.
Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.
Subcommunities on Beehaw:
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Ahm, no ;)
Both JS and Python are neither efficient nor easier in the long-term. They are both languages that were primarily built to make quick-and-dirty small and simple programs/scripts.
Both are really slow and inefficient (though Python is much slower than JS nowadays). Both are dynamic languages which opens then up for all sorts of dirty hacks and are pretty negative for maintainability.
Because of that, both languages have unofficial typing support (Typescript and Mypy) to make programs in these languages somewhat maintainable.
If you are looking for performance, the first tier is natively compiling languages like C/C++/Rust/Go. The second tier are languages that compile to bytecode and run on heavily optimized runtime environments like anything running on the JVM or C# or therelike. And the worst tier are super dynamic languages like JS or Python.
In terms of what's easiest, it really depends on what you're doing to be honest. Like, if you're a data scientist, you want to learn Python. If you're a web developer, you want to learn JavaScript - I believe that Wasm is the future of the web, but we're going to have traditional HTML/JavaScript for decades to come.
Oh, I didn't know this, I appreciate the insight. I have been working with typescript a bit, but sidestepped back to JS for a small project because of familiarity. My next project may be typescript just to get a feel for it.
I have heard a lot of buzz about rust, but I haven't looked it up because I don't want to overwhelm myself with new things. But it does seem very popular. And I doubt there's anyone, even people unfamiliar with code, who hasn't heard of the C family!
I'm not giving up JS, since it is so popular for web development, but it does make me sad that it's so inefficient for other tasks in comparison to the other languages. Butz it also makes me kind of excited to get into some of the meatier stuff