ihan normi koodi työ ukko

  • 2 Posts
  • 54 Comments
Joined 2 years ago
cake
Cake day: June 5th, 2023

help-circle


  • Well, bad code is bad code regardless of the paradigm. I’ve just had bad experiences rewriting some horrible OOP codebases and opted out to use as much functional style as C# allowed me to.

    The main problem, as I see it, is that OOP encourages unnecessary abstractions and inheritance. These should be used as little as possible, because they typically increase complexity and make code harder to read and untangle. As an example, I’ve seen people define interfaces that don’t essentially define anything.

    Another problem is that OOP encourages mutable member variables. It’s very annoying to try to understand code where class C inherits from class B that inherits from class C. Good luck debugging when the methods of C modify a variable declared in A in subtle ways.

    As an idea OOP is very appealing. When I was younger, I would be thrilled to start designing a class hierarchy and interfaces when encountering a new programming challenge. Now I just try to think how to make things as simple and modular as possible.

    Edit: of course bad functional code is also bad code. It’s also very annoying to try to understand code where functions pass badly named functions around as parameters and use 10 function compositions in a sequence.



  • I think it would be better if the voters decided to gang up on Bernie and compromise with Biden over the others. Or the other candidates didn’t run at all. This way they just made a mockery of the election process.

    Edit: seriously, think about it. Why are you running at all if you’re fine with some other centrist taking over eventually? Just to keep up with the illusion of choice? Stay out of the race and let people see they didn’t have a choice in the first place.


  • tyo_ukko@sopuli.xyztoComic Strips@lemmy.worldThe Year 2100
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    1 month ago

    That’s literally just politics.

    And see, that’s the problem people complain about. They are doing bad politics by ganging up to the candidate that’s gaining support from the people who are looking for someone different. Those people end up in Trump’s camp when the Ds can only offer more corporate elites.





  • In hindsight, democrats had a horrible strategy letting Biden run the second time. Harris didn’t have much time to present a good platform that would have been her own - she was already the VP, so she couldn’t go directly against Biden, no one would have bought that.

    I think Israel/Palestine gets too much attention. An average voter wanted to hear the candidate say they’ll fix immigration and their personal finances. Harris was not terribly vocal on either (although I believe she would have done just fine on both). What Harris did was mainly obtaining celebrity endorsements, while Trump got headlines with his (arguably crazy) policies that appealed to the simpletons.



  • I typically listen to these after taking my morning LSD, and do get some psychoactive effects. Strangely the effects are completely different if I take amphetamines or light up the afternoon crack pipe before listening.

    Seriously tho, I just started to listen to this for the first time ever, and it does work as a pretty effective and non-intrusive noise blocker. Easy to ignore.

    Edit: never mind the second point, the surroundings just got quieter at the same time I started to listen.