TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Handlestuffandwritetofile() is a total mistake

2 pointsby harunurhanabout 11 years ago

1 comment

lutuspabout 11 years ago
&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 未加载