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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Was there any book that converted you from spaghetti coder to a good programmer?

7 点作者 curious16超过 2 年前
Spaghetti programming = writing code without any structure or thought and ending up with a mess that you can&#x27;t yourself debug or maintain after a few months.<p>Good program is something that is elegant, easy to maintain, easy to read and understand, etc.<p>Is there any book that you read in your journey as a programmer (professional or otherwise) that just warped your thinking model and made you a better programmer overall?<p>Or maybe a side project that you did that created this paradigm shift?

5 条评论

jleyank超过 2 年前
I don&#x27;t recall a book per se, although I read a number of them in the 90&#x27;s (Code Complete, Pragmatic Programmer, ...). In my case, practice and the necessity of maintaining code led&#x2F;forced&#x2F;encouraged me to get better at writing code that was clear and (eventually) more robust. They might write about this, but until you&#x27;re standing in that swamp watching the alligators approach that you are properly incentivized to get better.<p>But remember from The Soul of a New Machine, &quot;Not everything worth doing is worth doing well. Everything not worth doing is not worth doing well...&quot;
评论 #32854339 未加载
simonblack超过 2 年前
Somewhere in the 80s, probably an article in BYTE, showed how spaghetti code was structured in that program flow crossed other flow lines, while structured code had closed modules with flow that didn&#x27;t cross other flow lines, but were more &#x27;onion-shell&#x27; like in their modularity.<p>After that, my increasing use of a structured language like C rather than continuing in my spaghetti-code BASIC programming helped a lot too.
devops_monkey超过 2 年前
I have been searching for something similar. It seems like in the 90s up to the 2010s-ish there were some great books on the subject (code complete, pragmatic programmer, clean code, etc.). But I have yet to find a book of similar caliber that is a modern version of those books. Would love to see what others are reading along these line, books or other wise.
debanjan16超过 2 年前
For me it was How to Design Programs (HtDP) by Felleisen et al.<p>Before that I wrote code that I know hate from my core. It really taught me how to write code properly using functions. More than that it taught me how to break down a problem into parts and solve each part correctly.<p>Very few books teach problem solving and programming together is such a fantastic way.
ajajajaja超过 2 年前
&quot;Learn you a Haskell for Great Good&quot; by Miran Lipovača.