• 17 Posts
  • 2.64K Comments
Joined 2 years ago
cake
Cake day: August 21st, 2024

help-circle


  • nan is a ieee754-defined error. what javascript calls errors these days (it tends to change a lot) has little to nothing to do with that. it’s on every developer to familiarise themself with ieee754, it’s one of the most important documents in the profession.

    while nan is an invalid floating-point number, it is a valid value for a float-typed field. making it into an error is like adding a bit labelled “crash” to every number in your program.















  • phew, dodged a bullet there, thanks danskjävel :P

    i’ve read that before the alcohol monopoly laws there were about 200k distilleries in sweden which is one for every 25 people in 1910. even after the restrictions were put in place, the limit for a single meal was three schnappses (“två vita och en brun”) totalling 15cl of 40-60% abv liquor. that was considered the minimum they could get away with implementing. and people still cheated the system to get double rations. i can only assume the norwegians went through something similar.

    Edit: almost forgot to mention; wine was unrestricted during that time. no rationing.