许久之前,我更新了一条状态,建议刚入行的新人如何快速上手代码,其中有一条这样写到“多去看别人写的代码如果有必要可以把一些优秀的代码背下来”,然后冲突就发生了。我认为做为一个新人,如果他人把一个逻辑用一段非常优秀的代码实现了,那记住这段代码是一个正确的学习方法,就如同我们也会经常背诵优美的句子。而某人认为这是无稽之谈误人子弟,写代码主要是靠不断的练习和实践,哪有去背诵代码的。大家是怎么认为的呢?
There's the thing:
Some days ago, I push a tweet, suggesting how newbie coder get quickly start handy coding. One of mine advises was said, "Learn code from career programmer and memorize some excellent code if necessary", then somebody not agree with that. I think if someone implements a logic with a good design pattern, then remember this code is a good way to learning, just like we appreciate beautiful sentences. But somebody just think this is redicules and misleading the newbie. Mastering code is mainly continuous practice and experience, and remember code always not a good way to learn. What do you think?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.