• 0 Posts
  • 37 Comments
Joined 3 years ago
cake
Cake day: July 2nd, 2023

help-circle





  • it was also never about keeping the government in check. at the time of the founding fathers, the primary threats to democracy in the us were the major world powers of the time, such as the british or the french, taking an issue with that kingless freedom project overseas. both of those did actually attack the us post-1791.

    keeping the populace armed is fairly worthless against internal tyrants, there are plenty of places in the world with autocratic rule and easy access to firearms, and the us itself is also an oligarchy at this point, despite being chock-full of guns. guns don’t make you democratic, they just modify how power is gained and brokered.

    but an armed populace is much harder for an external aggressor to attack than a disarmed one, so when your democracy is stable internally but contested externally, guns do in fact help with that. but that was a very specific scenario in history, and in the present day, there are no external threats to the us. keeping the american populace armed has lost its usefulness long ago.












  • duh, it’s part of the IEEE 754 standard. every language that handles floating point numbers has NaN handling, and in every language NaN is a float. the only reason this is brought up as a javascript thing all the time is that js doesn’t have separate float and int types (aside from special structures like typed arrays and dataviews), it just defaults to float64 for simplicity and calls it number, which lines up with the “NaN is a number? nani???” joke.

    you don’t like it? consult the sorry excuse of thinking sand in the device you’re reading this on, because this is etched straight into it. every FPU capable of handling float32 and float64 numbers knows what NaN is and handles it the exact same way.

    this is one of the many things that sound unintuitive about programming but if you bother to understand the context you realise that if it wasn’t this way, it would be way worse. one of the most important skills in our field is to understand computers for what they are, rather than be puzzled that they aren’t what you thought they were, and it especially comes out in edge cases like this.


  • a magic link is not 2FA if it doesn’t also require a password. it’s 1FA, they just replaced the one factor.

    honestly i really hate websites that do that and yet don’t allow password-only 1FA. like sure, i understand that the average user’s password discipline is crap, but as a power user i’d really like it if all my accounts weren’t tied to all my other accounts sometimes.