Generally speaking, creating an API fluid is what makes all programmers happy; And for the creators who write the interface, and for those who program against it. Looking beyond the conventions, why are we prefixing all of our getters with the word "get." Omitting this, as a rule, leads to a more flexible, easy-to-read set of instructions, which ultimately leads to happiness (albeit small or passive). Consider this very simple example. (pseudo code)
Usual:
person = new Person("Joey") person.getName().toLower().print()
Alternative:
person = new Person("Joey") person.name().toLower().print()
Of course, this only applies to languages where getters / setters are the norm, but are not directed to any particular language. Whether these conventions were developed around technical limitations (ambiguity), or simply by achieving a more explicit, intentional feeling like an interface, or perhaps this is just a case of a downward trickle. What do you think? And as if simple changes in these agreements affected your happiness / daily attitude to your craft (albeit minimal).
Thanks.
conventions
Joey
source share