当前位置:网站首页>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 .
边栏推荐
- Powerful domestic API management tool
- 枚举与#define 宏的区别
- 柔性数组到底如何使用呢?
- What a new company needs to practice and pay attention to
- Aardio - 通过变量名将变量值整合到一串文本中
- 图像的spatial domain 和 frequency domain 图像压缩
- HDU 2008 digital statistics
- 每日一题:力扣:225:用队列实现栈
- Heavyweight news | softing fg-200 has obtained China 3C explosion-proof certification to provide safety assurance for customers' on-site testing
- Chapter 3: detailed explanation of class loading process (class life cycle)
猜你喜欢

软考高级(信息系统项目管理师)高频考点:项目质量管理

The nearest common ancestor of binary (search) tree ●●

2021 geometry deep learning master Michael Bronstein long article analysis

About the professional ethics of programmers, let's talk about it from the way of craftsmanship and neatness

Leetcode question brushing (XI) -- sequential questions brushing 51 to 55

GPS from getting started to giving up (12), Doppler constant speed

硬件開發筆記(十): 硬件開發基本流程,制作一個USB轉RS232的模塊(九):創建CH340G/MAX232封裝庫sop-16並關聯原理圖元器件

2022-07-04 mysql的高性能数据库引擎stonedb在centos7.9编译及运行

Assembly and interface technology experiment 5-8259 interrupt experiment

A Mexican airliner bound for the United States was struck by lightning after taking off and then returned safely
随机推荐
新手程序员该不该背代码?
Mongodb (III) - CRUD
China 1,4-cyclohexanedimethanol (CHDM) industry research and investment decision-making report (2022 Edition)
0 basic learning C language - digital tube
Crawler obtains real estate data
MySQL数据库基本操作-DML
C # realizes crystal report binding data and printing 4-bar code
3DMax指定面贴图
AI 企业多云存储架构实践 | 深势科技分享
CCNA-思科网络 EIGRP协议
PVL EDI 项目案例
[leetcode daily clock in] 1020 Number of enclaves
将MySQL的表数据纯净方式导出
Barcodex (ActiveX print control) v5.3.0.80 free version
Assembly and Interface Technology Experiment 6 - ADDA conversion experiment, AD acquisition system in interrupt mode
Classic sql50 questions
Attack and defense world ditf Misc
Memorabilia of domestic database in June 2022 - ink Sky Wheel
2020 Bioinformatics | GraphDTA: predicting drug target binding affinity with graph neural networks
Unity3d minigame-unity-webgl-transform插件转换微信小游戏报错To use dlopen, you need to use Emscripten‘s...问题