good programmers solve problems, instead of creating new ones……
good programmers should write programms that make work easier and not creating more “artifical” work & overhead……
0. nobody is perfect, nobody is god
1. want to rewrite / add functionality / change an allready “working” class?
-> don’t brake old functionality, and backward compatibility, rather make 1. a new class with similar name or should it be a completely new project?
maybe the new class will silently replace the old class.
“never change a running system” don’t try to tune a system that “works” unless you know 100% that it will not affect other / old functionality.
2. DO NOT copy & paste classes or functions or methods or whatever -> OOP – Object (modular plugin segmented partitioned big-thing-divided-into-smal-pieces) Oriented Programming means:
2.1. one place, one code…… not multiple places same code.
-> maximum maintainability….. asuming that nobody is god -> humans make mistakes -> these mistakes will also get copied….. and then one needs to fix 10x functions instead of one often reused one.
-> maximum reuse of methods & functions,
2.2. (please comment to make this a more complete list!)
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!