- https://www.butterfly.com.au/blog/website-development/clean-high-quality-code-a-guide-on-how-to-become-a-better-programmer
- 1 No Comments with code
It becomes hard to understand the purpose of a method or the changes made to the repository
2 Not choosing self explanatory names and the naming convention
self explanatory names describe the purpose and by following naming convention our code works everywhere as in the case of java bean
3 One function performing more than one task
We lose the flexibility to combine the functions in desired way and also get the undesired side effect
4 Not handling the runtime exception by using try catch
it is better to display a meaningful message than the absurd technical exception as well as it continues the execution in most of the cases
5 Not grouping the related classes and interfaces in packages
It adds to the complexity as the classes and interaces grow in number
Tuesday, February 27, 2018
clean coding
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment