DEV Community

Ben Halpern
Ben Halpern

Posted on

Which mainstream programming language has the ugliest syntax?

Regardless of the language's usefulness, which language fails the beauty contest the worst?

Latest comments (232)

Collapse
 
jamesbsk profile image
James Bissick

Objective-C and Python

Collapse
 
thallesaraujo profile image
Thalles Henrique

I was literally searching on Google “Why Ruby is so ugly?” when this article appeared on the list. “puts” in Brazilian Portuguese is a slang for “oh, fuck!”, or when something was messed up. And when I saw a code example with:

say = ‘hello’
5.times { puts say }

I only could think what kind of psychopathy is that.

Collapse
 
rahra profile image
Bernhard R. Fischer

Definitely python. Oldschool 80's-style. I wonder how this could become so popular.

Collapse
 
lyassa profile image
lyassa

Any language that uses ":=" for assignment - GO and Pascal comes to mind, and any language that uses tabs or spaces to define scope in the code - Python, Spin and make come to mind.

Collapse
 
lyassa profile image
lyassa • Edited

Any language that uses ":=" for assignment - GO and Pascal comes to mind, and any language that uses tabs or spaces to define scope in the code - Python Spin and make come to mind.

Collapse
 
timolinn_ profile image
Timothy Onyiuke • Edited

I'm of the opinion that most (if not all) language syntax looks pretty anyways, as soon as you view the code with a cool IDE, with pretty font and theme. Also formatted by a code formatter.

Collapse
 
kriang profile image
kristofferanger • Edited

Swift is ugliest, look at this AppDelegate method for example...

override func application(_ sender: NSApplication, delegateHandlesKey key: String) -> Bool {
    return key == "tasks"
  }
Collapse
 
johannestegner profile image
Johannes

CoffeeScript by far, its horrid, I rather write brainfuck than Coffee!

Collapse
 
lyfolos profile image
Muhammed H. Alkan

ATS.

Collapse
 
qm3ster profile image
Mihail Malo

Rust. It is forcing me to consider allowing semicolons in my JavaScript.
F# would never do such a thing!

Collapse
 
biros profile image
Boris Jamot ✊ /

This discussion is really unfair for JS developers :)

Collapse
 
sandeepkamboj12 profile image
Sandeep kamboj

assembly language

Collapse
 
eddienewpath profile image
Eddie Dong

I know java and ruby only so I do not have much to say about other languages. Java is definitely verbose but I don't see it as ugly. ruby is build to write elegant code but I find it a bit of awkward and insecure because of its simplicity.

Collapse
 
vidthekid profile image
Geeda

TeX/LaTeX

Some comments may only be visible to logged-in visitors. Sign in to view all comments.