3,588 karma · joined Dec 19, 2009 (16y ago) · 895 submissions
comment 10y ago · link · parent
Depending on the performance penalty you're willing to take, there's good alternatives to wrapping, such as: A) 64-bit integers, B) bigints, C) crashing on overflow.
Sure, saturation might be useful in certain circumstances, like manipulating audio samples, but it's generally something you want to make explicit. Using it everywhere? It's madness!
comment 10y ago · link · parent
But with this, if someone gets access to my master password, they get access to recent passwords, and when I create new passwords they get access to those too. If I'm not aware that my master password has been compromised (why should I be?) then I'd be merrily creating new passwords that are compromised at the moment of their creation.
Don't roll your own crypto, kids.
comment 10y ago · link · parent
e.g. in Python:
>>> from decimal import Decimal as D
>>> 2 * D("1.0")
Decimal('2.0')
>>> 2 * D("1.000")
Decimal('2.000')
>>> D("1.0") == D("1.000")
Truecomment 10y ago · link · parent
The website says stuff like
> The babysitter calls to say she picked up the kids from soccer and they’re heading home. You adjust the temperature from your phone so they’ll be cozy.
..which is a first-world problem if I've ever heard one. Just wear an extra layer for 10 minutes while the heating warms up. Jeez.
comment 10y ago · link · parent
i.e. if you can respond that the French for cat is "chat", then you will very likely remember that the English for "chat" is "cat".
comment 10y ago · link · parent
comment 10y ago · link · parent
The top comment is often a poor quality one, expressing some controversial view that gets replies, starving the lower top-level comments of upvotes, and cementing its place at the top.
It would be better to collapse replies to all top-level comments, and allow people to expand the replies to the comments they find interesting.
comment 10y ago · link · parent
https://en.wikipedia.org/wiki/Mononymous_person#Modern_times
https://en.wikipedia.org/wiki/Indonesian_names#Mononymic_nam...
comment 10y ago · link · parent
My problem is that I would like to generate wrappers for an API, in a variety of popular languages. I could just implement each wrapper separately by hand, but maintaining them as the API changes would be obnoxiously difficult.
comment 10y ago · link · parent
It feels like computers have taken one aspect of humanness: logic. Computers could do arithmetic, do algebra, play chess, and now they can play go.
It hurts because logic is usually thought to be one of the highest of human characteristics. Yes computers might never be able to replicate emotion, but even dogs have that.
There's still some aspects we have left to call our own. Computers perform poorly at language-based tasks. They can't write books, write math papers, compose symphonies. I hope it stays that way.
comment 10y ago · link · parent
So I'm unsure what kind of complexity you're adding by using it. Mental? Spiritual? Metaphysical?
comment 10y ago · link · parent
> I like to keep it simple and just use fetch. It’s promise based, it’s built in Firefox and Chrome, and it Just Works (tm). For other browsers, you’ll need to include a polyfill.
I laughed. Is this satire? There's no reason to have X, therefore you need Y and Z to replace X. It just works.
comment 10y ago · link · parent
You would think that they could relax. They no longer need to pander to the tabloids. If they liked, they could dismantle the media and rebuild it in their image. They could build a gigantic statue of Theresa May. They could go to war. The potential for evil doings is endless.
Instead they spend their time fucking over disabled people. I mean... why? What's in it for them?
comment 10y ago · link · parent
If your best practices require you to make potential users and contributors jump through hoops, then maybe those best practices are a bit shit.