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.

Production Languages and Toy Languages (2008)

16 pointsby nickdrozdalmost 6 years ago

2 comments

bluejekyllalmost 6 years ago
“I would rather write more clunky code now and avoid having my code tossed two years from now by a maintenance programmer who can’t figure out what I did.”<p>I don’t know that this is possible. Changes in patterns and language features (even legacy languages are gaining new features) will mean that someone will come to your code and need to refactor it for the new system&#x2F;model&#x2F;design, etc. It’s not very easy to predict the future and what current style you use that may or may not be desirable in the future.<p>Optimize for components that can be rewritten, replaced, and repurposed. Put a lot of tests around your code so that during a refactor it’s possible to understand if the refactor is safe. Anticipate that your code will need to be replaced.
lalaithionalmost 6 years ago
The `sqrt` example seems like a bad example. Even if you have written less than 100 lines of Lisp in your life (like I have), it&#x27;s pretty easy to figure out what that code does if you know what a fixed point and Newton&#x27;s method are.
评论 #20148218 未加载
评论 #20148167 未加载