• 0 Posts
  • 443 Comments
Joined 3 years ago
cake
Cake day: June 20th, 2023

help-circle






  • Look at what they need to mimic a fraction inaccurately.

    The fundamental mathematical nature of how binary floating point values are stored means that extremely straightforward and rational (in the mathematical sense of the term) base-10 arithmetic can surprisingly often yield results that are irrational (again, mathematically) in binary - hence why you’ll sometimes see a result of 3.000000000101325 or something like that in places where you’d expect the result to be simply 3.0









  • Any time I have a “superior” that insists tech debt isn’t a problem, I feel an incredibly strong compulsion to lock them in a room with a laptop and tell them to implement something extensibly and maintainably in our codebase, and that they won’t be let out or fed until they do.

    And by “implement” I mean write the code and the tests and test automation.

    And then they have to pass a code review, and write appropriate doc for any externally facing interfaces/apis/ui/etc.

    We’d stop having stupid fucking opinions like that right goddamn quick if this policy were implemented.