• 0 Posts
  • 600 Comments
Joined 1 year ago
cake
Cake day: July 18th, 2023

help-circle





  • IMO, “One app/library/etc does one thing only” is a rather ignorant form of wisdom about encapsulation, anyways.

    Encapsulation is important regardless of how many disparate tasks a library handles. Doing one thing with one thing is a pretty good rule of thumb to get close to good results, but it is FAR from a golden standard, and serves to drag people away from the finer nuances of encapsulation.

    The ONLY time it is a hard and fast rule is at the individual function level. A single function ideally should have one task to accomplish, even if that task has side effects.

    I’m sure there are cross-dependency issues on an OS level that makes it a bit wiser to do for widely used system tasks, but to make it an absolute rule smacks of wisdom gone awry. Like not eating shellfish in the bible.




  • rofl! The difference vetween a progressive and liberal is NOT just when they decide to intervene in corporations…

    American liberals want to means test EVERYTHING that could concievably go to a poor person. A progressive realizes the red tape is fucking stupid and expensive in its own right. Remember the COVID funds? Sucked up by megacorporations more than small businesses like it was supposed to be for? Notice how American liberals didn’t go after those corporations or really care that the money instantly dried up for smaller fries?

    Yea, American liberals are ABSOLUTELY closer to American conservatives in practicality. It doesn’t matter how many polite words they use if the end result is FUNCTIONALLY THE SAME. No, conservatives wouldn’t have given any money to poor people, but as already said, liberals didn’t care that corporations with lawyers that could push all the red tape got the money, not small businessesthat actually neededrhe help.

    They BOTH serve to drain the government of public funds. You’ve just fallen for the pleasantries they put on the same negative slant of actions. No, liberals are not fascists themselves, but they’re always, always dumb enough to make things suck enough that fascists sound nice to fools.


  • IMO, the most important parts are to document the actual intent of the code. The contract of what is being documented. Sure, it’s only so useful in perfectly written code, but NO code is perfect, and few will come through later with full context already learned.

    It makes it sooo mich easier to know what is intended behavior and what is an unchecked edge case or an unexpected problem. If it’s a complicated thing with a lot of fallout, good documentation can save hours of manually lining up consequences and checking through them for sanity.

    You might say, “but that’s indication of bad code!”. No. Not really. Consequences easily extend past immediate code doing things as trivial as saving data to the database without filtering, or having a publicly available service. Even perfectly coded things come up with vulnerabilities all the time due to underlying security issues. It’s always great to have an immediate confirmation of what’s supposed to happen whether it’s immediate code or some library with a new quirk in a new version.



  • MotoAsh@lemmy.worldtomemes@lemmy.worldWarranty runs out at 30
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    3 months ago

    I felt that about many joints when I slacked off on working out for a few months in my 20s. I was still lifting enough to keep my muscles from too much atrophy, but my joints got… lazy? Dynamic motion and heavier weights suddenly felt (as suddenly as me taking exercise more serious again) like my joints were the limiting factor.

    and then I overworked my arms and got something like tennis elbow and basically had to rehab myself back to being able to exercise, all without my muscles being the limiting factor!

    Take care of your body, folks. You can go over 100% when you’re young, but your body makes you pay when you’re older!

    Reminds me of the stories of the people who do crazy stuff on adrenalin rushes, like lift a car off their dying child, and then end up potentially hospitalized or otherwise extremely sore for months. I think I get it now…


  • MotoAsh@lemmy.worldtoMicroblog Memes@lemmy.worldSike!
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    4
    ·
    3 months ago

    It’s not reallya misspelling. It’s an alternate spelling for a different form of the word. A word that started colloquially. Either way, several words have multiple accepted spellings even outside of regional stuff like color/colour. Pallet and palette are two normal spellings of that word with different main meanings but nigh equivalent over-all meanings, for example. I know I’ve ran in to many more, but the brain’s still starting up…