DEV Community

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

Collapse
 
chrisvasqm profile image
Christian Vasquez • Edited

I agree with you on the fun part. I've been getting more into JavaScript recently and I can see the use of the full word (function) being better for beginners overall.

Thread Thread
 
hrmny profile image
Leah

"fun is short for function"

"Oh ok"

Thread Thread
 
chrisvasqm profile image
Christian Vasquez • Edited

Yeah, but I still haven't seen the first person who doesn't question what fun is the first time they see it.

Sometimes being clear and short don't go hand to hand.

Thread Thread
 
nektro profile image
Meghan (she/her)

there's a readability factor that I feel is added when you use the whole function. Especially for compiled languages, the "less characters" argument has no weight at all.

Thread Thread
 
series0ne profile image
series0ne

It’s actually a “fewer characters” argument.

Thread Thread
 
aramix profile image
Aram Bayadyan • Edited

Actually in javascript es6 you don't have to type any word to create a function just () => {} which is the best notation IMHO