My gold and confusing rule:
Be explicit according the context, but not too much
Ex.
activeOnlineUsers activitiesMarkedAsComplete
activeOnlineUsers
activitiesMarkedAsComplete
They are "Ok", but i prefer take them into an object (JS example)
onlineUsers.active activities.markedAsComplete
Anothers simple examples might be:
user.getName()
db.getUser(id)
util.map()
i prefer named them like:
user.getFullName()
db.getUserById()
util.arrayMap()
Is better a long names, than a generic and inexpressive ones. But if the name is too long, is because there's something wrong in my code design.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My gold and confusing rule:
Be explicit according the context, but not too much
Ex.
activeOnlineUsers
activitiesMarkedAsComplete
They are "Ok", but i prefer take them into an object (JS example)
onlineUsers.active
activities.markedAsComplete
Anothers simple examples might be:
user.getName()
db.getUser(id)
util.map()
i prefer named them like:
user.getFullName()
db.getUserById()
util.arrayMap()
Is better a long names, than a generic and inexpressive ones. But if the name is too long, is because there's something wrong in my code design.