ihan normi koodi työ ukko

  • 28 Posts
  • 227 Comments
Joined 1 year 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
    ·
    10 days 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.




  • I don’t really believe this. Trump says a lot of stupid things to stay in the headlines, it makes his followers think the media is against him and nothing they say is true. Remember when he wanted to lock her up? Or build the wall.

    In saying that, I also have to say this is one of the biggest things I wouldn’t want to be wrong about.


  • I mean I lived through it. It’s also to be seen on the Wikipedia page. Initially Buttigieg was doing really well, but “for some reason” dropped out and endorsed Biden. Later on, just before the super Tuesday, also Warren and Bloomberg dropped out and endorsed Biden.

    At that time it felt more dramatic (probably because media was very anti-Bernie), which is not visible in the statistics.


  • Yeah probably it would be a bad thing. Republicans try to mobilize the idiot vote. To get that, you can be unhinged, but you alienate the more reasonable voters, the educated city people that the dems absolutely need.

    Although it would be interesting to see two unhinged parties try to fight it out to get the idiot vote. I assume Italian political culture to be something like that, all the smarter Italians I’ve ever spoken to seem extremely frustrated by their system.




  • Well that’s the problem, innit? The orange shit heap will get a good chunk of votes from the idiots no matter what. So the other candidate needs to be an A grade to attract the rest of the votes, otherwise the pile of feces will win. At this point it’s obvious the diarrhea puddle can do whatever he wants and still get his share of votes, so asking why he can do and say whatever and get away with it is pointless.




  • Actually, no. If the landslide victory was within the normal polling error, like it was, you would see some polls giving a big margin for Harris, some for Trump and some having them tied. When all polls are indicating a very close race, something is off. Perhaps bad sampling, people refusing to reveal their candidate or some sort of consensus seeking in the polling methodology.