News for hackers. Stuff that matters.

laynetrain

Re:Why do programming languages suck at math? on Sunday June 25, 2017 @09:03PM (#14633206)
It was actually working with Ruby and dollar/cents amounts for Stripe that led to this frustration, haha. Thanks for the insight!
Re:Why do programming languages suck at math? on Sunday June 25, 2017 @07:35PM (#14632850)
And we can't even time travel or leave the galaxy yet (◔_◔). C'mon scientists.

https://www.google.com/#safe=off&q=2*3.18

Re:Why do programming languages suck at math? on Sunday June 25, 2017 @07:12PM (#14632762)
Thanks for the links. It all seems like excuses.

Why do programming languages suck at math?

What's the whole reason behind distinguishing between integers and float/doubles?units = 2price = 3.172 * 3.17 = ERRORIt blows my mind that so much effort has put into things like functions taking functions as arguments, and the characteristics of classes - yet a computer can't handle basic calculator math out of the box. PHP, Ruby, Swift, OCaml.. what gives?What is the complexity behind this?

( Read More... | 13 comments | on HN )
Re:Top 9 U.S. Cities Creating Most Tech Jobs on Wednesday May 10, 2017 @06:16PM (#14312237)
huh, no boston?
Someone sent me a csv once and only because I asked them to do so
Re:Should I finally drop QWERTY? on Friday April 28, 2017 @06:45PM (#14223768)
no
Re:Is Spotify hacked? on Friday April 28, 2017 @06:44PM (#14223760)
Did you mess around with an Android emulator?