gerryflap

joined 1 year ago
[–] [email protected] 22 points 2 days ago (1 children)

Using Haskell you can write it way more concise:

iseven :: Int -> Bool
iseven 0 = True
iseven 1 = False
iseven 2 = True
iseven 3 = False
iseven 4 = True
iseven 5 = False
iseven 6 = True
iseven 7 = False
iseven 8 = True
...

However, we can be way smarter by only defining the 2 base cases and then a recursive definition for all other numbers:

iseven :: Int -> Bool
iseven 0 = True
iseven 1 = False
iseven n = iseven (n-2)

It's having a hard time with negative numbers, but honestly that's quite a mood

[–] [email protected] 12 points 4 days ago (4 children)

Me, trying to sound cool as an aromantic asexual atheist:

Actually I'm alingual as well

[–] [email protected] 2 points 5 days ago

Yeah this is kinda a point. People like this colleague seem to have gotten stuck in a highschool bully mindset ans never moved on. All of their jokes are about people who are different, their whole status seems to be based on their "masculinity". In my experience this is the largest portion of homo/transphobes here in the Netherlands. People who aren't violent or outright hateful, but rather just pushing outdated jokes and viewpoints and then getting annoyed by all the "woke bullshit" when they get called out.

My tactic so far is to not fully attack back, but rather staying friendly while showing my disappointment with this behaviour unless it goes too far. Most of these people are otherwise decent, and in my opinion may be swayed by someone "woke" who doesn't go "full crazy sjw" but does call them out. Making a joke about minorities is way easier of you don't know anyone well from those groups. They're not crazy Trump voters, so they may still be steered in the right direction

[–] [email protected] 49 points 1 week ago (8 children)

I've had a colleague say that tea is "homo water". I'm aro/ace, but most of my colleagues don't know that. Similarly a straight colleague of mine got mocked for wearing pink (but not feminine) shoes. After some of these incidents we've kinda started pushing back against this nonsense by deliberately triggering these people and calling them out, which has worked so far.

[–] [email protected] 4 points 1 week ago

Oh yeah absolutely. I'm a programmer and I see so many companies and recruiters etc use Cyber instead of Cybersecurity. It drives me absolutely mad, but these type of people drive me mad anyways. It's probably the same crowd who ruined AI by overhyping it into its grave, the same crowd who were hyped by web 3.0 and the whole Blockchain craze, and probably all those other dumb crazes before it.

Still, this cyber thing seems to permeate everything, and I've heard people using the term who I otherwise respect. For me it's a quick way to instantly become very sceptical of whatever follows the term

[–] [email protected] 2 points 1 week ago (1 children)

Idk, ik heb redelijk de tegenovergestelde ervaring. Bedrijven deden allemaal hun best om onze aandacht te krijgen op de studie, en het moment dat ik een paar maanden ervaring had ging het LinkedIn spam kanon helemaal aan. Zowel waar ik werk als bij de bedrijven waar vrienden werken lijken ze het liefst zoveel mogelijk programmeurs de seconde na het afronden van hun HBO of universiteits studie op te willen pakken.

[–] [email protected] 3 points 1 week ago

I update whenever it is convenient or pushed. On Android it's not really a decision that I make, it just updates whenever it feels like it and so far I haven't disagreed very often. On my desktop I update Arch pretty much weekly, and Windows as little as possible because it wants to restart during the updating process and will probably just pull in more spyware. My Ubuntu laptop isn't used often, so it doesn't get updated often either. I also sometimes use some Fedora machines, which I also don't update too regularly.

Ubuntu and the multiple Fedora machines under my control also like to start unattended updates at the worst possible moments, which regularly interrupts my attempts to update or install stuff. I prefer to turn that shit off at every opportunity. I'd rather just get a notification that it wants me to update in the DE or terminal

[–] [email protected] 11 points 1 week ago

Unfortunately yes. Unfortunately Lemmy is too small for many of the things I did on Reddit. I mainly enjoyed lurking around in discussions on Reddit, only posting comments when I really cared (just like I do now here on Lemmy). Whenever I played a game, watched a show, etc I'd go to Reddit to read about other people's opinions and discussions. But Lemmy is too small to have any meaningful discussion about a specific game or some other content.

Often I see here the "if you miss it why not create it" sentiment, but that's just not how I used Reddit. I often don't want to have a meaningful discussion with s small group of people but rather read the opinions and memes of a large group of people.

So far, I've been able to limit it to browser usage though. The web experience of Reddit is abysmal, but at least I can block the ads etc. And I'm still here for all the content that is on Lemmy.

[–] [email protected] 16 points 1 week ago

I agree, but I've gotten less annoyed by it over the years. When I was young it really didn't make sense to me. Money can do literally the same and is way more versatile.

However, now that I'm trying to survive this adulting thing it does start to make more sense, even if I still don't like it. If someone gives me money, it ends up on the big pile of money that's constantly flowing around. Give me 20 euros and it just adds 20 to the number in my bank account, which will eventually end up being used on groceries, bills, mortgage, etc. if you give someone money as a present you don't want this. You don't know what to give the other person ans you want them to choose something nice for themselves. But buying them part of their groceries or a part of their bills isn't exactly a fun gift. You want to "force" them to buy something nice, something that they want to spend money on instead of need to spend money on. A gift card does this.

Then again, giving me physical money would also do this. Or asking me to say when I bought something nice with it. When people gift me money I tend to tell them where it went and that works way better than gift cards imo.

[–] [email protected] 1 points 1 week ago

I obviously don't agree with them, but my assumption is that it has to do with maturity/innocence. An unborn child hasn't done anything wrong. They're full of opportunity and have a whole life ahead of them. A criminal sentenced for death has I some way done something very wrong. They've had their chance and failed.

[–] [email protected] 13 points 2 weeks ago (1 children)

Rollercoaster Tycoon Classic, if you feel like playing rollercoaster tycoon 1/2 on your phone. They slightly altered the UI to make it more touch friendly.

[–] [email protected] 2 points 2 weeks ago

Apart from the many compatibility issues with all kinds of random games that can usually be fixed within an hour (but still cost me too much time), the biggest one is specific stuff like playing Assetto Corsa with mods in VR using a Logitech wheel. It's already a pretty hefty stack of things to keep working on Windows, but on Linux I cannot even get AC to start so I have no idea whether the rest will work.

I'm already fighting computers all day. When I get home tired the last thing I want to do is to fight the computer even more. I just want a game to start without issue. Even on my Steam deck I have regular hard crashes of the system in multiple games, and my PC is probably less supported due to the more random set of packages installed

 

Shot with my Canon EOS 300, pretty much directly into the sunshine as God intended, using Ilford HP5 plus 400 iso black and white film.

view more: next ›