Hacker News new | ask | show | jobs
by inverba 4147 days ago
But we're writing code, not a grammatically correct english essay. If incorrect grammar leads to shorter and simpler variable names that other programmers understand, then it should be encouraged.
2 comments

To some extent, this is true in the real world - it often feels like completely correct english is a lost cause. Many of our grammar rules have been replaced over time as our language has evolved.

I was upset when I learned some people didn't have to spend years in school trying to figure out all how to correctly sound out words in their language.

At least we have a large vocabulary to pull from.

What is completely correct language? That was always a lost cause; it's not how people work.
Most of the "grammar rules" that people like to hoist their flags upon have never been "rules" (except in the head of woolly minded prescriptivists like Orwell, Strunk, et al) because there has never been (and likely never will be) a formal English grammar.
> If incorrect grammar leads to shorter and simpler variable names

It doesn't.

> that other programmers understand

It confuses many programmers.