this post was submitted on 13 Nov 2023
93 points (91.9% liked)

Programming

17026 readers
265 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 1 year ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] nous@programming.dev 84 points 10 months ago (5 children)

Rust, it is a pleasure to work with and far more flexible in where/what it can run then a lot of languages. Good oneverything from embedded systems to running on the web. Only really C and C++ can beat it on that, but those are farlesss pleasant to work with. Even if it is not as mature in some area quite yet, it just gets more support for things as time goes on.

load more comments (5 replies)
[–] rekabis@programming.dev 69 points 10 months ago (6 children)

DotNet Core as a whole (C# + F# + other languages that are being ported to compile down to a DotNet binary).

Because it has all the things Java promised us - frictionless, painless, cross-platform programs - but is implementing it far better than Java ever could.

Honestly, DotNet Core is now at least a half-decade or more ahead of Java in terms of the base platform and C# language functionality/ease-of-use. The only advantage Java has at this point is it’s community ecosystem of third-party features and programs.

load more comments (6 replies)
[–] amoroso@lemmy.ml 33 points 10 months ago (1 children)

Lisp, the language that has them all.

load more comments (1 replies)
[–] aport@programming.dev 28 points 10 months ago (1 children)

C, because it can run everywhere and I won't be limited on the things I can make

[–] Deckweiss@lemmy.world 8 points 10 months ago (1 children)

Me waiting for all the C websites written in AngularC /s

[–] aport@programming.dev 7 points 10 months ago

Lol cgi page generators written in C were the OG web framework. Maybe perl too.

[–] Piafraus@lemmy.world 27 points 10 months ago (7 children)

Python. Not even a competition. My love of programming quadrupled the day I switched to python and it's getting stronger and stronger. I have now 10 years of professional python experience and around the same of C++ with occasional C#. A few projects in Go and Java. They all have ups and downs, but... Not even comparable how much everything is more elegant and simple in python

[–] EatATaco@lemm.ee 20 points 10 months ago (3 children)

I don't get it. I love python for small quick projects. But anytime things get more complicated, I find myself constantly tripping over myself without the strong typing and errors letting me know I when I've changed a property in a class that in falling elsewhere.

load more comments (3 replies)
load more comments (6 replies)
[–] troyunrau@lemmy.ca 24 points 10 months ago

Python. I'm in data science. Sure I could write all that code in C or C++, but my time spent coding all that extra boilerplate is better spent on analysis.

[–] Gremour@lemmy.world 24 points 10 months ago (5 children)

I've already made this choice. Switched from C++ to Go, and now I never want to touch another language at all. Since I'm not writing kernels or embedded, Go is pretty fast for everything else. Not very popular in gamedev, but that's just a lack of 3rd party libs, specifically native graphics support.

As for other languages, I can't justify unnecessary complexity that is generally welcome by those language communities. Go is straight simple yet powerful, and I admire that.

load more comments (5 replies)
[–] CameronDev@programming.dev 20 points 10 months ago

C, can build any other language from that :D

And if i am gonna be miserable, may as well inflict as many vulnerabities on everyone else while I am at it.

[–] sizeoftheuniverse@programming.dev 19 points 10 months ago (1 children)

It would be C++. Its versatile enough to do everything with it.

[–] mindbleach@sh.itjust.works 17 points 10 months ago

Right? C++ feels like cheating. It has every conceivable feature, and you maintain sanity by not using most of them.

[–] Knusper@feddit.de 19 points 10 months ago

Rust:

  • It covers all bases, from embedded to backend to webdev to gamedev.
  • I could create libraries with it, which can be called from other languages.
  • It's good.
[–] BigBlackCockroach@lemmy.world 17 points 10 months ago

For me it would be C++.

[–] sudotstar@kbin.social 17 points 10 months ago (2 children)

I'd probably pick something esoteric and then just stop programming, tbh. I enjoy being a polyglot programmer, and learning many languages and learning from many ecosystems is incredibly interesting to me, far more than hyper-specializing in a single language would be.

[–] MajorHavoc@lemmy.world 9 points 10 months ago (2 children)

I'd probably pick something esoteric and then just stop programming, tbh

I'll just leave this here for your consideration... "Friendship is Magic ++

load more comments (2 replies)
load more comments (1 replies)
[–] calypsopub@lemmy.world 16 points 10 months ago (2 children)

COBOL because I am a fossil

load more comments (2 replies)
[–] marietta_man@yall.theatl.social 16 points 10 months ago (1 children)

Scala. Expressive, concise, can scale from simple to sophisticated. Sufficiently powerful - has metaprogramming, advanced types. Runs on a world-class runtime and takes advantage of a huge, mature package ecosystem that isn’t going anywhere.

load more comments (1 replies)
[–] nitefox@sh.itjust.works 14 points 10 months ago

Assembly, so I can shorten my lifetime quite a lot

[–] KseniyaK@lemmy.ca 14 points 10 months ago

For me it would be C/C++.

[–] Kolanaki@yiffit.net 12 points 10 months ago (2 children)

I'm already resigned to using C for the rest of my life 🤷🏻‍♂️

load more comments (2 replies)
[–] Matty_r@programming.dev 12 points 10 months ago

Ideally I'd choose Rust because I enjoy working with it, but don't have enough time to commit to it at the moment. But being Practical I'd probably say Java, its easy to get stuff going and has been around forever so it's easy to find solutions etc.

[–] loren@programming.dev 12 points 10 months ago (2 children)

I know this is a harmless "what if" but let's be encouraging people to explore more languages not to choose a single one to be everything for all time.

load more comments (1 replies)
[–] demesisx@infosec.pub 12 points 10 months ago* (last edited 10 months ago) (3 children)

Unison. If it were to gain mainstream adoption, it would change the world. It’s a crazy futuristic idea and no one else seems to even remotely be approaching the same thing.

load more comments (3 replies)
[–] bluGill@kbin.social 10 points 10 months ago* (last edited 10 months ago)

C, because I can find a compiler or interpreter for other language written in C (I may need to run a few steps to get there), and thus work around your silly and nonsense question. Seriously, I use multiple languages because there is no one true language to rule them all. I use C++ for problems where bash would be wrong, and bash where C++ would be wrong. And some python, cmake, lua mixed in for good measure. I'm looking at Rust to add (rust doesn't like the way our system designed so it is hard to figure out how to implement it)

[–] De_Narm@lemmy.world 10 points 10 months ago* (last edited 10 months ago) (1 children)

I'd love to take Haskell, but there's neither enough support nor enough jobs. Same with most functional languages really. But nothing else compares.

load more comments (1 replies)
[–] Haatveit@beehaw.org 9 points 10 months ago (1 children)

Lua.

Don't call the ambulance, it's too late for me

load more comments (1 replies)
[–] BrotherL0v3@lemmy.world 9 points 10 months ago

Java. It's familiar, it's the one I use most at my job, and I'm not in love with any other language enough to choose something less pragmatic.

[–] cout970@programming.dev 9 points 10 months ago (3 children)

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.

load more comments (3 replies)
[–] aluminium@lemmy.world 8 points 10 months ago

Typescript. I greatly prefer C-Style curly brace languages over Pythonese langs. Also the typesystem is incredible, as it allows you to be as precise or not as you want which is a huge boon.

[–] Floey@lemm.ee 8 points 10 months ago

I don't really want to do everything in one language but if I did have to pick it would probably be Julia. It's slightly simpler than Python, and significantly faster without relying on APIs written in C. And has some really great features like broadcasting, multiple dispatch, and a good type system. The only place I feel like Python has it beat is quantity of libraries and support network, which both basically come from the same origin of just having more users. I'm hoping more data science types switch over in the next few years, since Julia is already great for most things mathematical. And I hope that momentum allows Julia to perhaps reach out to other domains.

[–] blackstampede@sh.itjust.works 7 points 10 months ago

Rust, hands down.

[–] pingveno@lemmy.ml 7 points 10 months ago (2 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.

load more comments (2 replies)
[–] simonced@lemmy.one 7 points 10 months ago

Clojure, can't stop using it, so fun to use!

[–] AlpineSteakHouse@hexbear.net 7 points 10 months 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++.

load more comments
view more: next ›