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.

Nykredit, the 33M dollars mistake

3 pointsby setraover 7 years ago

2 comments

cdoxseyover 7 years ago
One place this is really important is time. Never use a bare integer or float for measuring time (is it seconds? milliseconds? nanoseconds?), but something strongly-typed like datetime in python, or time.Time in Go.<p>Also please do this in your configuration.<p>Yes:<p><pre><code> timeout: 20s </code></pre> Or:<p><pre><code> timeout_s: 20 </code></pre> But not:<p><pre><code> timeout: 20 </code></pre> Future you will thank you.
eadmundover 7 years ago
I&#x27;m genuinely surprised that more systems don&#x27;t use units of measure types — it&#x27;s a simple fix for a genuine problem.