当前位置:网站首页>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 .
边栏推荐
- 编程内功之编程语言众多的原因
- The difference between stratifiedkfold (classification) and kfold (regression)
- The principle of human voice transformer
- [Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 7 exercises]
- The 35 required questions in MySQL interview are illustrated, which is too easy to understand
- Task6: using transformer for emotion analysis
- IDEA 全文搜索快捷键Ctr+Shift+F失效问题
- 道路建设问题
- Logback 日志框架
- Kivy教程之 如何通过字符串方式载入kv文件设计界面(教程含源码)
猜你喜欢
【历史上的今天】7 月 3 日:人体工程学标准法案;消费电子领域先驱诞生;育碧发布 Uplay
Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
MySQL
18W word Flink SQL God Road manual, born in the sky
【数据库原理及应用教程(第4版|微课版)陈志泊】【第三章习题】
Detailed explanation of multithreading
已解决TypeError: Argument ‘parser‘ has incorrect type (expected lxml.etree._BaseParser, got type)
The shortage of graphics cards finally came to an end: 3070ti for more than 4000 yuan, 2000 yuan cheaper than the original price, and 3090ti
【R】 [density clustering, hierarchical clustering, expectation maximization clustering]
Road construction issues
随机推荐
2022-01-27 redis cluster cluster proxy predixy analysis
35道MySQL面试必问题图解,这样也太好理解了吧
有限状态机FSM
[today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
Mysql database basic operation - regular expression
Cadre de logback
2022-01-27 redis cluster technology research
The principle of human voice transformer
mysqlbetween实现选取介于两个值之间的数据范围
Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
2022-02-10 introduction to the design of incluxdb storage engine TSM
[colab] [7 methods of using external data]
Useful blog links
MySQL constraints
PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
父亲和篮球
刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
Spark实战1:单节点本地模式搭建Spark运行环境
The difference between session and cookie
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