Robert C. Martin offers in the fist chapter of his book 'Clean Code' several definitions of 'clean code' from differen well known software experts. How do you define clean code?
Clean code is a reader-focused development style that produces software that's easy to write, read and maintain. Often, you may be tempted to consider your work complete when the application operates as expected. But we're not merely writing code for computer consumption.
Here are some of the characteristics of clean code: Clean code is focused — Each function, each class, and module should do one thing and do it well. It should be elegant — Clean code should be simple to read. Reading it should make you smile. It should leave you thinking “I know exactly what this code is doing”
Clean code should be elegant. It should be pleasing to read and it should make you smile. Clean code should be simple and easy to understand. It should follow single responsibility principle (SRP). Clean code should be easy to understand, easy to change and easy to taken care of.
These are the things that are important to me.
Code I'm not afraid to modify.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With