[–] 3 points 1 year ago

Even KISS. Sometimes things just have to be complex. Of course you should aim for simplicity where possible, but I've seen people fight against better and more capable options just because they weren't as simple and thus violated the KISS "rule".

  • source
  • parent
  • context
  • [–] 14 points 1 year ago (3 children)

    One example is creating an interface for every goddamn class I make because of “loose coupling” when in reality none of these classes are ever going to have an alternative implementation.

    Sounds like you've learned the answer!

    Virtual all programming principles like that should never be applied blindly in all situations. You basically need to develop taste through experience... and caring about code quality (lots of people have experience but don't give a shit what they're excreting).

    Stuff like DRY and SOLID are guidelines not rules.

  • source
  • [–] 2 points 1 year ago

    It must be python3 then.

    Except on Windows! Actually it depends on if you installed Python from the Microsoft store or the official download. What a mess.

    They don't want to fix it because it might be confusing temporarily, so instead they're going to leave it broken forever.

  • source
  • parent
  • context
  • [–] 3 points 1 year ago (2 children)

    The non-strict versions also panic by default, but only in debug mode. So if you were willing to use abs() you should be willing to use strict_abs().

    Arguably a bit of a mistake to have the "obvious" function names be surprisingly unsafe, but I guess it's too late to fix that.

  • source
  • parent
  • context
  • view more: ‹ prev next ›