当前位置:网站首页>Should novice programmers memorize code?
Should novice programmers memorize code?
2022-07-06 22:24:00 【Dark horse programmer official】
Seeing that there are often programmers, Xiaobai will ask : Do you need to memorize code to learn programming ? Many libraries and functions can't remember , When you use it, you have to ask whether Baidu is very delicious , See those programming bosses who can hit it out without Baidu …
The first reaction to seeing this problem is why programmers should remember code ? What's the point of doing this ?
As for writing code to solve problems , Know what you want to do . How to do these things , Even wrote and understood the design documents , Even if you remember the code , Isn't it still “xx、yy and zz How to do the module XX things ” Do you ?

Should novice programmers recite code ?
The logic of programming is the core , Memorizing code will only make you doubt life .
for instance , Let you design an elevator dispatching system . You just need to have heard of something called Elevator scheduling algorithm , And it can realize the orderly dispatching of elevators , And you don't need to remember how to write code . When it's time to do , Just search for the specific implementation of the algorithm .
This example tells us that we don't need to remember all the code , We just need Remember what , What can I do? , Just do it .
If you see some old programmers writing code better 6, That may indicate that they have formed muscle memory , For some common code, you can basically remember , But if time is enough , You can, too . If not “Google” and “ Baidu ” It's really a good thing .
Is memorizing code completely useless ?
Memorizing code is not completely useless .
Because code is like an exclusive term that computers can understand , You can recite some simple instructions , This can improve your coding efficiency , Form your own “ Muscle memory ” This will also reduce unnecessary BUG, But there's just no need to memorize , Memorize code for memorizing code .
Doing projects is the best way to remember code
Most of the time, you can't remember some code because of nothing else , It's just because it's used less , In the face of this situation, you can write more code 、 More small projects , The advantage of this is that you may forget the specific code , But you will feel that the code is familiar , Over time, you will remember more and more .
In the process of learning programming , Can you recite code ? Welcome to share your views .
边栏推荐
- Hardware development notes (10): basic process of hardware development, making a USB to RS232 module (9): create ch340g/max232 package library sop-16 and associate principle primitive devices
- Force buckle 575 Divide candy
- Report on technological progress and development prospects of solid oxide fuel cells in China (2022 Edition)
- 2021 geometry deep learning master Michael Bronstein long article analysis
- Research and investment strategy report of China's VOCs catalyst industry (2022 Edition)
- GNN,请你的网络层数再深一点~
- zabbix 代理服务器 与 zabbix-snmp 监控
- 2022-07-05 使用tpcc对stonedb进行子查询测试
- Applet system update prompt, and force the applet to restart and use the new version
- A Mexican airliner bound for the United States was struck by lightning after taking off and then returned safely
猜你喜欢

(十八)LCD1602实验

Mise en place d'un environnement de développement OP - tee basé sur qemuv8

Notes de développement du matériel (10): flux de base du développement du matériel, fabrication d'un module USB à RS232 (9): création de la Bibliothèque d'emballage ch340g / max232 SOP - 16 et Associa

UNI-Admin基础框架怎么关闭创建超级管理员入口?

Memorabilia of domestic database in June 2022 - ink Sky Wheel

Powerful domestic API management tool

NetXpert XG2帮您解决“布线安装与维护”难题

剪映+json解析将视频中的声音转换成文本

Management background --3, modify classification

Aardio - 利用customPlus库+plus构造一个多按钮组件
随机推荐
0 basic learning C language - interrupt
Assembly and interface technology experiment 5-8259 interrupt experiment
重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障
Aardio - 封装库时批量处理属性与回调函数的方法
Attack and defense world ditf Misc
BarcodeX(ActiveX打印控件) v5.3.0.80 免费版使用
go多样化定时任务通用实现与封装
pytorch_YOLOX剪枝【附代码】
How does the uni admin basic framework close the creation of super administrator entries?
Report on technological progress and development prospects of solid oxide fuel cells in China (2022 Edition)
第4章:再谈类的加载器
ResNet-RS:谷歌领衔调优ResNet,性能全面超越EfficientNet系列 | 2021 arxiv
Netxpert xg2 helps you solve the problem of "Cabling installation and maintenance"
Inno Setup 打包及签名指南
A Mexican airliner bound for the United States was struck by lightning after taking off and then returned safely
软考高级(信息系统项目管理师)高频考点:项目质量管理
中国固态氧化物燃料电池技术进展与发展前景报告(2022版)
2022-07-05 使用tpcc对stonedb进行子查询测试
Xiaoman network model & http1-http2 & browser cache
12、 Start process