DEV Community

Ben Halpern
Ben Halpern Subscriber

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 (231)

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.

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