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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A proof of concept tool to verify estimates

2 点作者 jeremyscanvic20 天前

1 comment

turtleyacht20 天前
A defensive programming nit is not to return the desired result [1] but to show all collected cases are true.<p><pre><code> def defensive_true(): # assume False ... return arr.all(True) </code></pre> There are tests, but some wild refactoring in the night and &quot;tests still pass,&quot; leading to a blind ship, could be a tiny risk.<p>Not a big deal, just I don&#x27;t trust myself to return the happy path if the middle could change.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;teorth&#x2F;estimates&#x2F;blob&#x2F;main&#x2F;src&#x2F;estimates.py#L504">https:&#x2F;&#x2F;github.com&#x2F;teorth&#x2F;estimates&#x2F;blob&#x2F;main&#x2F;src&#x2F;estimates....</a>