Not because I think it’s the best of all time, but because I’m grateful it made my work easier: Kotlin. I used to write tons of boilerplate in Java for my job, and now I don’t.
What is your favorite programming language?
Submitted 1 year ago by Albin7326@suppo.fi to programming@programming.dev
Comments
steventrouble@programming.dev 1 year ago
insomniac@sh.itjust.works 1 year ago
I’ve had a bunch of jobs using Java and my current place switched entirely to kotlin. It’s so nice. I don’t think I could go back.
seeaya@lemmy.world 1 year ago
Swift. Mostly because it’s by far what I’m most familiar with. Two things come to mind for what I most like about it. 1. Progressive disclosure: I found learning Swift to be simple since I didn’t have to directly concern myself with advanced features, but as I learned more I could take advantage of these more advanced features. 2. Clarity: I find Swift far more readable than most other languages. I think this is a combination of language features (argument labels for example) and consistency across the standard library and popular third party libraries. I think Swift finds a good middle ground between brevity and expressiveness; there’s never too much boilerplate to write, but the code is usually fairly self documenting.
abhibeckert@lemmy.world 1 year ago
Mostly because it’s by far what I’m most familiar with.
I hardly ever use Swift and it’s still my favorite language. It’s a young language and I’m a bit of an “if it aint broke don’t fix it” kinda guy, but Swift is definitely better than any of the languages I use on a daily basis. I can’t wait until it’s a little more mature on the platforms I work with regularly.
AureumTempus@lemmy.world 1 year ago
[deleted]Hector_McG@programming.dev 1 year ago
If your CV contains absurd claims about having learned all programming languages, I’d be surprised if you even got through to an interview.
Arigion@feddit.de 1 year ago
Considering what you wrote that’s probably a great idea.
bilal@programming.dev 1 year ago
“All” is a massive claim; but, your joblessness is not solely contingent upon programming alone. How is your resume, GitHub, and portfolio? How are your soft skills? Look for an area of improvement and start from there. I wish you all the best!
Kecessa@sh.itjust.works 1 year ago
Programming equivalent to an incel
ck_@discuss.tchncs.de 1 year ago
That’s just uncalled for. The person behind that post is clearly going through some rough times. How about instead of stomping on them further, you try to lift them up a little? There is no need to be just outright mean.
ck_@discuss.tchncs.de 1 year ago
I’m sorry to hear it, truely. I understand where you are coming from. I’m in the industry for nearly 15 years now and every now and then pashion gives way to reality. I really hope things turn around for you. May I ask, what made you get a degree in this field in the first place?
Olap@lemmy.world 1 year ago
Typescript followed by Ruby
Typescript as the web has won. Ruby as nothing else feels closer to poetry
Spider89@lemm.ee 1 year ago
HTML
Rin@lemm.ee 1 year ago
Better question: What is your favourite tool for a given problem?
Python for quick hacks to get the data you have in the format you want or something else that’s relatively simple.
JavaScript is basically Python’s use case but for websites (small games, forms, single page website).
I like C# for when you need to build out a big project carefully that also needs to run kinda quickly.
TypeScript for sacrificing run time to gain development speed. Also my main choice for the web. Wins against JS except for small things on the web.
Rust for when you gotta go fast and that takes all priority.
nosurprises@lemm.ee 1 year ago
Java.
phoenixz@lemmy.ca 1 year ago
PHP. I’ve worked on many languages but I keep coming back to PHP. It’s so easy to get shit done fast, easy, and with all the security upgrades, secure too
Andy@programming.dev 1 year ago
The ones I can get things done with:
- Python
- Zsh
My current obsession:
- Factor
Honorable mentions:
- Nim
- Roc
Kacarott@feddit.de 1 year ago
Ah I love Factor! So many cool aspects of that language.
cows_are_underrated@feddit.de 1 year ago
In terms of real programming languages its Java, since it’s the only thing I know.
Alternatively Bash, since I like the simplicity and it’s very useful as a Linux user.
nitefox@sh.itjust.works [bot] 1 year ago
JS/TS cause it’s my job and easy quite fast to write code in it, so it’s good for quick prototypes (or when I want to go dirty). Rust for when I want to write something actually good. It has a better ecosystem, building tools, and the DX is much better compared to C++ which is just an eldritch clusterfuck where dreams die
phoenixz@lemmy.ca 1 year ago
PHP! Super easy in use, allows for very fast deployment, is secure, and there are boat loads of libraries available
demesisx@infosec.pub 1 year ago
I was about to write Haskell or Purescriot but Unison seems like the future if it ever catches on.
onlinepersona@programming.dev 1 year ago
Haskell just seems too academic. Monads, monoids, functors, category theory, oof. Most Haskell code I’ve seen just uses the imperative escape hatch (aka monads) and throws the majority of it there. But the biggest problem is just getting haskell. There are like 3 different ways, and they all come with different package managers (?).
The second biggest problem are “preludes” that add a bunch of stuff to your env (at compile time?), which messes up code completion and “goto definition” stuff. It’s like haskell was written by C++ programmers who thought macros were a splendid idea and threw them in.
I’ve wanted to learn haskell a few times, but with those kind of hurdles, it isn’t a surprise that it isn’t widely used and mostly copied from. A real pity, as it seems intellectually beautiful.
demesisx@infosec.pub 1 year ago
Those issueThose issues go away pretty quickly once you get used to it. I mentioned unison because it kind of gets rid of that history and instead makeThose issueThose issues go away pretty quickly once you get used to it. I mentioned unison because it kind of gets rid of that history and instead makes it content-addressed **GLOBALLY.
Nevoic@lemm.ee 1 year ago
I think the dislike for Functors/Monads/Monoids etc. is super overrated. I’m not a mathematician, but christ these are beautiful abstractions coming from a background in Java and OO programming.
Functor instances are defined by one function. Once you learn the one main thing that Functors do (mapping), you’ll understand them no matter the language. Monoids have 2, Monads have 2, etc. Yes all there are functions built in terms of the functions required in the typeclass definitions (or several typeclasses), but they don’t need to be known to effectively use the abstractions.
I was able to easily transfer most of my Haskell knowledge to Scala at my last job in the typelevel ecosystem because of HKTs like Functors, Monads, monad comprehensions, Monoids, etc. I was the go-to guy for FP-related questions despite most of my background being in Haskell and not Scala.
Using an Iterable in Java will be different than an Iterable in any other language in at least some respects. Yes they will represent the same abstract idea, but you can’t just 1:1 transfer knowledge between different Iterable implementations.
I’ve programmed professionally in Java, Kotlin, Scala, Ruby, Python, JS/TS, and many more in hobbyist settings, and the cleanest transition was Haskell -> Scala (omitting language transitions on the same runtime, so Java -> Kotlin or JS -> TS).
UndercoverUlrikHD@programming.dev 1 year ago
Since nobody else have said it, Python. It’s quick and easy to set up all kinds scripts with it. No need to compile and most Linux distros comes with python pre installed so you’re are just one ctrl+v or git clone away from being able to run your scripts.
You got libraries for all sorts of things, and if you need performance, C and Rust interface all nicely with it. Just remember to use type hints.
waz@lemmy.world 1 year ago
Python is my go-to in a lot of situations. Initially I really hated the “whitespace has meaning” feature of it. Now after more than a decade of using it, I’ve gotten used to it, but I still really dislike the the whitespace scoping.
Everything else is great, I just miss my brackets.
onlinepersona@programming.dev 1 year ago
IMO whitespace is one of its biggest selling points. It makes code so much easier to read that keeping track of how deep you’re in and which bracket to close. Makes refactoring easy too: select stuff with a certain indentation, cut it out and replace it with a single call or something. No looking for the brackets.
sping@lemmy.sdf.org 1 year ago
Yes, as long as you just type annotation and checker-clean code.
Asyncio programming is a delight, context-based constructs can make sophisticated code safe, robust, and clear. Anything mildly popular you want to interface with probably had a library… There are major advantages to swimming in the mainstream.
Yes it may have grubby and suboptimal corners, but the real world making things happen problems are easy to avoid usually.
ulquiorra@lemmy.world 1 year ago
Writing Clojure for a living and I’m pretty happy with it. I also found Common Lisp very interesting, but a little more complex and haven’t spend much time with it to be honest, other than learning the language basics.
xigoi@lemmy.sdf.org 1 year ago
Nim. It just doesn’t get in the way or have certain annoyances that other languages do.
asyncrosaurus@programming.dev 1 year ago
I didn’t have an answer for a very long time. Or more seriously, the answer was “the 9ne that paid the most”. I’ve run the gamut of popular languages, C, C++, Java, Javascript, perl, ruby, Python, Visual Basic, VB.Net, C# and F#.
But the last couple years it’s really been C#. The pace of development on the language/runtime has really picked up with yearly releases. The features that are added and iterated on are expressive and intuitive. You can tell from the discussion posts on how a feature is being considered for inclusion is thoughtful and deliberate. It really feels like the language is in good hands.
Just wish those hands weren’t Microsoft.
rutrum@lm.paradisus.day 1 year ago
Python, for when I don’t feel like writing in Rust.
qevlarr@lemmy.world 1 year ago
C++. I want to make things go fast and/or run with minimal resources
MrJay@programming.dev 1 year ago
I currently don’t have 1 favorite there are so many really cool languages. but here are 2 and some that have inspired me.
- Common Lisp for sheer Technological prowess has some very advanced features that I dont see very often, runtime recompilation, code as data, data as code, debuggers, images, redefinition, macros , perf measuring, recompilation during errors to fix bugs etc… and has a algebraic syntax which can be nice.
- D for general purpose, again has features that are not common, optional GC, C compiler, zero allocation c strings, Lowlevel purity, and can be as Fast/Faster than C, and as simple as python(in the base language obviously pythons packages make up for basically all of its flaws). Languages that have inspired me not favorites but changed the way I think are APL Factor Scheme Lobster Unison Koka, I hope you enjoy the read if you check any of those out.
AlecSadler@sh.itjust.works 1 year ago
Typescript and C#, partly because they make me stupid amounts of money in a seemingly neverending sea of job opportunities.
I’ve dabbled in Go, but something about it made it never really stick with me. Same with Java.
I’ve been interested in looking into Rust and Kotlin, but haven’t yet had the time.
esscew@programming.dev 1 year ago
Go make me feel more productive than any other language I’ve used which makes me feel smarter than I am.
0x0001@sh.itjust.works 1 year ago
Favorite for quick tasks: javascript, the last few years of ecmascript features make it an incredibly productive language.
Favorite for hobby stuff: rust, but with caveats. I miss default parameters, I dislike the syntax soup, the async system has too many “standards” (see xkcd on competing standards)
Favorite for work: javascript/typescript. Having my team be fully capable of working on any part of our competencies with just one language is huge. Sharing code between front end and backend, across products, and easily finding developers all make it an easy choice.
Least favorites:
Php: magic quotes? Golang: using casing to establish public vs private? Objective-C: the worst combo of every one of it’s predecessors Java: forcing the paradigm of everything is an object causes so much boilerplate Vb5/6/a: triggering a button with = True, using a single equals for both assignment and equality, callbacks are an absolute nightmare
charliespider@lemmy.world 1 year ago
Php: magic quotes?
Haven’t used PHP in a while eh?
Check out PHP 8, it’s pretty nice.
azurefirefly@lemmy.basedcount.com 1 year ago
I don’t program but as a user I like python cause it’ll tell me what’s wrong in a pretty easy format
xnasero@programming.dev 1 year ago
Backend: golang/python Frontend: js/ts Scripting: bash
If i had to choose one it’d be go.
eeleech@lemm.ee 1 year ago
I don’t really have a single favorite a language, if I am able to choose freely it depends on the task.
- C++ for natively compiled programs and C interoperability, I like the types from the STL and templates.
- Clojure is IMO great for data-oriented programs, I really like the immutability and it being a lisp. The java interop and the ability to compile to JavaScript with clojurescript can also be useful.
- Julia for smaller (mostly numerical) programs that should be fast at runtime. The type system is great in being optional, but strong and significantly improving performance when types annotations are used.
- Fennel (or Lua) is definitely my favorite Language for embedding into larger programs and scripting. Fennel has the advantage of being a lisp and cleanly compiling to lua.
theherk@lemmy.world 1 year ago
Academically, Rust. But I find the most joy and speed with Go. The only time I’m having fun programming, it is in Go.
atheken@programming.dev 1 year ago
That’s interesting. Usually when I see people talking about Rust, they really like it. Are there specific parts that make it less enjoyable than go for you?
ck_@discuss.tchncs.de 1 year ago
For me, it’s the instability in Rust that makes it less attractive than go. By instability I mean that the language itself and the whole ecosystem around it seems to be in a constant flux. If you contribute a PR today you’ll get a review tomorrow saying that “you can now use this and that feature from the latest nightly to save 3 lines of code”, continuing like that for another two weeks before you finally give up.
Go has been the paragon of stability and professionalism since its first release, also due to the fact that it was a specific goal for the language. Additions are slow and few, often thought over and debated for months (or years) to find the simplest, most optimal solution. What’s even more remarkable, they have managed to transport this mindset into the larger ecosystem, which now practices the same values of consistently and quality.
So for me, it feels like the Rust community spends a lot of effort on keeping up with the language, the Go community spends that time getting things done, which is what I mostly go for these days.
theherk@lemmy.world 1 year ago
I was unclear for the sake of brevity. I LOVE Rust, but I regularly get knocked out of the zone by it, which reminds me I’m programming. That is purely due to my lack of experience with it. I suspect if my chops were as good as with some other languages I’d be having more fun but I’m still wrestling with the compiler quite a bit.
Also, my Go environment and editor config are just better, so I need to get my nvim config up to ship shape for Rust.
In summary, skill issue.
Floey@lemm.ee 1 year ago
Big fan of Julia for anything that requires a lot of computation. It feels easy to write things in an optimized way without having to work against the language.
I have a soft spot for Common Lisp. It encourages me to write chunks of code that are very evergreen in the sense that I could easily use them in a future project without modification. I don’t find myself using it all that much though.
ono@lemmy.ca 1 year ago
I only just started learning it, but from what I see so far, Nim might become my favorite this year.
Sage1918@lemmy.world 1 year ago
Though you give me pain and suffering, C you will always be my beloved.