当前位置:网站首页>Swiftui development experience: the five most powerful principles that a programmer needs to master
Swiftui development experience: the five most powerful principles that a programmer needs to master
2022-07-03 13:21:00 【Knowledge fatness】
In the programming world , We follow the principles of some people . Some are widely spread knowledge , But some don't usually say , Because it comes from personal experience , for example :
- Never start programming without a solid idea of what you are going to do . This applies to the most diverse projects , Even the simplest program . Coding without a specific direction usually leads to rework .
- Simplicity is better than complexity . It's not just you , Everyone else must know what they are doing . Never despise comments .
- If you are working on a medium-sized project and have the necessary resources , Please consider using MVC framework . Correctly separating various files in the project makes development easier .
- Although it is tempting to create functions for complex things such as computation , But it's worth using your library for this . please remember , You usually don't have time to write code from scratch , And many libraries are created by individuals and organizations of subject matter experts .
- Divide and rule . If you have a big problem , Break it down into smaller parts and solve them . This helps / Improve your understanding of the problem , And make it easier to solve . This is also a basic algorithm construction technology .
- Reuse and decouple as much as possible . Write reusable and general-purpose functions / class / Code ( Within the scope of common sense and problem requirements ). Do the same thing , Reuse others' code / Solution . It can save you time now or in the future .
Write code for people, not machines . Don't write code that you won't understand tomorrow or that others won't understand . For writing code that only you know , You are not a better programmer ( in my opinion , On the contrary ). Write code for people to understand .
Programming is a difficult task , Like many fields of knowledge , Only through a lot of practice and principles to learn .
边栏推荐
- Sword finger offer 15 Number of 1 in binary
- [Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 6 exercises]
- Fabric.js 更换图片的3种方法(包括更换分组内的图片,以及存在缓存的情况)
- SQL learning notes (I)
- rxjs Observable filter Operator 的实现原理介绍
- Flink SQL knows why (19): the transformation between table and datastream (with source code)
- Fabric. JS three methods of changing pictures (including changing pictures in the group and caching)
- 【数据库原理及应用教程(第4版|微课版)陈志泊】【第四章习题】
- 正则表达式
- Slf4j log facade
猜你喜欢
这本数学书AI圈都在转,资深ML研究员历时7年之作,免费电子版可看
Flink SQL knows why (13): is it difficult to join streams? (next)
Today's sleep quality record 77 points
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter IV exercises]
[email protected]奇安信:透视俄乌网络战 —— 网络空间基础设施面临的安全对抗与制裁博弈..."/>
开始报名丨CCF C³[email protected]奇安信:透视俄乌网络战 —— 网络空间基础设施面临的安全对抗与制裁博弈...
【Colab】【使用外部数据的7种方法】
rxjs Observable filter Operator 的实现原理介绍
PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?
有限状态机FSM
用户和组命令练习
随机推荐
8皇后问题
sitesCMS v3.1.0发布,上线微信小程序
关于CPU缓冲行的理解
R language uses the data function to obtain the sample datasets available in the current R environment: obtain all the sample datasets in the datasets package, obtain the datasets of all packages, and
Kotlin - 改良装饰者模式
对业务的一些思考
【数据库原理及应用教程(第4版|微课版)陈志泊】【第三章习题】
Solve system has not been booted with SYSTEMd as init system (PID 1) Can‘t operate.
The R language GT package and gtextras package gracefully and beautifully display tabular data: nflreadr package and gt of gtextras package_ plt_ The winloss function visualizes the win / loss values
2022-01-27 redis cluster brain crack problem analysis
已解决TypeError: Argument ‘parser‘ has incorrect type (expected lxml.etree._BaseParser, got type)
(first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)
STM32 and motor development (from MCU to architecture design)
Convolution emotion analysis task4
Flink SQL knows why (13): is it difficult to join streams? (next)
MySQL_ JDBC
SQL learning notes (I)
道路建设问题
MySQL functions and related cases and exercises
MapReduce实现矩阵乘法–实现代码