this post was submitted on 13 Nov 2023
97 points (93.7% liked)

Programming

18332 readers
416 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
(page 2) 50 comments
sorted by: hot top controversial new old
[–] pingveno@lemmy.ml 7 points 1 year ago (1 children)

I would be torn between Python and Rust.

The case for Python is that I'm already very experienced in it (nearly 20 years), there's a good job market out there for it, and the ecosystem is one of the best in existence. It's like a comfortable well made jacket, maybe a tad worn in some areas but very functional. And it's not standing still, with a community that's committed to constant improvement.

Rust is more fun. I like the way it's been put together. It can also be used in more areas. There are some niches (wasm, low level, kernel) where Python just doesn't work. It has been able to benefit from the years of mistakes from Python and other languages on things like how it handles Unicode strings. I don't know it as well as Python, but I barely get a chance to work with it so that could change quickly in time.

[–] philm@programming.dev 2 points 1 year ago (2 children)

Behold, Rust is blazingly fast in approaching the most popular language :)

Also, in comparison to Python you can do pretty much everything throughout the stack, which would be the reason I would go for Rust (not mentioning all the other niceties it has to offer).

Also learning Rust nowadays is much more approachable compared to say 7+ years back (ecosystem got way better)

load more comments (2 replies)
[–] blackstampede@sh.itjust.works 7 points 1 year ago

Rust, hands down.

[–] MagnoliaMayhem@programming.dev 5 points 1 year ago (2 children)

Go. Nothing strikes a balance of ease and performance like go

load more comments (2 replies)
[–] TCB13@lemmy.world 5 points 1 year ago (7 children)

JavaScript because you can do everything with it and long term all other languages will, most likely, gradually fade away (except for C/C++).

load more comments (7 replies)
[–] DLSantini@lemmy.ml 5 points 1 year ago
[–] Cryan24@lemmy.world 5 points 1 year ago

Definitely lolcode.. HAI Can Has stdio KTHXBYE :)

[–] kool_newt@lemm.ee 5 points 1 year ago* (last edited 1 year ago) (3 children)

Zig

Choosing a high-level language would limit your world so all of those are out. I could make my own high-level language if absolutely necessary from Zig but the reverse is not possible.

Zig > C as it's easier to write safer more secure code while being as fast or even faster than C, and usable in embedded and other places only C is normally used. In fact, I can create C binaries with my Zig compiler.

Zig > Rust because actually writing safe Rust code would use all my time and sanity so would end up writing unsafe Rust, but then what's the point.

Zig > Go because Go is slower, higher level, and backed by one of the most evil entities to ever exist.

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

Zig > Rust because actually writing safe Rust code

Start thinking more functional, I rarely have issues with the borrow-checker, or even have to write unsafe. But it obviously depends on the context, when the issue at hand really requires a lot of interior mutability or unsafe can be pain.

I'm also super fast nowadays with Rust, probably faster than with any other language (thanks to great tooling?).

[–] kool_newt@lemm.ee 2 points 1 year ago

Start thinking more functional

Sounds like good advice, thx.

load more comments (2 replies)
[–] Ray@programming.dev 5 points 1 year ago
[–] muhanga@programming.dev 4 points 1 year ago

Clojure. Simple language for complex things. It also has java interop and Javascript interop and c# interop. So I will be fine.

I'm surprised no one has picked either macro assembly on their favorite ISA or, perhaps just to screw with people, Forth.

[–] Anticorp@lemmy.ml 3 points 1 year ago* (last edited 1 year ago) (2 children)

JavaScript. I can't think of anything else that can be used for everything. It's a back-end language, a front-end language, it can be used for styling and animation, it can be an OOP language or a scripting language, and can make database queries & submissions. Is there another language that is as versatile for website development? I can't think of one.

[–] amju_wolf@pawb.social 2 points 1 year ago

So while this is probably a good answer to the hypothetical question, that's actually not a good thing, you realize that, right?

Special tools exist because different problems require different solutions. And sure, then can be a huge overlap of those tools, but you can't literally do everything with a single tool; chances are it'd be a shitty tool. Either you can't actually do everything with it, or it's so complex that you don't want to use it in the first place.

Javascript is somewhere in between, in the sense that it's both kinda terrible for most of the jobs you mentioned, while also not actually usable for "everything" - i.e. it'd be a terrible language for anything that needs to be performant or reliable. Hell, we have JS in crap like Gnome now and it's a nightmare.

load more comments (1 replies)
[–] sanols@beehaw.org 3 points 1 year ago

Big Kotlin fan.

Similar reasons to the commenter that talked about using a world class runtime, but the JVM is tested and works.

And now I can use Kotlin to make cross platform applications, while still utilizing the Java knowledge that I unfortunately possess? Perfect!

[–] Spider89@lemm.ee 3 points 1 year ago (1 children)
[–] Agent641@lemmy.world 6 points 1 year ago (1 children)

Is everything alright at home mate?

load more comments (1 replies)
[–] mrkite@programming.dev 3 points 1 year ago

C. I've been programming for over 30 years and it's the only language to survive. Imagine if I was asked this question 30 years ago and picked perl or Pascal, I'd be screwed today.

load more comments
view more: ‹ prev next ›