This week I spent a few days in my spare time developing a small phone book program.
Although the program is small, simple, and ugly, it is indeed the first complete and usable App that I have developed. Conception, coding, simple testing, and finally the installation package are all completed by one person. Although I have written a lot of C# and Java code (tens of thousands of lines) and countless gadgets in C and C++ before, I have either only completed a small part of a large project, or it has been boring. "Hello world!" tests the feasibility of the algorithm.
Basic information of the program:
Development tools: VS2010;
Large Small: installation package 500k;
Valid code: about 500 lines;
Architecture: .NET 4.0 Client Prifile;
Main technologies: XML reading and writing, WPF interface production;
Development time: less than 20 hours, estimated at 15 hours Left and right;
Here are some screenshots:
Login
buttons, with the interface name written in the middle of the interface. There are only two results of clicking the button, either going to another interface, or popping up a messagebox to display the name of the button. Write out all the functions first, and don’t rush to implement them. Return an instance of null or new or fake data taken out of testdata, etc. After running through, implement them one by one. The interface is enriched little by little, and finally there are those insignificant things like adjusting the position and size.
5. I made an app but could not get the installation package. Later, I reinstalled VS and found out that the installation package is comprehensive and profound, such as encryption, installation environment monitoring, and userCustomized installation Ah, rollback, installation directory selection, pre-installation verification, data compression, installation progress tracking, detection of repair or uninstallation of previous versions...
6. Write The program is an iteration, which can never reach a true value. It can only stop when the results of the two iterations differ by a small enough amount. This is considered to be a solution. About future improvements (maybe a long time later) Things have changed): 1. Data access can be improved, you can consider using the IQueryable type for reuse; 2. The interface needs to be improved 3. The controller function needs to be improved , remove BL and replace it with multiple Factories 4. Records cannot begrouped
5. Exception handling
Problems6. Data access can be isolated with a common excuse. IDataAccess, the factory only calls the interface
does not call the data access class, which facilitates the expansion of data access to multiple different storage methods[Related recommendations]
1. WeChat mini program source code download
2. WeChat mini program demo: Yangtao
The above is the detailed content of Mini program development of small phone book functions. For more information, please follow other related articles on the PHP Chinese website!