|
|
|
|
|
by ozim
3154 days ago
|
|
Let's talk about risk of regression. Ok I forgot to update some code in one place because I was doing duplicated code. If it is often used place it will be found out quick by QA or users. I kind of have more control over what can break. On the other hand I made something that is abstract and used in many places in code.
I might not be able to tell what will break maybe it will be 5 places maybe none. In the end you should be able to find similar code in all project files with the tooling.
The same with references to abstract code, but abstractions are behind interfaces or are subtypes and it is harder to find in my opinion than doing CTRL-F on all files. Specially with OOP code until you run the program you might not know which method is going to be called. |
|