QT1

joined 11 months ago
[–] [email protected] 6 points 22 hours ago

I’ve visited Myanmar for vacation some years before the last military coup. The people were so very friendly and welcoming, it was a real pleasure. I’d like to come back some day. It’s such a shame that the civil war broke out after the country has stabilized somewhat.

[–] [email protected] 14 points 2 months ago (3 children)

void in Java and Void in Haskell are quite different. As the post explains, in Haskell it’s a type with no possible values. In Java, the equivalent would be a class without a constructor (not sure if that’s even possible). It defines a type, but you cannot construct a value or object with that type. The equivalent of Java‘s void in Haskell is the unit type () which has exactly one possible value, also called (). It can be returned by a function, but it does not give you any information, just like void. By the way, Rust also uses the unit type instead of void.

[–] [email protected] 23 points 2 months ago

I’ve first read this post back in 2019 when it was released and I have to say that it really has left quite an impact on the way I write programs these days. The „make illegal states unrepresentable“ and „push proofs up“ guidelines are so simple yet so effective. Sure, there is some initial cost to create new datatypes, but it really pays off in the long run. Not having to worry about null or wrongly shaped data structures down the line is really nice, especially if you’re working on older code or develop in a team. Even though the post uses Haskell to explain the concepts, I found it to also work well in other languages, even Java or Python.

[–] [email protected] 17 points 4 months ago (3 children)

Speak for yourself.

[–] [email protected] 8 points 4 months ago (3 children)

Maybe try out Orion Browser. It has built-in ad-blocking and reliably gets rid of YouTube ads.

[–] [email protected] 11 points 5 months ago (1 children)

I have been using Orion Browser (by Kagi) for the last couple of weeks and haven’t seen a single ad on YouTube since.

[–] [email protected] 5 points 7 months ago (1 children)

What‘s the deal with the Cupra logo on the packages?

[–] [email protected] 1 points 7 months ago

Orion Browser also has a built-in ad-blocker that also gets rid of Youtube ads. It even has some support for Firefox extensions, including uBlock Origin.

[–] [email protected] 4 points 8 months ago

In Firefox, you can also override right-click capture by holding shift while right-clicking.

[–] [email protected] 5 points 10 months ago (2 children)
[–] [email protected] 16 points 10 months ago (4 children)

Is that you, Werner Herzog?

[–] [email protected] 23 points 10 months ago (2 children)

That’s what you get for writing your thesis using Word.

view more: next ›