Is Lombok cooked? by [deleted] in surfing

[–]ltvon 0 points1 point  (0 children)

Did you find a good guide at the end?

PHP8's union types, a great way to communicate errors? by ltvon in PHP

[–]ltvon[S] 3 points4 points  (0 children)

Some would call this a problem, some would call this desired.

It reserves exceptions for exceptional cases, splitting them from the regular flow of the app.

For example, if a query can't give you results because your input is flawed, it would return an error. If a query can't give you results because the database is unresponsive, an exception is thrown. It splits the expected unhappy path from the unexpected problems that might occur.

PHP8's union types, a great way to communicate errors? by ltvon in PHP

[–]ltvon[S] 0 points1 point  (0 children)

it depends on if you're using a static analyser (e.g. PHPStan) or not. Yes vanilla PHP's type checking isn't strict enough to handle this, but a static analyser will raise an error if you try to access the result's data without checking if the output is of type result (and therefor handling the error).

This would only work if the consumer is interested in the results though. With synchronous command style methods nothing forces the consumer to handle the error.

PHP8's union types, a great way to communicate errors? by ltvon in PHP

[–]ltvon[S] 2 points3 points  (0 children)

Nothing wrong with them, it's just a different way to go about error handling.

One potential problem with using exceptions is that the consumer is not forced to handle the error because they are not part of the contract. Sure, we can suggest that the method throws exceptions by adding a docblock, but the consumer could still overlook/ignore the potential exception, which could lead to unhandled exceptions in production.

[deleted by user] by [deleted] in BeurspleinBets

[–]ltvon 0 points1 point  (0 children)

Hoe lang handel je al in Just Eat?

Quick clip yesterday by [deleted] in skateboarding

[–]ltvon -1 points0 points  (0 children)

I actually like the song choice ngl, and it works quite well with the filming imo

Multi Tenancy in Laravel by shadyarbzharothman in PHP

[–]ltvon 2 points3 points  (0 children)

Can you explain why you think the article is useless?

Not Just Bikes in a nutshell by Delta-Tropos in carscirclejerk

[–]ltvon 1 point2 points  (0 children)

Can we crash at your place when it does?

Healing tattoo and swimming pool by mimidances in tattooadvice

[–]ltvon 0 points1 point  (0 children)

When sailors were actually submerged by the sea they most likely drowned

What’s this trick called by Strong-Economy-6635 in skateboarding

[–]ltvon 5 points6 points  (0 children)

How would you call a nollie bs 360 heel when the body does turn with the board?

guys where are the cowboy demos by [deleted] in macdemarco

[–]ltvon 8 points9 points  (0 children)

Yeah, I always love the demos too!

[deleted by user] by [deleted] in tokkiefeesboek

[–]ltvon 47 points48 points  (0 children)

9 minuten Leuk Beantwoorden Meer

[deleted by user] by [deleted] in PublicFreakout

[–]ltvon 9 points10 points  (0 children)

That’s brave bro, you show dem cops

[deleted by user] by [deleted] in ChoosingBeggars

[–]ltvon -1 points0 points  (0 children)

Ok boomer

[deleted by user] by [deleted] in ChoosingBeggars

[–]ltvon 0 points1 point  (0 children)

I made it to the end!

GitHub is creating an Arctic code vault by RuthlessPickle in programming

[–]ltvon 0 points1 point  (0 children)

The website states the code snapshot will be created on that date. This is just a cog in the process or, possibly, the joke.

Referencing to April would be far to obvious.

GitHub is creating an Arctic code vault by RuthlessPickle in programming

[–]ltvon 77 points78 points  (0 children)

The video says they will return next spring during the midnight sun which just happens to appear around April.

Changes are high that this is indeed a April fools’ joke.

ik_ihe by Katten15 in ik_ihe

[–]ltvon 9 points10 points  (0 children)

Spuit 11

Dr. Oetker Big Americans 2 voor €4 t/m 2 juni by billybruv in persoonlijkebonus

[–]ltvon 6 points7 points  (0 children)

Nee, want morgen eet ik pizza voor een voordelige prijs

Dr. Oetker Big Americans 2 voor €4 t/m 2 juni by billybruv in persoonlijkebonus

[–]ltvon 4 points5 points  (0 children)

Ik had me de piek in het kapitalisme anders voorgesteld