• 0 Posts
  • 26 Comments
Joined 1 year ago
cake
Cake day: December 30th, 2024

help-circle
  • Guttural@jlai.lutoProgrammer Humor@programming.devlook at this junk!
    link
    fedilink
    Français
    arrow-up
    3
    ·
    edit-2
    9 days ago

    As soon as I stopped trying to write textbook OOP stuff, this stopped occurring to me. That was years ago.

    I’m not saying I write perfect code, no. But when I read bad stuff I wrote, I can understand it and think of ideas about how to improve it if that becomes necessary.

    On top of writing more functional-style code, the way I achieved this was:

    • Absolutely no inheritance whatsoever. Composition + interfaces work wonders for what I do.
    • Minimal mutable state. This pays dividends when debugging.
    • Ditto for type-system-encoded nullability markers (ie. ? in C#, std::optional in C++…)
    • I avoid writing code just-in-case something happens. If I haven’t run it manually or via unit tests, it goes to the garbage bin (not an absolute, just a guiding principle). There’s a chance that code isn’t even correct to begin with and you’ll have to throw it away should you ever need it.
    • Low indirection. I don’t want to jump through 10 functions to see what something is doing, and nobody else does either.










  • Guttural@jlai.lutoPolitical Memes@lemmy.worldUh Oh
    link
    fedilink
    Français
    arrow-up
    2
    ·
    4 months ago

    I did acknowledge that there was influence (that goes both ways). But saying one stems from the other is still wrong, and I rest my case: the US are not the center of the world. There was a world before, and there will be one after its collapse, whether you like it or not.


  • Guttural@jlai.lutoPolitical Memes@lemmy.worldUh Oh
    link
    fedilink
    Français
    arrow-up
    2
    ·
    4 months ago

    If we’re talking about etymology, the term “left-wing” did indeed originate from French politics and designated political movements by where members sat in the French National Assembly. So, not originally American as you stated. But the etymology aspect is not really all that interesting.

    In terms of ideology, placing americans at the origin of everything is revisionism. Left-wing ideology is mostly descended from the thought of mostly European philosophers from the Age of Enlightenment.

    I can imagine a mutual game of influence that goes both ways, but to claim that Americans invented it all is a bit of a stretch.