如何记忆和巩固大量编程知识和技巧
发布日期:2021-05-07 17:48:53 浏览次数:12 分类:原创文章

本文共 3574 字,大约阅读时间需要 11 分钟。

如何记忆和巩固大量编程知识和技巧

转载请注明出处:


文章目录


1. 要点概述

作者 Dan 在文中引用了一个读者来信,该读者在记忆代码知识时比较困难,问 Dan 有没有什么好的方法,比如记笔记之类的。

Dan 承认一开始接触编程的时候,也有这种记忆负担。他说道:

Programming is a “fractal” topic—you can keep drilling down deeper and deeper only to discover more and more complexity lurking under the surface.
编程是一个 “分形的” 话题,随着不停地深入钻研,你会发现隐藏于表面之下的是越来越多的复杂性。

对于此,Dan 有两个应对策略:

  • 策略一:公开发布关于编程的文章,有助于巩固知识
    这包括了写系统的教程或者短小的文章。
    因为在写作过程中,你需要整理思路和巩固记忆关键点。
    而且,害怕当众出丑的想法是这一技巧为什么有用的很大一部分原因。
    写完之后,还可以多次回顾文章,唤醒记忆。

  • 策略二:在电脑上写简短的笔记
    Dan 用到了 SimpleNote 这个软件,同时也提到了 EverNote 和其他类似的笔记软件,它们都可以很好的完成这项任务。
    Dan 并没有在这种形式自由的速写笔记中花费很多时间,只要它们能支持全文本搜索即可。有时候他只是粘贴一段代码,然后在代码旁边放几个关键字,以便后期快速搜索。


2. 原文在此

Hey there,

Back when I was just getting started with programming, I couldn’t fathom how professional developers were able to keep all of the relevant information in their heads while coding.

Programming is a “fractal” topic—you can keep drilling down deeper and deeper only to discover more and more complexity lurking under the surface.

It’s hard to tell what’s important and what isn’t.

And things can start to feel overwhelming pretty fast…

It sounds like newsletter member Jon is feeling that same pressure right now.

He writes:

My biggest challenge is remembering all that I've learned (in terms of code). Do you keep notes of all the code bits/tricks that you learn? something to look back on?P.S. I'm pretty much the person mentioned on your website, an intermediate Python programmer that isn't sure how to push to the next level. It seems like a lot of resources out there are dedicated to the absolute beginner.Love your website!

I’ve been pondering this question for a while.

And what it comes down to is two “coping strategies” that I’ve developed over the years:

I found that writing publicly about programming topics really helps solidify my knowledge.

Writing a tutorial or a short article about some topic forces me to structure my thinking and ingrains the key points so that they’re easier to remember.

So many times I’ve gone back to tutorials I wrote on my website to refresh my memory.

And frankly, fear of embarrassment is a large part of why this technique works so well…

I still get a little tinge of fear in the back of my head every time I post a new article or YouTube video:

“What if I didn’t get this 100% right? What if someone calls me out on it? What if I’m not as smart as I like to think?” etc.

This is all “lizard brain” type stuff that I know doesn’t matter when I think about it rationally—but I think it helps me keep my edge and it helps me remember things.

The other thing that I do is I keep “shorthand” notes on my computer. I’m using an app/service called SimpleNote for that because it synchronizes with my phone, too.

But you could use a service like EverNote or your phone’s note taking app for the same purpose.

All you need is plain-text and good and fast full-text search for your notes.

I found that that’s the best way to locate information quickly.

Sometimes I’ll just copy and paste a code snippet and throw some “keywords” around it so I can find it again later.

Or I’ll put some links to relevant articles in there.

It’s a very free-form technique and I don’t invest a lot of time into taking these notes.

But I found they’re still very effective.

I think some people call this a “personal wiki.” But to me that would mean imposing a little more structure and taking the time to create proper hierarchies.

For my “shorthand” note taking system I like to keep it fast and lose and to rely on full-text search.

And it’s worked out well so far.

Happy Pythoning!

— Dan Bader


完成于 2019.1.14

上一篇:查看 Python解释器路径的两种方式
下一篇:我们在 Python 中使用 for 循环迭代时到底做了什么

发表评论

最新留言

做的很好,不错不错
[***.243.131.199]2025年04月05日 18时56分35秒