tyo_ukko

joined 1 year ago
[–] tyo_ukko@sopuli.xyz 2 points 9 hours ago* (last edited 9 hours ago)

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.

[–] tyo_ukko@sopuli.xyz -2 points 1 day ago* (last edited 1 day ago) (5 children)

You did the right thing. OOP was invented by people who were worried about their job security, to obstruct others from understanding their code.

[–] tyo_ukko@sopuli.xyz 5 points 1 day ago

This is non-news. It's just a small Anschluss to obtain a bit of Lebensraum. Nothing nefarious as the article tries to make it seem.

[–] tyo_ukko@sopuli.xyz 1 points 1 day ago* (last edited 1 day ago)

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.xyz 6 points 1 day ago (2 children)

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.

[–] tyo_ukko@sopuli.xyz 9 points 1 day ago

Don't forget the part where everyone dropping out endorsed Biden right after. Another funny case was Buttigieg, who was doing well after the first few primaries, even won some, but then just decided to drop out.

[–] tyo_ukko@sopuli.xyz 1 points 3 days ago

Do it in a school for the real authentic experience.

[–] tyo_ukko@sopuli.xyz 0 points 4 days ago

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.

[–] tyo_ukko@sopuli.xyz 2 points 5 days ago (1 children)

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.

[–] tyo_ukko@sopuli.xyz 1 points 5 days ago (1 children)

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.

[–] tyo_ukko@sopuli.xyz 4 points 5 days ago (3 children)

Wasn't 2020 the year when all of the primary candidates but Biden just decided to drop out before super Tuesday in order to not split the vote against Bernie? In my opinion it was worse than 2016.

[–] tyo_ukko@sopuli.xyz 4 points 5 days ago* (last edited 5 days ago) (5 children)

I think he's referring to the time when the DNC legit fucked over Bernie Sanders. We all saw it, yet the D voters in the US sucked it up and voted for Biden, only to see the shit show known as election 2024.

 
 

Eräänä lauantai-iltana, ei niinkään kauan aikaa sitten, tapahtui tällainen episodi, jonka ihan terapiamielessä päätin kirjoittaa ylös ja postata tänne riesaksenne.

Asetelma lähti siitä, että istuimme vaimon kanssa keittiön pöydän äärellä illallisen jälkeen juttelemassa niitä näitä. Tällä kertaa teema alkoi luisua vaimon itsetunto-ongelmiin, jotka silloin tällöin nostavat päätään kun on se ikävä aika kuukaudesta. Suurimman osan ajasta hän on erittäin herttainen ja miellyttävä ihminen, jota en missään nimessä vaihtaisi pois. Mutta, kuten meillä kaikilla, hänelläkin lähtee joskus lapasesta.

Puheet alkoivat pikkuhiljaa saada huolestuttavan suunnan ja kuullessani vaimoni suusta että "Katsoin psykologin tekemän videon, jossa sanottiin, että on ihan normaalia että ihmisillä on uusia ihastuksia, vaikka he olisivat naimisissa. Sinullakin on varmaan harrastuksissasi. Se on ihan ok, se on normaalia." ymmärsin että nyt liikutaan vaarallisilla vesillä. Jos olisin sosiaalisesti kyvykäs, olisin varmasti keksinyt tavan lohduttaa vaimoa siinä paikassa ja haihduttaa kaiken tuon häntä kalvavan epäilyksen. Mutta sitä kun sattuu olemaan ihmissuhdetaitojen leipäjonon hännillä, kuittasin siis kommentin huumorilla, nousin ripeästi ylös ja aloin tiskaamaan astioita.

Vaimo jatkoi samalla nuotilla, mitä siinä parhaani mukaan yritin vältellä ja kiinnittää huomiota muualle, kun puhelimeni alkoi soida. Tapojensa vastaisesti vaimo, luultavasti epävarmuudentunnossaan noukki puhelimeni ja katsoi soittajan. Siellähän sitten olikin joko jonkinlainen spämmisoitto tai väärä numero, mutta soittajana oli nuoren naisen WhatsApp -profiilikuvalla varustettu Natalia. Tällaista puhelua en ole saanut ennen taikka jälkeen tämän kohtalokkaan illan, joten alan uskoa eläväni jonkinlaisessa Truman-showssa tai sitten olen jollain minulle käsittämättömällä tavalla suututtanut kaikki mahdolliset avioliittojen jumalat. Jos olette koskaan olleet samassa huoneessa hormoneista ylikierroksilla käyvän naisen kanssa, niin voitte arvata vaimoni reaktion. Emme siis loppuillan aikana puhuneet sanaakaan ja yrityksetkin hieroa sovintoa tyrmättiin hyvin ripeästi.

Näin olisi varmasti jatkunut helposti pidemmälle viikkoa, ellei taaperoikäinen nassikkamme olisi alkanut väkivaltaisesti oksentaa keskellä yötä pitkin peittoa, lakanoita, tyynyjä, vaatteitaan ja tietenkin sänkyä. Vihanpito muuttui äkkiä kriisimoodiin, koska tekstiilien uudelleenpäällystäminen toistui palttiarallaa kerran tunnissa, ja noin kahdelta aamuyöstä oltiinkin jo matkalla ensiapuun. Lääkityksen saatuamme pääsimme taas kotiin, ja ensimmäistä kertaa nukkumaan viideltä aamulla.

Seuraavana päivänä päiväkävelylläni yritin jäsentää edellisen illan ja yön tapahtumia ja totesin, että vaikka perheellisenä onkin ihan mukavaa, erityisesti mitä vanhemmaksi tulee, niin joskus sitä näkee myös ne yksinelämisen valoisat puolet.

 

Guest starring Sam Brown from WKUK, absolutely nails it.

1
submitted 10 months ago* (last edited 10 months ago) by tyo_ukko@sopuli.xyz to c/videos@sopuli.xyz
 

All the words in the picture are links!

 

Mr. President! Nuclear missiles will strike our country in 14 minutes. I know it’s your first day in office so I’m going to walk you through it, but you’re the only one who can authorize our nuclear retaliation in response and you’ve only got a few minutes to make a decision!

A chilling video about the totality of nuclear war.

 

There's enough energy just in the very thin crust of our planet to run human society for hundreds of thousands of years. Getting to it and bringing it to the surface is the challenge. Now a new team of engineers, scientists and entrepreneurs, who were clearly Star Wars fans as children, has developed an immensely powerful 'ray gun' that can vaporise rocks down to twenty kilometres.

view more: next ›