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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Programming with a love of the implicit

5 点作者 sathishmanohar大约 8 年前

1 comment

felipellrocha大约 8 年前
I think the argument of the article is flawed at the core. &quot;Optimizing for fresh eyes is the wrong optimization&quot;. You&#x27;re always having to optimize for fresh eye, whether that be for a new coming developer, or for yourself, when you haven&#x27;t worked at some piece of code for a couple of months, after you have forgotten about the details of the implementation of something you wrote yourself.<p>Implicit code, by definition, increases your cognitive load. Because, now, not only you have to read code, and imagine about how it would run. You have to read it, remember all the context of what the code is supposed to do for you, and only then you&#x27;re able to picture what exactly it is you wanna change.<p>This leads to harder to maintain code. The &quot;amortized over a lifetime&quot; part never really happens. Worse is if you leave the company, leaving all the context behind! &quot;How does this code work? I don&#x27;t know... The person who knew left&quot;<p>One more thing against implicit code. It makes it <i>extremely</i> difficult to make things work once you&#x27;re out of the realm of the assumptions made by whoever wrote that piece of code...<p>And that is what i think is the killer part of writing implicit code... Besides everything else, if the assumptions don&#x27;t fit your use case 100%, you&#x27;re going to have a bad time making things work, because the implicitness hides that part of code (again, by definition)...