Python coder

broken image
broken image

Well, a developer is free to write their code however they please because there is no fixed or binding rule to compel him/her to write clean code. That is it can easily be read and enhanced by other developers. According to Grady Booch, author of Object-Oriented Analysis and Design with Applications: clean code reads like well-written prose.Ĥ. Clean code is easy to read and reason about. Each function, class, or module should do one thing and do it well.Ģ. Clean code does one thing well.”įrom the quote we can pick some of the qualities of clean code:ġ.

broken image

The logic should be straightforward to make it hard for bugs to hide, the dependencies minimal to ease maintenance, error handling complete according to an articulated strategy, and performance close to optimal so as not to tempt people to make the code messy with unprincipled optimizations. “I like my code to be elegant and efficient. This quote from Bjarne Stroustrup, inventor of the C++ programming language clearly explains what clean code means: Python is one of the most elegant and clean programming languages, yet having a beautiful and clean syntax is not the same as writing clean code.ĭevelopers still need to learn Python best practices and design patterns to write clean code.

broken image