• 0 Posts
  • 39 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle





  • Obviously taken to an extreme it’s bad, but I think it’s fine to have a function that can do one thing two or more different ways and ignore a certain parameter if one of the ways doesn’t need it. I’ve done some programming against the Win32 API and this is what jumped to mind for me, and I think it’s the typical case here. If I were designing from scratch I might split it into n functions that do it one way, but it’s such a small difference I wouldn’t fret over it. And of course making a change to the Windows API is an undertaking, probably not worth it in most cases.













  • The US has this bizarre setup where we “regulate” companies through the courts rather than directly through government agencies (this is not always the case, but it often is). The problem is that even when this “works”, i.e., the court punishes the company, they get a fine. So it becomes a financial decision: if we can get away with this, does that outweigh the risk that we might not? Sometimes it ends up profiting the company regardless.

    Related to this is that prosecutors have total discretion in the realm of plea deals. If you do a crime here, it becomes a negotiation with the prosecutor. What can you offer them to get off the hook? Sometimes it makes sense to do a crime, because the advantages you gain become leverage to negotiate your way out of punishment.