|
|
|
|
|
by mmarx
3562 days ago
|
|
> The easier it is to remove code from someone else's program, the "cleaner" the code. But then, contrary to intuition, a program becomes less clean by actually removing code (since now there is less code to remove, hence it is more difficult to remove code). A minimal (in the sense that no more code can be removed) program would be maximally unclean, whereas, intuitively, should it not be considered clean? Also, adding code always makes a program cleaner, since the newly added code can always be removed easily. |
|
Or else what happens?
"... should it not be considered clean?"
It should be considered finished.
"... since the newly added code can always be removed easily."
Not true in my experience. Unfortunately.
Sometimes it's necessary to add some code, e.g., a new driver for a new item of hardware. I have nothing against adding, per se.