Name a beautiful programming language
Name a beautiful programming language
Other urls found in this thread:
windows xp
it's ok
...
Bob
Haskell, Scheme, Shen. None of which I plan on using in the near-term for a project, but it's pleasant to read others' code. Pleasant as in when you read a Buddhist haiku in the original Japanese and meditate on it for 3 hours. Definitely not pleasant as in a Stephen King page-turner.
>1-indexing
>beautiful
Still, could be much worse and Lua generally did a decent job of making Scheme look humane.
Javascript started with the same aspiration, and look at the horrible monster it became.
Emojicode
there is nothing more beautiful than git pushing my code to github pages and not having to deal with a sever so yes javascript
D.
It's basically C++ with a better standard library, but it doesn't make you want to puke when you see it.
Ada is more beautiful
Ada is the wife of Lua
I agree about Haskell. Can't agree about (any) Lisp though, while I like them, looking at a bunch of parentheses doesn't really feel pleasant. Just looked up Shen and it looks interesting.
Except for template notation which looks equally ugly. But I guess it can't be helped.
I actually don't like Lua, it easily becomes a mess of keywords.
>want to pass a function for ordering (don't really mind the point, just an example)
function (a, b) if a < b then return -1 else if a == b return 0 else return 1 end end end
Now try passing a few such functions as arguments.
Oh, and I forgot to mention that 1-indexing actually makes sense and 0-indexing is just legacy of low level languages. I mean, it's the first element so why not label it '1'? I find code using 1-indexing pretty pleasant to look at.
It's funny, but after you learn a lisp (any lisp), you don't really see the parentheses any more. Indentation is critical though, I just use whatever Emacs does for me.
This unavoidable learning curve is unfortunate for trying to convert ALGOL-weenies, but it's the price you pay for homoiconity & macros.
...
The most beautiful of them all
Java or Javascript
Is it really?
>looking through lua syntax
>huh this looks pretty nice
>suddenly 1-indexing
Why?? Vanilla JS is actually pretty pleasant to write.
>looking through js syntax
>huh this looks pretty nice
>suddenly semicolon insertion breaking return statements
Why?? Vanilla Lua is actually pretty pleasant to write.
*gag*
I love Lua. Simple, fast, elegant, and a joy to work with. Going from using metatables, coroutines and just ordinary tables to trying to use Javascript prototypes, generators and objects just makes you realize what a pile of shit Javascript is. If you haven't read it already, I highly recommend taking a look at lua.org
I've also been learning Haskell and quite like it, although it has its warts and ugly spots. Although less practical, SML is a beautiful language. After I've had some more time to play with Haskell I'd like to pick up Lisp and Rust.
On that note, is there a Lisp dialect you guys would recommend? I'm more interested in what I could learn the most from than how practical the language is. I've heard Racket is a good place to start.
this: Why does 0-based indexing make sense outside the context of pointer offsets? Saying you don't like it because it's different is a bad argument.
I've looked at Ada, though haven't even started learning it yet (I learned a bit of VHDL though, what a nightmare). Seems interesting though. Do you use it for much? What do you find beautiful about it?
good1
>On that note, is there a Lisp dialect you guys would recommend?
Common Lisp remains the best choice for writing things that are more than toys, although it's not quite as elegant as Racket or Scheme.