当前位置:网站首页>Thinking on demand development
Thinking on demand development
2022-07-04 19:47:00 【Nimrod__】
This demand is compared with the last online upgrade demand , It belongs to a relatively large demand , Contains UI、 signal communication 、 Configuration modification and other parts , It basically involves all aspects of the project .
Because it is the demand received after returning from vacation , So I spent a lot of time getting familiar with the code in the early stage 、 Familiar with needs .
At the same time, there are still many gains in this demand .
From the three aspects of a demand, let's talk about the harvest .
Early familiarity :
Be familiar with a need , Personally, I think we should clarify several issues :
1、 What is the purpose of the requirement ?
Demand is to solve problems , The first thing is to find out what the purpose of requirements is .
The demand of this new Chengfeng access is to realize the dynamic generation of forms , Avoid upgrading traditional forms after fixing 、 Update the more troublesome situation .
Maintain the form by Json data + Form generation engine .
Adopt Abstract configuration items , The overall architecture is very flexible , The cost of subsequent maintenance iterations is significantly reduced , There is no need to change the code at the front and back ends of the Chengfeng side , Update the code on the device side to complete the configuration .
2、 What needs to be done ?
How should requirements be realized ? What is the goal achieved ?
After figuring out the problem , You can really master 、 Understand the details of this requirement and how to do it , What protocol is used to complete , How about the overall communication link .
The implementation of this requirement adopts Json Make a communication protocol , And the server webSockt, stay webSocket After binding , Complete a series of subsequent communication work and complete various goals of the dynamic form .
What I didn't do well in the early familiarization stage of this demand is that I didn't understand these two problems , As a result, I always feel unable to grasp the main line in the subsequent development process , As a result, it has not been very efficient to complete the development .
Medium term development :
In the process of mid-term development , What you are familiar with in the early stage is well reflected in this link .
Because I didn't do well in the familiarization stage of early needs , As a result, I haven't grasped the whole well in the process of this development , I feel like I can do whatever I want , It's not accurate 、 Clear goals to go , As a result, I often don't know where the next part is after I finish one part every time .
In the development phase , You should not rush to develop , But to understand 、 Find out what you want to do , What part do you want to develop now , What changes will be made after this part is finished , What is the next part ? That is to have a clear sense of the whole , Understand the context of development , This confusion must not happen in the future .
Spend more time on preliminary design !
Late joint commissioning :
During the joint commissioning , My biggest problem is that I don't communicate strictly according to the provided documents .
Because there are many changes to the communication protocol this time , Entities sent by themselves often appear Bean No response , Or it cannot be parsed .
In this case , The first thing to do is to confirm the entity Bean Whether to communicate according to the communication protocol .
In the process of joint commissioning, we should make clear each functional module , And the possible boundary conditions of the function .
Harvest summary :
1、 Before requirements development, we must understand the requirements .
2、Json Parsing :
(1) Constant for fields , The field will be given a default value , If the field is an object variable , If the field has no assignment, it defaults to empty , This feature can be used to make polymorphic fields Json analysis .
(2) Double Follow Integer Cannot be forced
(3) For recursive Json analysis , have access to JSONObject To parse all {} situation , Use JSONArray analysis [] The situation of .
3、 For complex Json Generate , Ask
边栏推荐
- 有关架构设计的个人思考(本文后续不断修改更新)
- 黑马程序员-软件测试--07阶段2-linux和数据库-09-24-linux命令学习步骤,通配符,绝对路径,相对路径,文件和目录常用命令,文件内容相关操作,查看日志文件,ping命令使用,
- Educational Codeforces Round 22 E. Army Creation
- Cbcgptabwnd control used by BCG (equivalent to MFC TabControl)
- 解密函数计算异步任务能力之「任务的状态及生命周期管理」
- Basic use of kotlin
- How to use async Awati asynchronous task processing instead of backgroundworker?
- 在线文本行固定长度填充工具
- 公司要上监控,Zabbix 和 Prometheus 怎么选?这么选准没错!
- C语言-入门-基础-语法-流程控制(七)
猜你喜欢
上线首月,这家露营地游客好评率高达99.9%!他是怎么做到的?
Explore the contour drawing function drawcontours() of OpenCV in detail with practical examples
记一次 .NET 某工控数据采集平台 线程数 爆高分析
HMM隐马尔可夫模型最详细讲解与代码实现
Oracle with as ora-00903: invalid table name multi report error
The explain statement in MySQL queries whether SQL is indexed, and several types in extra collate and summarize
Comment utiliser async awati asynchrone Task Handling au lieu de backgroundworker?
BCG 使用之新建向导效果
做社交媒体营销应该注意些什么?Shopline卖家的成功秘笈在这里!
Dark horse programmer - software testing - stage 08 2-linux and database-23-30-process port related, modify file permissions, obtain port number information, program and process related operations, Li
随机推荐
1009 Product of Polynomials(25 分)(PAT甲级)
92.(cesium篇)cesium楼栋分层
Swagger突然发癫
Several methods of online database migration
FTP, SFTP file transfer
Opencv functions and methods related to binary threshold processing are summarized for comparison and use
Online sql to excel (xls/xlsx) tool
Wechat reading notes of "work, consumerism and the new poor"
FPGA timing constraint sharing 01_ Brief description of the four steps
HDU 6440 2018中国大学生程序设计网络选拔赛
@Data source connection pool exhaustion caused by transactional abuse
项目中遇到的线上数据迁移方案1---总体思路整理和技术梳理
Upgrade the smart switch, how much is the difference between the "zero fire version" and "single fire" wiring methods?
Basic use of kotlin
一文掌握数仓中auto analyze的使用
The explain statement in MySQL queries whether SQL is indexed, and several types in extra collate and summarize
1005 spell it right (20 points) (pat a)
黑马程序员-软件测试--08阶段2-linux和数据库-23-30-进程端口相关,修改文件权限,端口号信息的获取,程序和进程相关操作,linux命令案例
New wizard effect used by BCG
Cbcgptabwnd control used by BCG (equivalent to MFC TabControl)