📄️ Write Good Code
When we say good code, it usually means two things:
📄️ Big O
We discussed Readability and Scalability are the two most important things to consider when writing code.
📄️ Clean Code - Cohesion
In this section, I will share some tips on how to write clean OOP code. It is not a complete guide but it is a good start.
📄️ Way to structure/ refactor code
1. Write down the key points at the top (i.e. sorted array). Make having all the details. Show how organized you are. Better to have an example.
📄️ Clean Code - Split function
When project keeps growing, some functions may become too long and hard to read. Why and how do we improve it. The answer is to split it into smaller functions.