Code is Communication
Your code communicates with future developers—including future you. Make it clear.
Naming Things
Use descriptive names. getUserById is better than getData.
Functions Should Do One Thing
Small, focused functions are easier to test, debug, and reuse.
Comments Explain Why, Not What
Good code is self-documenting. Comments should explain decisions and reasoning.
Any fool can write code that a computer can understand. Good programmers write code that humans can understand. — Martin Fowler