当前位置:网站首页>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 .
边栏推荐
- Lora sync word settings
- Unity3d Learning Notes 6 - GPU instantiation (1)
- 空结构体多大?
- Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
- 墨西哥一架飞往美国的客机起飞后遭雷击 随后安全返航
- 做接口测试都测什么?有哪些通用测试点?
- AI enterprise multi cloud storage architecture practice | Shenzhen potential technology sharing
- HDU 4912 paths on the tree (lca+)
- 柔性数组到底如何使用呢?
- HDR image reconstruction from a single exposure using deep CNNs阅读札记
猜你喜欢
Memorabilia of domestic database in June 2022 - ink Sky Wheel
基于 QEMUv8 搭建 OP-TEE 开发环境
HDR image reconstruction from a single exposure using deep CNNs阅读札记
Unity3d minigame-unity-webgl-transform插件转换微信小游戏报错To use dlopen, you need to use Emscripten‘s...问题
ResNet-RS:谷歌领衔调优ResNet,性能全面超越EfficientNet系列 | 2021 arxiv
2020 Bioinformatics | GraphDTA: predicting drug target binding affinity with graph neural networks
微信红包封面小程序源码-后台独立版-带测评积分功能源码
How does the uni admin basic framework close the creation of super administrator entries?
The SQL response is slow. What are your troubleshooting ideas?
GNN,请你的网络层数再深一点~
随机推荐
GNN, please deepen your network layer~
硬件開發筆記(十): 硬件開發基本流程,制作一個USB轉RS232的模塊(九):創建CH340G/MAX232封裝庫sop-16並關聯原理圖元器件
中国1,4-环己烷二甲醇(CHDM)行业调研与投资决策报告(2022版)
重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障
Aardio - 不声明直接传float数值的方法
lora同步字设置
The nearest common ancestor of binary (search) tree ●●
第3章:类的加载过程(类的生命周期)详解
Chapter 4: talk about class loader again
嵌入式常用计算神器EXCEL,欢迎各位推荐技巧,以保持文档持续更新,为其他人提供便利
How does the uni admin basic framework close the creation of super administrator entries?
Build op-tee development environment based on qemuv8
Inno Setup 打包及签名指南
Solve project cross domain problems
手写ABA遇到的坑
Adjustable DC power supply based on LM317
剪映+json解析将视频中的声音转换成文本
Seata聚合 AT、TCC、SAGA 、 XA事务模式打造一站式的分布式事务解决方案
414. The third largest digital buckle
i. Mx6ull build boa server details and some of the problems encountered