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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Keep your source code SIMPLE

71 点作者 kevingoslar超过 5 年前

7 条评论

taberiand超过 5 年前
My feeling is these paradigms, SOLID and SIMPLE, boil down to basically: small objects, connected minimally, though interfaces.<p>SIMPLE appears to be leaning even more towards the functional programming side of things; I think we should probably just get it over with and accept that composition of functions operating on immutable data structures is just the right way to go.
评论 #21499237 未加载
评论 #21500116 未加载
评论 #21505323 未加载
评论 #21499712 未加载
thinkpad20超过 5 年前
&gt; Error: ENOENT, no such file or directory &#x27;~&#x2F;foorc&#x27;<p>I can’t count how many times I’ve seen error messages that look like this, often with no context at all, in JavaScript apps, even widely used ones like npm and webpack. Proper error handling is never easy, but the JS community seems particularly given to avoiding it.
hinkley超过 5 年前
Complexity is combinatorial. If you compose your code of overly complex components the end result will have much more emergent behavior.<p>If everything at the bottom is straightforward, then people will spot more overarching concerns, instead of bogging down in minor details.<p>I’d really love to see some cognitive science applied directly to UX and code quality concepts. Surely some of the things we espouse but don’t enforce are spot on, and others are cargo culting. Refining that list might make it harder to ignore.
orenkt超过 5 年前
can author of that medium post show real world example of an app, build with those principles and rules from start to end?<p>it would be also very educational to see decision and design process of an app build with those rules.
lostgame超过 5 年前
I couldn’t agree more.<p>Also; keep it <i>clean</i>. Don’t over-comment, but comment.
评论 #21499167 未加载
评论 #21508134 未加载
评论 #21499007 未加载
评论 #21498682 未加载
评论 #21499235 未加载
dplgk超过 5 年前
But wait, I want all my code to work in linear space and time, look like assembly code and scale to 4 billion servers.
评论 #21499977 未加载
avmich超过 5 年前
&quot;Keep the story going. Sign up for an extra free read. You&#x27;ve completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.&quot;<p>Sorry, can&#x27;t read behind paywall.
评论 #21501287 未加载