- You're responsible for code quality.
- Use meaningful names.
- Write code that expresses intent.
- Code should speak for itself. Less comments = less maintenance.
- Leave the code better than you found it.
- Single-responsibility code. i.e function does 1 thing well. Less arguments = better function. classes: most methods use most of the class' properties.
- Tests (TDD).
- Work on big picture skeleton, then fill in the details later (interface first, implementation later).
- Independent components that can be used in different places.
- Master your craft.
Last active
October 23, 2018 01:32
-
-
Save kumalee/fdce6f96b781277b768f6a164d3daf9b to your computer and use it in GitHub Desktop.
Tips for good code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment