DEV Community

Discussion on: Which mainstream programming language has the ugliest syntax?

Collapse
 
mjb2kmn profile image
MN Mark

We're not alone!
I think Python is deceptively ugly, because at first you expect it to be sensible but when you actually try to understand it you find the ugliness in it's whitespace.

At least stuff like Lisp and Objective-C have the courage to show their ugliness loud and proud. (and oh goodness! those are ugly!)

Collapse
 
chigix profile image
Richard Lea

The WHITESPACE is exactly the problem.

Collapse
 
wplj profile image
wplj

Lisp, "ugly"? best oxymoron ever.

Thread Thread
 
faranaiki profile image
Muhammad Faran Aiki

Oxymoron? Best misnorm ever. Oxymoron is when the antonym meets its base word.

Collapse
 
edoxtator profile image
Doc

I grew up on 6500-family and Z-80 assembler, and I find those very easy to read, despite some of the cramping from the mnemonics and addressing modes.

I wrote a lot RPG for IBM systems during the 80's and 90's. RPG is still (IMHO) the best business language in terms of clean syntax. It's essentially a hopped-up macro assembler language.

Java's syntax has always made my head hurt. It has wayy too many rules and doesn't trust that devs have the capacity for making the right decision.

Python's syntax doesn't cure all of Java's sins, but it has the decided benefit of its syntax not getting in the way of problem solving.

If you follow the guidelines in PEP-008, make good decisions, discuss those decisions openly, respect the analytical capacity of the Programmer of the Future, you can write not just good syntactically clean and readable Python, but code that's maintainable.

These are all big if's I grant you, but I'd rather solve problems and get work done than try to make Java happy.

Thread Thread
 
dhandspikerwade profile image
Devin Handspiker-Wade

I see the opposite problem. The lack of syntax is a bigger annoyance than how verbose Java is. This is why there are so many different languages; everyone has different opinions on how to solve problems. :)

As someone who has never worked with Python professionally it felt like I was fighting the formatter any time I wanted to quickly jot down temporary code while working through a problem.