Java
If you had to choose one programming language that you had to use for the rest of your life, what would it be?
Submitted 1 year ago by hades@lemm.ee to programming@programming.dev
Comments
kaffiene@lemmy.world 1 year ago
kool_newt@lemm.ee 1 year ago
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 and backed by one of the most evil entities to ever exist.
deur@feddit.nl 1 year ago
If you cannot write safe Rust code, it places your ability to ever write safe code in doubt.
porgamrer@programming.dev 1 year ago
You could write a compiler for a low-level language in anything. Honestly makes little sense that most people do it in C++ when they’re only going to replace it anyway.
philm@programming.dev 1 year ago
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 orunsafe
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 1 year ago
Start thinking more functional
Sounds like good advice, thx.
Haatveit@beehaw.org 1 year ago
Lua.
Don’t call the ambulance, it’s too late for me
Paradox42@programming.dev 11 months ago
I agree, I really enjoy programming in Lua.
Dioxide3667@kbin.social 1 year ago
Elisp Don't hurt me!
blackstampede@sh.itjust.works 1 year ago
Rust, hands down.
AlpineSteakHouse@hexbear.net 1 year ago
For personal preference, assuming I didn’t have to worry about getting a job, Lisp no question.
Otherwise, I’d have to go with C++.
simonced@lemmy.one 1 year ago
Clojure, can’t stop using it, so fun to use!
Falst@lemmy.world 1 year ago
I’d pick JavaScript, mostly because of the ecosystem (even though we could argue about this point 😅)
I’d love to give Rust a try however I don’t have much time nor want to dedicate to coding in my spare time!
muhanga@programming.dev 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.
Ray@programming.dev 1 year ago
Go or Rust
Cryan24@lemmy.world 1 year ago
Definitely lolcode… HAI Can Has stdio KTHXBYE :)
MagnoliaMayhem@programming.dev 1 year ago
Go. Nothing strikes a balance of ease and performance like go
ursakhiin@beehaw.org 1 year ago
Overall, I think I prefer elixir, but is probably choose go as well.
Not just ease and performance but popularity. I could be happy in only go for the rest of my life. Currently a Rust dev and I don’t know if I can spend the rest of my life with lifetimes. They are an emotional challenge…
MagnoliaMayhem@programming.dev 11 months ago
I’ve wanted to have an excuse to learn Elixir for a couple years now. It seems fascinating to me, but I just can’t get started.
Spider89@lemm.ee 1 year ago
JavaScript
Agent641@lemmy.world 1 year ago
Is everything alright at home mate?
Spider89@lemm.ee 11 months ago
👌
elias_griffin@lemmy.world 1 year ago
So many great viewpoints here. Crystal for faster and concurrent Ruby. Crystal has a pretty advanced Web Framwork called Lucky not many know about. Haskell so good, but hard to convince people to use it for projects. Haskell also has a very advanced Web Framework called Integrated Haskell Platform. Scala’s very impressive feature set. Zig is in such a super position and Julia is capable in so many ways including Fortran integration.
I’m surprised no one has mentioned Chapel or Nim though! My favorite programming speed benchmark is spectral norm and even though Chapel is the fourth fastest language (not benchmark) it’s not using the forte of grid parallelism!
Nim is getting to be quite the monster and not beholden to Mega-Corps financing like Python and Go are.
Also I want to add that Zig blows Rust away in many performances!
NOTE: Just as an ethical, solo, non-commercial Engineer, I sponsor Nim on Patreon and Zig on Github
profoundlynerdy@programming.dev 1 year ago
I’m surprised no one has picked either macro assembly on their favorite ISA or, perhaps just to screw with people, Forth.
sanols@beehaw.org 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!
I_Miss_Daniel@lemmy.world 1 year ago
Teraterm scripting language.
livingcoder@programming.dev 11 months ago
Rust, easily.
asciimage@sh.itjust.works 1 year ago
C
CADmonkey@lemmy.world 1 year ago
GW Basic
olafurp@lemmy.world 1 year ago
I don’t like writing Rust but I choose Rust. I like Microsoft Java also
0xC4aE1e5@lemmy.zip 1 year ago
Bun JS.
For me it’s just plain simple to write and has a massive ecosystem.
cout970@programming.dev 1 year ago
Kotlin without a doubt.
Gives you more flexibility and freedom that most scripting languages. The syntax is clean and concise, the tooling is amazing and can compile to JVM, JS, Native and WASM.
CodeMonkey@programming.dev 1 year ago
I have used Kotlin a bit for a hobby project and it felt like they were 95% done with a 1.0 version. I love the promise of a single code base that can run on the JVM and browser, but it is not all there. Until recently, the API was not guaranteed to be stable. Every one in a while, I hit a feature that is JVM only or does work right in JavaScript. The JS compiler will “helpfully” remove uncalled public functions unless you explicitly mark them with JsExport.
Also, from what I can tell, only InteliJ is the only supported IDE (which makes sense, since they are the language developers). There is an official Eclipse Plugin, but the last time I tried it, it did not work and tried to take the entire IDE down with it.