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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Handlestuffandwritetofile() is a total mistake

2 点作者 harunurhan大约 11 年前

1 comment

lutusp大约 11 年前
&gt; Routines should have only one purpose, If a routine does more than one thing then it is better split it into individual routines.<p>Yes, unless the routines&#x27;s purpose is to decide which action should be taken, and unless each action is so small that branching to other routines is inefficient. I can&#x27;t count the number of times I&#x27;ve seen someone pontificate about a rule that isn&#x27;t a rule.<p>If the OP&#x27;s views had merit, there would be no switch statements or function hashtables.
评论 #7614511 未加载