Good Code

Also see Clean Code.

Good code is what you don’t see.

It’s really easy to write bad code and really hard to write good code.

It is easy to abstract away, building one abstraction on top of the other.

But what is good code? I think I knew, but I forgot. The more I think about it, the more confused I get. 10x Developers write good code that can scale.

“the only way to go fast is to keep your code clean”

What is code that can scale?

Clean code is focused. Each function, each class, each module exposes a single-minded attitude that remains entirely undistracted, and unpolluted, by the surrounding details.

”… pretty much what you expected”

Don’t have huge jumps in abstraction.

when you first learn about functions, you learn that functions help you reuse code. But more than reusability, it’s about creating a new layer of abstraction. And that isn’t bad. When you read things, you don’t want to read it like that.

Top down reading

The author says that reading code should be top down. Every time, you go down a layer of abstraction.