TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What are some codebases from which beginners can learn to write good code?

4 点作者 curious16大约 2 年前
Peter Norvig in his book &quot;Paradigms of Artifical Intelligence Programming&quot; says in the preface:<p>&quot; All too often, the teaching of computer programming consists of explaining the syntax of the chosen language, showing the student a 10-line program, and then asking the student to write programs. In this book, we take the approach that the best way to learn to write is to read (and conversely, a good way to improve reading skills is to write). After the briefest of introductions to Lisp, we start right off with complex programs and ask the reader to understand and make small modifications to these programs.<p>The premise of this book is that you can only write something useful and inter- esting when you both understand what makes good writing and have something interesting to say.&quot;<p>Suppose a beginner who has taken an introductory programming or CS course using a language (for simplicity and generality say Python). Now they want to know how to solve variety of problems using that language and write good code.<p>What codebases should they read? What kind of projects should they start writing? By projects I don&#x27;t always mean gluing together apis with minimal work to build an app. There should be significant work to do from scratch even if they use a few apis for some parts of the project.<p>Do you have something specific in mind for such understandable codebases or walkthrough blogs&#x2F;videos?<p>For projects, I think in the starting there should be some handholding&#x2F;guidance. Are there any such resource?

2 条评论

TowerTall大约 2 年前
I would start with reading another book. It is called &quot;Code Complete: A Practical Handbook of Software Construction&quot; by Steve Mcconnell[1]. Don&#x27;t let the age of the book scare you. The advices given by this book is in large parts timeless and you will find if very inspiring and a great help to improve your code. At my former place of work, this book was given to all new coders (regardless of experience level) on their first day at work and their first task was to read it.<p>[1] <a href="https:&#x2F;&#x2F;www.amazon.co.uk&#x2F;Code-Complete-Practical-Handbook-Construction&#x2F;dp&#x2F;0735619670" rel="nofollow">https:&#x2F;&#x2F;www.amazon.co.uk&#x2F;Code-Complete-Practical-Handbook-Co...</a>
ericalexander0大约 2 年前
Check out Exercism<p><a href="https:&#x2F;&#x2F;exercism.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;exercism.org&#x2F;</a>