Regardless of usability, which programming language is the most elegant?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Regardless of usability, which programming language is the most elegant?
For further actions, you may consider blocking this person and/or reporting abuse
Desmond Owusu Ansah -
Tushar Gupta -
ZuFusion -
b-meet -
Once suspended, sherrydays will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, sherrydays will be able to comment and publish posts again.
Once unpublished, all posts by sherrydays will become hidden and only accessible to themselves.
If sherrydays is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Sherry Day.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag sherrydays:
Unflagging sherrydays will restore default visibility to their posts.
Discussion (30)
I think one must mention the fabulous Brainfuck :)
You call BrainFk, I raise you Ook!, which is based on BrainFk. 🤣
Jokes aside, I really liked Shakespeare. There was something poetic about coding in it. 🤯
yep!
Thanks! Came here to say this!
Is that more beautiful than
1337 > 0
? I'm not sure, but that's the Ruby way to do things and it can definitely be elegant. (The typical operator syntax is also perfectly valid in Ruby).To be honest, I think Ruby has an awful syntax. There's way too many ambiguities that get resolved in weird ways. It just feels like there once was an idea behind it that has long been forgotten.
Being able to call methods on literals is nice, but compared to the many ugly parts, I'd still prefer something a bit more unwieldy but at least consistent.
Rails is making perfect use of it. Look at such expressive queries:
I have my reasons not to like Ruby, but I can't deny it's very beautiful
Yeah, it can make code quite elegant. Totally possible to do similar in JS
Every time I work with Elixir, I feel like the code (and any generated documentation) is a work of art. It's very familiar to Ruby but has an entirely different programming paradigm, which feels great.
Also, the fact that it uses way less intransparent magic makes it more straightforward for me to read.
It's a bit more "hardcore" than Ruby too, but has much less ambiguity too. I was gonna name it too, pattern matching allows to do everyday operation so easily, once you get used to it it's crazy.
All languages that use curly brackets.
+1
It's more readable for me, imagine debugging indentation issues!
There is a language called "なでしこ(Nadeshiko)". It's all in Japanese.
If you code and like anime, this is one way to learn Japanese lol
I'll leave the link to their official site here.
To me, probably Smalltalk. Here's the classic syntax on a postcard example:
Why I like it:
I also quite like Forth and other stack-based languages.
Yeah, looks really tight and neat! ^.^
Definitely Smalltalk.
I love Ruby syntax, but a different take on elegance is Lisp. Everything is a list. Which is consistent and powerful. Is it "beautiful" not like Ruby but from an elegance in simplicity it holds a special spot.
I Guess Solidity as it is a mix of C++, Python and JavaScript It does not has that much use case as of C++ or JavaScript but it looks Beautiful. Here is an example
Python's readability is unparalleled, even non-programmers can have an idea of what's going on. Straightforward but can it be called beautiful just because it's readable? English is readable but it's certainly not a "beautiful" language.
Ruby certainly emphasizes elegance. It's like poetry...but not all poetry is good.
Lisp has a timeless minimalism in its absolute lack of syntax beyond (this).
Using LabVIEW, you can draw pictures:
python:D
Tough call between APL and F# as being the most elegant. (Lispers and Schemers will disagree with me. But I make no apologies!)
F#
Yup! I'm not into the .NET ecosystem at all, but F# syntax feels perfect to me.
Among the ones I have used, I think Python has very minimal and beautiful syntax.
I like Python, Rust and...... well, Haskell? (I am totally Haskell newbie, but it looks really good).
Even in JS, there is something looks pretty.
You should check out APL and J, and also there is Elixir which I really like!
C# (version 9 and especially 10)
Beauty lies in the eyes . . . and all of that, so as per me, the following languages are very pretty: Lisp (Clojure, etc.), Elm, Scala, F#, Racket, Haskell, and maybe even Julia, Ruby, Nim, D, etc.