[-] gerryflap@feddit.nl 22 points 2 days ago

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

[-] gerryflap@feddit.nl 12 points 4 days ago

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

Actually I'm alingual as well

[-] gerryflap@feddit.nl 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

33
submitted 4 weeks ago by gerryflap@feddit.nl to c/pics@lemmy.world

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.

[-] gerryflap@feddit.nl 82 points 3 months ago* (last edited 3 months ago)

This scale is totally wack. The feet of the human bodies in the graph don't start at 0 but somewhere between 4 and 5. Such a bad graph. That being said, we Dutch people are very tall and powerful and you should be terrified >:3

[-] gerryflap@feddit.nl 99 points 5 months ago

Microsoft does a lot of bad things, but I got to give it to them here. Their push for accessibility in gaming is definitely a good thing. They've been pushing multiple modular controllers in order to allow people with disabilities to play games in a comfortable way. Having the support of a major player in the gaming market like Microsoft will definitely help with support for these products.

[-] gerryflap@feddit.nl 115 points 6 months ago

I'm supposed to have energy as an adult?! I have way more time than energy. Most of that time is spent doing useless shit like watching YouTube because I'm too exhausted to do anything useful

[-] gerryflap@feddit.nl 97 points 7 months ago

Shit, another existential crisis. At least I'll forget about it soon

[-] gerryflap@feddit.nl 142 points 7 months ago

Ridiculous. How can someone write "we value your privacy" and then share data with 807 partners. If I share anything with 8 people I pretty much consider it public information already, unless I have a very good reason to trust them. Sharing something with 807 companies is probably less private than taking all that data, putting it up on a billboard, and placing that billboard next to the busiest place in town.

[-] gerryflap@feddit.nl 167 points 8 months ago

Seems like a good idea to put that there. People who know what they're doing won't be bothered by it, but it might save a few people from getting hacked

[-] gerryflap@feddit.nl 83 points 9 months ago

As far as I understand, Europe will push for removable batteries by 2027.. So we might actually get back to those glory days.

[-] gerryflap@feddit.nl 178 points 10 months ago

21 stone?! I swear you guys will use anything instead of metric

[-] gerryflap@feddit.nl 164 points 1 year ago

I don't really see the problem. People like to listen to the stuff and Spotify provides it and pays the creator. Seems like everything is working as intended. Looks like it's just greedy people getting annoyed that they can't get even richer.

view more: next ›

gerryflap

joined 1 year ago