top | item 30897555

(no title)

factotvm | 3 years ago

I'm here for this, but not to declare empathically my position. Rather, I'd like to ask a question: Say I'm learning a new language that is opinionated about casing. Suppose it was easier to read one style, but the language in question adopted another style. Would you buck the trend of that ecosystem and adopt it, or follow convention?

discuss

order

pmontra|3 years ago

You follow convention because the other developers have to read and work with your code. You also follow the formatting conventions of the language and of the project.

As a polyglot developer it feels a little weird but it can't be helped. The mix of camel cased and snaked cases languages in the same project or in the same file is inevitable sometimes. Think a JS script tag and Ruby <% %> inline code in an html.erb file.