5 basic principles of the developer
The 5 basic principles that every developer should know
Last edited: Sun 02/08/2020
1: KISSKeep it simple, stupid ! Don't komplex your code for a small enhancement and keep in mind that small and comprehensive code is easyer to maintain in the future.
2: DRYDRY stands for Don’t Repeat Yourself. This principle should help you to avoid code duplication or in other words, if you have to copy-past your code for the same function, you break this rule.
3: Single ResponsibilityYour class should have a single responsibility and only one reason to change. Don't mix methods in the same class but create a new class with a method that could me reuse in other classes.
4: Document your codeIt's simply a coding standard that you have to respect. Your own code should already explain what it do just by reading your variable, function and class names.
5: RefactorRestructure your code without changing its external behavior. You will increase your "bad code" to a much better code.
Leave a comment