search
HomeWeChat AppletMini Program DevelopmentCompletion of development of phonebook applet and thoughts
Completion of development of phonebook applet and thoughtsFeb 11, 2017 am 10:42 AM
Mini program development

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 to be 15 hours Left and right;

Here are some screenshots:

Login

Completion of development of phonebook applet and thoughts

##Personal configuration and registration

Completion of development of phonebook applet and thoughts

Main interface

Completion of development of phonebook applet and thoughts

Although it is a small program, I have summarized some experiences and written them down, maybe they will be used in the future.

1. Be sure to prevent being greedy for more and seeking more than you can eat. The last tank battle was aborted because of this reason. I wanted to have a dazzling interface, a novel structure, and use new technologies that had never been done before, but the result was a dead end. This time I kept it in mind, simplified the functions as much as possible, and made the interface as simple as possible, and finally achieved the right results.

2. Carry out technical testing first and then carry out actual development. For this program, I wrote three or four small programs to test whether the key technologies and ideas are feasible, and then proceed to development after completion.

3. Develop in layers and blocks, and finally assemble. Ensuring the independence between each layer not only facilitates development but also facilitates future maintenance and upgrades. The separation of data logic and interface allows for separate improvements to the interface or underlying logic in the future. When developing the upper-level interface, a TestData class is used, which uses a series of static methods to provide the fake data required by the interface. A console program was used when developing the lower layer. Wait until both are almost the same before assembling them.

4. Prioritize run-through and strive for refinement step by step. At the beginning, the interface was just a few crooked 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 do not rush to implement them. Return null or an instance of new or fake data taken out of testdata. 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, user-defined installation, and rollback. Ah, installation directory selection, pre-installation verification, data compression, installation progress tracking, detection of repair or uninstallation of previous versions...

6. Writing a program is an iteration, forever If a true value cannot be reached, it can only be stopped 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 be grouped

5. Exception handling issues

6. Data access can be isolated using a common excuse. IDataAccess, the factory only calls the interface and does not call the data access class, which facilitates the expansion of data access to a variety of different storage methods

7. Import and export

That’s all for now, more will be added when the time comes.

For more articles related to the development completion and reflections of the phone book applet, please pay attention to the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
PHP在小程序开发中的页面跳转与路由管理PHP在小程序开发中的页面跳转与路由管理Jul 04, 2023 pm 01:15 PM

PHP在小程序开发中的页面跳转与路由管理随着小程序的快速发展,越来越多的开发者开始将PHP与小程序开发相结合。在小程序开发中,页面跳转和路由管理是非常重要的一部分,它能够帮助开发者实现页面之间的切换和导航操作。PHP作为一种常用的服务器端编程语言,可以很好地与小程序进行交互和数据传递,下面我们来详细了解一下PHP在小程序中的页面跳转与路由管理。一、页面跳转基

如何在uniapp中实现小程序开发和发布如何在uniapp中实现小程序开发和发布Oct 20, 2023 am 11:33 AM

如何在uni-app中实现小程序开发和发布随着移动互联网的发展,小程序成为了移动应用开发的一个重要方向。而uni-app作为一个跨平台的开发框架,可以同时支持多个小程序平台的开发,如微信、支付宝、百度等。下面将详细介绍如何使用uni-app开发和发布小程序,并提供一些具体的代码示例。一、小程序开发前准备在开始使用uni-app开发小程序之前,需要做一些准备工

小程序开发中的PHP权限管理与用户角色设定小程序开发中的PHP权限管理与用户角色设定Jul 04, 2023 pm 04:48 PM

小程序开发中的PHP权限管理与用户角色设定随着小程序的普及和应用范围的扩大,用户对于小程序的功能和安全性提出了更高的要求,其中权限管理和用户角色设定是保证小程序安全性的重要一环。在小程序中使用PHP进行权限管理和用户角色设定能够有效地保护用户的数据和隐私,下面将介绍如何实现这一功能。一、权限管理的实现权限管理是指根据用户的身份和角色,授予不同的操作权限。在小

小程序开发中的PHP数据缓存与缓存策略小程序开发中的PHP数据缓存与缓存策略Jul 05, 2023 pm 02:57 PM

小程序开发中的PHP数据缓存与缓存策略随着小程序的快速发展,更多的开发者开始关注如何提高小程序的性能和响应速度。其中一个重要的优化手段就是使用数据缓存来减少对数据库和外部接口的频繁访问。而在PHP中,我们可以利用各种缓存策略来实现数据缓存。本文将介绍PHP中的数据缓存原理,并提供几个常见的缓存策略的示例代码。一、数据缓存原理数据缓存是指将数据存放在内存中,以

小程序开发中的PHP安全防护与攻击防范小程序开发中的PHP安全防护与攻击防范Jul 07, 2023 am 08:55 AM

小程序开发中的PHP安全防护与攻击防范随着移动互联网的迅猛发展,小程序成为了人们生活中重要的一部分。而PHP作为一种强大而灵活的后端开发语言,也被广泛应用于小程序的开发中。然而,安全问题一直是程序开发中需要重视的方面。本文将重点介绍小程序开发中PHP的安全防护与攻击防范,同时提供一些代码示例。XSS(跨站脚本攻击)防范XSS攻击是指黑客通过向网页注入恶意脚本

微信小程序中PHP开发的下拉菜单实现方法微信小程序中PHP开发的下拉菜单实现方法Jun 04, 2023 am 10:31 AM

今天我们来学习一下微信小程序中PHP开发的下拉菜单实现方法。微信小程序是一种轻量级的应用程序,用户可以在微信里直接使用,而且不需要下载安装,非常方便。而PHP是一种非常流行的后端编程语言,也是与微信小程序配合很好的一种语言。下面我们就来看看如何在微信小程序中使用PHP开发下拉菜单。首先,我们需要准备好开发环境,包括PHP、微信小程序开发工具和服务器。然后我们

小程序开发中的PHP页面动画效果与交互设计小程序开发中的PHP页面动画效果与交互设计Jul 04, 2023 pm 11:01 PM

小程序开发中的PHP页面动画效果与交互设计导语:小程序是一种在移动设备上运行的应用程序,能够提供类似原生应用的体验。而在小程序开发中,PHP作为一种常用的后端语言,可以为小程序页面增添动画效果与交互设计。本文将介绍一些常用的PHP页面动画效果与交互设计,并附上代码示例。一、CSS3动画CSS3提供了丰富的属性和方法,用于实现各种动画效果。而在小

小程序开发中的PHP错误处理与异常日志记录小程序开发中的PHP错误处理与异常日志记录Jul 04, 2023 am 11:16 AM

小程序开发中的PHP错误处理与异常日志记录随着小程序的不断普及,越来越多的开发人员开始使用PHP语言来开发小程序后台。在开发过程中,错误处理和异常日志记录是至关重要的。本文将介绍在小程序开发中如何处理PHP错误和记录异常日志,并给出相应的代码示例。一、PHP错误处理错误报告设置在PHP中,我们可以通过修改error_reporting和display_err

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!