Emphasize the importance of writing less code.
-
Write the minimum code needed to accomplish the task.
- Read your code again in order to remove the unnecessary code.
-
Write more code than needed only if at least 2 of the following conditions are satisified:
- Write more code allow contributors to understand better the code itself.
- Write more code made the implementation more efficent.
- Write more code allow to reuse it at least in 3 different places.
- Adding code allow to test it.
Having less code have a lot of benefits. We can list a non comprehensive list of the most important benefits:
- Less code is more maintainable.
- Less code has less bugs.
- Less code is easier to modify and to extend.
- Less code is, usually, more efficent.
- Less code require, usually, less time to write it.
- Less code is easier to test.
- Less code is easier to read.
- Less code is easier to rewrite somewhere else or in other language.
- Less code is easier to review and increase collaboration.
A very similar concept and mutual principle is the KISS Principle
Here a list of developers who tries to follow and spread the Movement
Please write your opinion, comment, contribution in this discussion:
or open a new one.
You can also fork this repository and open a PR to it to improve the manifesto, add your sign to it and to propose any change.
Thanks for reading and write less.