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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Recommended Books/Articles on clean code design.

9 点作者 safetyscissors超过 13 年前
Hi Everyone,<p>I've been having a problem lately where I feel like my code I feel like my code base is in disarray and I get to the point where I feel dirty.<p>I was wondering if there are any books out there to help me improve my coding style to a more organised structure and also how to make it easier to understand for myself and others.<p>Thank you :)

4 条评论

swanson超过 13 年前
The first step is to be aware that you aren't writing succinct, manageable code - so you are already making progress :)<p>I'd recommend these books, mixed with some searching around for best practices for whatever specific framework/language/toolkit you are writing code with.<p>Clean Code<p><a href="http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882" rel="nofollow">http://www.amazon.com/Clean-Code-Handbook-Software-Craftsman...</a><p>Refactoring to Patterns<p><a href="http://www.amazon.com/Refactoring-Patterns-Joshua-Kerievsky/dp/0321213351" rel="nofollow">http://www.amazon.com/Refactoring-Patterns-Joshua-Kerievsky/...</a>
vermasque超过 13 年前
An alternative or supplement to books would be to do static code reviews with someone. They can give feedback that a book can't. For example, ask the reviewer what would make the reviewed code easier to understand.<p>Also, you could look up open source projects in the technology stack that you use and compare their code base to yours. In other words, follow a good example if it exists.
munaf超过 13 年前
The Art of Readable Code is excellent.<p><a href="http://www.amazon.com/Art-Readable-Code-Dustin-Boswell/dp/0596802293/ref=sr_1_1?ie=UTF8&#38;qid=1325218247&#38;sr=8-1" rel="nofollow">http://www.amazon.com/Art-Readable-Code-Dustin-Boswell/dp/05...</a>
评论 #3406756 未加载
jackkinsella超过 13 年前
I highly recommend Refactoring, by Martin Fowler.