Excessive abstraction and drawbacks of detail

zhaozj2021-02-11  190

- Remember a sentence: If we ask for everything, you can't do anything.

Example (also my lesson):

Something of a device management: Add Delete Enable, etc., use multiple buttons to complete;

Then there correspond to different functions; for perfect, I use a function to handle;

The existence problem is that the action type is handled each time (add deletion enabled); this seriously affects the efficiency of development;

Originally, it is possible to make a quick implementation, as long as the added process COPY can be modified;

The actual situation is that the code writes are slow; because here is, side design side is achieved;

It feels that the development is actually: functional implementation is the first goal, especially small projects

The modularity of the code can be done by reconstructing methods; Adjust design);

Of course, for large projects, there should be a good design, so you don't need to be refactored;

转载请注明原文地址:https://www.9cbs.com/read-5254.html

New Post(0)