a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment
coreh  ·  4236 days ago  ·  link  ·    ·  parent  ·  post: CamelCase vs underscores: Scientific Showdown

Even though I come from a JS background, I started reading the article favoring underscores, because they looked more... readable. Then he posted this example:

"Camel case makes paragraphs easier to read. my_first_variable=my_second_variable-my_third_variable vs myFirstVariable=mySecondVariable-myThirdVariable"

This totally made me see the reason behind camel case. The variables with underscores look like multiple identifiers to me, while the variables with camel case look like a single identifier...