当前位置:网站首页>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 .
边栏推荐
- Detailed explanation of multithreading
- 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
- 2022-01-27 redis cluster technology research
- Anan's doubts
- Flink code is written like this. It's strange that the window can be triggered (bad programming habits)
- [Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 6 exercises]
- C graphical tutorial (Fourth Edition)_ Chapter 20 asynchronous programming: examples - using asynchronous
- (first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)
- 人身变声器的原理
- 2022-01-27 redis cluster brain crack problem analysis
猜你喜欢

对业务的一些思考

regular expression

IDEA 全文搜索快捷键Ctr+Shift+F失效问题
![[colab] [7 methods of using external data]](/img/cf/07236c2887c781580e6f402f68608a.png)
[colab] [7 methods of using external data]

Smbms project

My creation anniversary: the fifth anniversary

AI 考高数得分 81,网友:AI 模型也免不了“内卷”!

When we are doing flow batch integration, what are we doing?

MySQL constraints

已解决(机器学习中查看数据信息报错)AttributeError: target_names
随机推荐
Sword finger offer 14- I. cut rope
Flink SQL knows why (17): Zeppelin, a sharp tool for developing Flink SQL
Anan's doubts
Logseq 评测:优点、缺点、评价、学习教程
Today's sleep quality record 77 points
【Colab】【使用外部数据的7种方法】
【数据库原理及应用教程(第4版|微课版)陈志泊】【第三章习题】
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter V exercises]
OpenHarmony应用开发之ETS开发方式中的Image组件
PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
sitesCMS v3.0.2发布,升级JFinal等依赖
剑指 Offer 16. 数值的整数次方
Logback log framework
MySQL functions and related cases and exercises
阿南的疑惑
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
Flink SQL knows why (7): haven't you even seen the ETL and group AGG scenarios that are most suitable for Flink SQL?
开始报名丨CCF C³[email protected]奇安信:透视俄乌网络战 —— 网络空间基础设施面临的安全对抗与制裁博弈...
Flink SQL knows why (XIV): the way to optimize the performance of dimension table join (Part 1) with source code
Logback 日志框架