Conventions
by abhirama
Most programming languages have conventions. These could be for naming or code patterns.
How does this help?
A simplistic view is that it helps to keep code consistent, especially when multiple people work on it.
A deeper way to look at this I believe is in reducing the cognitive load.
In cognitive psychology, cognitive load refers to the effort being used in the working memory.
If you have conventions, it is one less thing to think about. You do not have to spend mental capacity on thinking whether to name variables small case, capital case, camel case, with hyphen, underscore etc. You blindly rely on the convention. Same applies to code patterns. You look at the pattern and automatically grok the idea; without expending grey cells.
I strongly believe that all tech teams should have conventions wherever possible; outside code too. Freeing up any amount of working memory for things that matter will go a long way towards increasing productivity.
[…] without saying that names should adhere to the conventions that your team has […]
[…] ensure you scream from the top of your voice so that it is not missed. Documentation, common conventions and putting in the right processes are some of the ways to mitigate this. The best is not to do it. […]
[…] language is not just about learning the syntax, it is more about learning the idioms and standard conventions of the language and the community behind […]