48

Python:
* looks nice when written
* painful to write nicely

Perl:
* looks horribly when written
* easy to write

C/C++:
* looks cryptic when written, hard to follow
* difficult to write

Java:
* looks somewhat nice if written well
* easy to write

Shell:
* looks crippled
* a breeze to write

it's like nice'n'easy doesn't even exist..

Comments
  • 12
    Have you heard of Kotlin? You almost have to try to write an unreadable mess.

    And you can not only compile it to Java, it has cross-compile support to JS and even compiles to fully native binaries without Java if you want (which is called "Kotlin/Native")
  • 1
    Have you tried kotlin and swift?
  • 7
    ruby is easy to write and read. but everything is abstracted away.
  • 1
    @kescherRant nope, haven't tried yet. Will do someday :) maybe 😁

    but since it does not compile to ios/osx, I guess it won't be the next language I'll ve learning
  • 2
    Clojure is fun.
  • 2
    @Jilano 😁 in what sense? 😁
  • 1
    @Jilano

    It's easy to write shit code in PHP that will be hard to read.

    Yes, good code is possible, but PHP codebases sadly excerbate the most code smell in my experience, even though it would not have to be like that.

    That being said, more recent PHP versions try to eliminate some of that smell so perhaps PHP 8 will enforce some cleaner code?
  • 3
    Out of curiosity: why is python considered to be hard to write nicely?
  • 2
    @zeters personal opinion, from personal xp. Indentations' madness, types' madness, pythonisms,.. It takes a while to polish mechanisms to be error-proof [usual oop errors + type errors] and nice to read
  • 5
    Golang is great fun with a lot of clean code built in, but always depends on your goals of course
  • 3
    I like to blame programmers not the language. Though there are a few that are really ugly by nature (like Powershell).

    PHP is fine in my opinion. Shell is hell to write. Especially when you need to consistently handle errors or escape stuff (quote hell).
  • 2
    Ruby:
    * Looks nice when written
    * Easy to write, easy to read
  • 1
    Kotlin is only fun to read as long as the developer behind the code does not use tons of self declared stuff. Then it's a mess.
  • 1
    @netikras Kotlin/Native complies to iOS
  • 0
    @peenoise allright, last I was looking for this I only found that it does not. And someone on dR also said that is does not. Can you share any references?
  • 1
    @peenoise

    okay, it does.. I'll have to look into it. Maybe I won't have to learn swift after all!

    Thx

    p.S. That native interface looks awfully similar to JNI 😁
  • 11
    COBOL:
    * LOOKS UPPERCASE WHEN WRITTEN
    * JUST PUNCH CARDS TO WRITE
  • 1
    People say rust has difficult and strange syntax, but I find it appealing and readable. Sometimes feel differently once lifetime modifiers are added in though
  • 1
    @bvs23bkv33 please stop shouting
  • 0
    @--------------- try whitespace someday
  • 1
    Don't hate me if i say html is best
  • 0
    I love PHP to death. Hi haters 😂😂
  • 0
    PowerShell is easy to read and easy to write
  • 1
    That's just like.. your opinion man
Add Comment