What is good code?
There are two main things we talk about when we say this is good code, but before I further discuss, what do you think good code is? Think about that.
What would you tell somebody if you’re asking them to write good code?
All right, good code can be described in two things or two points.
- Readable -Is your code just generally clean? can others understand your code?
- Scalable -The big O notation is what allows us to measure this idea of scalable code that can scale.
What does this really mean by Big O?
Well, I want you to imagine we have a task where we want to bake a cake. We have a recipe over here. And this recipe we’re going to use in our kitchen to bake a cake.
And there’s a good way of baking a cake and a bad way.
We give it the instructions, that is the recipe, and hopefully this recipe and instructions work well with our kitchen so that we can bake a cake quickly and a good cake at that.
Well, computers are machines. And these machines need to work in order to produce something for us and computers work in the…