After working for a long time, I feel that I am getting lazy, but I always feel that I can complete the customer's needs in a more relaxing way.
If we have accumulated certain project experience, after a certain amount of encoding, I think everyone should have a feeling (especially in some domestic SMEs): I feel that there is a sense of acquaintance.
For example: We keep creating tables / views for customers, then do some interfaces, then complete some logical features.
Although each of us may have this feeling, but because of a lot of reasons (historical reasons, some objective reasons, or people have a lazy nature), we will finally repeat the previous work again and again. Because it will feel so convenient, you don't need to know what brains.
However, I have been thinking about it: I am still at least now, I have a lot of motion brain, how many practice is still good for my body (I heard that Yi Shou Yannian, Herch), so I want to change some ideas I have always changed before. Be realistic.
Below is some ideas (if you think Mars, you will also hope that you can point one or two, TIA):
1) For products with a certain size or project, inquiries, statistics, etc., the same reporting system (here you should provide various queries, statistical presentation) should be a considerable part.
At this time, many people may say: Our project / products have a relatively perfect report system, and other developers only need to call the interface. Also, I believe that many people will think so, because this seems to be quite perfect. However, I personally think that if you have achieved this level, in a sense, our code logic and model are quite big, because if you want to modify, we may have to find the corresponding call interface. , Then modify the code. If it is considered from the perspective of oneself, it may feel that this is not a problem, it may feel that there is no much pressure every time it is modified, but I think we have a good solution (see "some ideas" for details. " section).
The same reason, there is also a query operation (here you refer to SELECT operations involving simplified data from the database, which may be just one intermediate result, not finally presenting to the user), and we tend to be different in the program The need to write SQL statement is a matter of great way.
"Some of the individual's idea": First, this idea is not for a certain technology (Java or .NET), but wants to unify a variety of implementation technology. In the reporting system, if you provide support for XML (of course, the rules may require some special provisions), in the client (here, other developers who call this section) only need to configure the corresponding configuration item, not any other Additional operations, you can get the desired reports directly, which should be more expensive, and safe, and if you can achieve personalization, internationalization, etc., it may be better. In the same way, if we are in the program, if you want to use query, you only need to configure XML to get results through the interface.
In terms of presentation, .NET may have helped us have done a lot of work, relatively simple (not, if you want to achieve a more powerful, you need to spend a lot).
2) Similarly, since we can do a unity of queries, some implementations of entry (including INSERT, UPDATE, DELETE, etc.) should also be unified. In other words, we only need to write very little code in our own program (it is likely to have only one entry), you can implement the entry features we want. If possible, we will then abstract the programs that you are responsible for part, and put them (some features for specific resources) as part of the configuration, so our code may be more. 3) to be renewed ...
Of course, the XML configuration involved in the above should be: the rules are as simple as possible, easy to understand.
Tired, this takes a break, there is time to continue some ideas (ideas such as SQL).
If, you can read these, and it's also clear that I want to express, then explain my language; otherwise I need to go to the language :)
Finally, if you have any good ideas, I hope to keep your brain cells and knock on the keyboard, Share.