|
|
|
|
|
by gfiorav
3223 days ago
|
|
This just seems like poor justification for laziness. You need to keep a project clean. This means profound refactors when concepts for the product change. Some rules are: - Keep it readable - Don't over engineering - Easy to remove - Good tests (complete, min stubbing, interface oriented. Never refactor and change tests at the same time. A lot of "veterans" are just resented with new paradigms and too egotistical to stay relevant. It takes effort to maintain a clean project, many will try to say "it's not worth it". That's just out of the question, it's your job, it doesn't have to be always pleasant or easy. If you don't suffer for it a bit now, someone else will in the future (maybe clients or users). This is what I like about open source projects, it teaches maintaince discipline. In the end, you can sum up all rules into one: - Make it easy to maintain |
|
Sometimes, your new paradigm is actually something that they tried 10 years ago.
> In the end, you can sum up all rules into one: Make it easy to maintain
That is only one of the many facets of programming that you have to balance: performance, memory consumption, ... .
If you want to push your system performance to the extreme, believe me, "easy to maintain" is not going to happen. But that is the trade-off that you will have to make at that point.
Veterans know that everything is a trade-off.
Let me give you one extreme: you are writing a throw away prototype. How much time and effort are you going to spend (=waste) on making your code easy to maintain?
I'll give you my veteran answer:
- If you are in 100% control of the project, you know you will throw away the prototype, and you can throw things quickly together.
- If you have a manager, he will take 1 look at the prototype and say "Wow, it's almost complete! Don't start a new project, just add these features to your prototype and it's done.". So in that case, make the "throw away prototype" easy to maintain.
That is what veterans bring to the table: making trade-offs in specific situations. And they've been through a lot of situations.