Dear Programmers,
I will never understand why developers are so keen on inflection in
the first place - all this work to solve the problem of having to
manually type in the plural form of a model's name somewhere.
Problems:
- Typically only works for english.
- Frequently fails for irregular words.
- Requires an inflector; most (if not all) have imperfections
- You still need to manually handle edge cases where regular english
doesn't work for some reason
Net gains:
- You save an average of 8-10 keystrokes per model you build.
Did I leave anything out?
Conventions are good, but the problem with inflection is, you're
trying to operate on human language (english) rather than computer
language. Your class names and certain keywords may be english, but
your compilers do not understand english, nor human language of any
kind, they just interpret keywords, identifiers, operators,
constructs.
Regardless of how hard you try to maintain your illusions, your
compiler just doesn't know what you're talking about. Your words are
just symbols, and will not be interpreted as more than that - all your
efforts are in vain.
I don't understand why everyone insists on struggling with this, just
so they can type "user" instead of "user,users" in that one line of
code somewhere. Save yourself the trouble, and give me a line of code
where I can actually see how you're naming your objects and
collections, please!
Your logic does not compute!
</rant>
On Jan 27, 9:44 am, "
james.a.na...@googlemail.com"