• 16 Posts
  • 124 Comments
Joined 1 year ago
cake
Cake day: August 2nd, 2023

help-circle









  • Capuchin monkeys have it figured out:

    […] we have been documenting the spread of a new tradition in Pelon group – eyeball-poking. In this ritual, one participant inserts its finger in the other’s eyeball, slipping the finger deep between the eyelid and the bottom of the eyeball up to the first knuckle. As in handsniffing, the pair remains in this posture for up to several minutes, and often the one being poked in the eye inserts fingers in the partner’s nostrils or mouth during the eyeball-poking.

    https://www.sscnet.ucla.edu/anthro/faculty/sperry/ctp.html
















  • Using it in pipes looks cool. IMO the usage in writing git commit messages is actually not useful. Almost always you should be writing the why, not the what. Same thing for comments. Unless the code has a good reason to be written inscrutably e.g. for performance, write simple code and comment why you’re doing something as necessary. Which is not to say “the code comments itself”, but the “what” comments should be higher level at a function or file level




  • There’s at least one example you can look at, the Jenkins CI project had code like that (if (name.startsWith("windows 9")) {):

    https://issues.jenkins.io/secure/attachment/18777/PlatformDetail

    Microsoft, for all their faults, do (or at least did) take backwards compatibility very seriously, and the option of “just make devs fix it” would never fly. Here’s a story about how they added special code to Windows 95 to make SimCity’s broken code work on it:

    Windows 95? No problem. Nice new 32 bit API, but it still ran old 16 bit software perfectly. Microsoft obsessed about this, spending a big chunk of change testing every old program they could find with Windows 95. Jon Ross, who wrote the original version of SimCity for Windows 3.x, told me that he accidentally left a bug in SimCity where he read memory that he had just freed. Yep. It worked fine on Windows 3.x, because the memory never went anywhere. Here’s the amazing part: On beta versions of Windows 95, SimCity wasn’t working in testing. Microsoft tracked down the bug and added specific code to Windows 95 that looks for SimCity. If it finds SimCity running, it runs the memory allocator in a special mode that doesn’t free memory right away. That’s the kind of obsession with backward compatibility that made people willing to upgrade to Windows 95.