This repository aims to store some clean code techniques to help anyone that wants to excel their skills on Clean Code. Below there are some techniques described and most of them have examples in Typescript on this repository.
The techniques below are based on:
Variables names should be meaningful and express clearly what they mean.
Keep one identation level on your functions. If there are more levels, let's create other functions. With that, we follow Single Responsibility Principle.
Functions should be verbs.
Classes should be nouns.
When the condition is hard to understand, let's name it!
Keep one idendation level on your objects! If there are more, let's create other objects. With that, we
Destruct params to not enforce params positions.
Updated comments rarely exist. Keep comments updated is a hard task to accomplish.
Follow the good standards that your codebase already have.