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.

Douglas Crockford, for JavaScript: The Good Parts

10 pointsby mcantorover 12 years ago

1 comment

user24over 12 years ago
This article isn't put across in a very balanced way. In fact I cut short my response when you said "Fuck you Douglas" because my hopes of receiving a civil reply evaporated. Anyway;<p>&#62; I say we have a reasonable expectation that people writing code that does financial calculations have a fucking clue as to how their math will work on a computer.<p>No we don't.<p>&#62; He goes on to suggest that the right way to handle this is by scaling your values to be in cents (or whatever quanta you happen to care about). It's interesting to see DSP-world fixed point evangelism suddenly materialize in JavaScript. Be warned: unless you heavily wrap this scaled approach in objects, you will make a mistake somewhere.<p>What? It's more likely you'll make a mistake dealing in whole cents than doing floating point math? Really?