872 karma · joined Sep 20, 2013 (13y ago) · 164 submissions
comment 6y ago · link · parent
comment 6y ago · link · parent
Pardons are also interesting because they have to be affirmatively accepted, and they have to be for an actual crime that was committed — so there is endless debate about whether accepting a pardon is an admission of guilt.
comment 6y ago · link · parent
Someone's Erdős number is the same concept, but applied to coauthorship on research papers.
Someone's Erdős-Bacon number is the sum of those two numbers.
comment 6y ago · link · parent
It simply means that teachers have a lot less discretion, which will remove a lot of the potential for bias to affect their students in negative ways.
comment 7y ago · link · parent
That said, perhaps an improvement to the ADA would be budget to help producers of free content to become ADA compliant.
comment 7y ago · link · parent
Potentially, however the author makes another mistake: assuming that Apple, Google or Facebook actually know what they're launching at the time they set the date. I've heard many stories of "big bang projects" being pulled at the last minute.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
If you’ve used a typed tuple, then the type after access is based on what TypeScript statically knows. So array[0] would be number, but array[random() % 3] would be the union type.
113.
Open-sourcing Sorbet: a fast, powerful type checker for Ruby(sorbet.org ↗)
617 points · by abhorrence · 7y ago · 268 comments
comment 7y ago · link · parent
This is true of Javascript, but not of Ruby.
irb(main):001:)> 3 * "3"
TypeError: String can't be coerced into Fixnum
People commonly conflate dynamic typing with weak typing, Ruby has the former, but not the latter (with some explicit exceptions, e.g. to_ary and friends).That's not to say you can't still end up with some interesting problems though -- if we just slightly change your example:
a = 3
b = 3
# later...
a = "oops"
product = a * b
# product is now "oopsoopsoops"
But this isn't due to automatic "weak types" style coercion -- just that Ruby lets you build a repeated string by multiplying a string by a number.comment 7y ago · link · parent
comment 7y ago · link · parent
> The fact is, if we accept Marriott’s statement that the breach began in 2014, the system would already have been operating securely for five years.
It does not mean that. It means that we don't know of any exploited vulnerabilities before that point.
> If the detection tool was used prior to this September, why hadn’t the breach been detected earlier? And if the tool was not used earlier, how can they be so sure the breach occurred in 2014?
It isn't unthinkable that the new tool alerted them to a problem, and during investigation discovered evidence that the vulnerability had been abused in the past.
> It is almost impossible to imagine a scenario in which an external hacker is able to gain access to the primary encryption keys.
Why? The argument seems to be: the primary encryption key is important, and thus will be most carefully guarded, so it is unthinkable that it would actually be exposed.
Ultimately the article strikes me as an article written by someone who has a beef with Marriott, and he ends noting that it's possible that the breach occurred not due to issues with design, but due to the layoffs of Starwood's technical staff.