The other day I was looking at American sign language ... and I noticed that building the language was a commentary topic. Like in "The weather is good." This made me think about why we call methods / functions as follows:
function getName() { ... } function setName(v) { ... }
If we think about naming in a topic-comment function, the function names will be
function nameGet() { ... } function nameSet() { ... }
This might be better for a class having multiple goals. IE:
class events { function ListAdd(); function ListDelete(); function ListGet(); function EventAdd(); function EventDelete(); function EventGet(); }
Thus, the functions are grouped by "topic". If, as the previous name, the functions are grouped by Action-Noun, but sorted by noun.
I thought it was an interesting POV that other people think of function names / methods. Comment topic?
Obviously, confusing naming conventions in one project would be strange, but overall?
source share