[-] VonReposti@feddit.dk 132 points 1 month ago

What OOP refers to is not "writing code" but "designing the code." Everyone can write a book. Even I can. It will be a fucking shitty book, because I don't know how to create suspense, give depth to characters, or any of that stuff. But it's still a book. Writing code is easy. Writing good code is hard. If you want a program to fetch the current outside temp from an API you could throw together random lines of code that vaguely does what you want that you found on stackoverflow and iterate until it works. Will it catch edge cases? No. Will it output in a pretty format? No. Will it be maintainable? No. Will it be the next Facebook? Hard no. But you did write code.

Writing code is easy. Writing good code is hard. And that is why we have door stoppers called "Clean Code" to help us on our way. You might notice that the "how to code" books aren't much thicker than a a pamphlet. But if it ever as much as touches on the topic of good code it will make for a door stopper worthy of a nuclear bunker's entrance.

[-] VonReposti@feddit.dk 68 points 7 months ago

When Trump threatened tariffs I went ahead and bought 50 TB of storage. With my then expansion it would easily last me until the end of Trump's turn and maybe a decade if I rationed.

Turns out that was one of my best calls of judgements to date, just not for the reason I thought.

[-] VonReposti@feddit.dk 72 points 7 months ago

I don't really see it as a complicated issue. Archive[.]today is now an unreliable source that uses its user traffic to engage in malicious activities. By using it, Wikipedia will become unreliable by proxy.

The best course of action is to distance yourself from it as quickly as possible.

24
submitted 8 months ago by VonReposti@feddit.dk to c/nyheder@feddit.dk
16
submitted 8 months ago by VonReposti@feddit.dk to c/nyheder@feddit.dk
12
submitted 8 months ago by VonReposti@feddit.dk to c/nyheder@feddit.dk
11
submitted 8 months ago by VonReposti@feddit.dk to c/nyheder@feddit.dk
1
Løkke Banden har en plan (files.catbox.moe)
submitted 8 months ago by VonReposti@feddit.dk to c/memes@feddit.dk
12
submitted 8 months ago by VonReposti@feddit.dk to c/nyheder@feddit.dk
10
submitted 9 months ago by VonReposti@feddit.dk to c/nyheder@feddit.dk
[-] VonReposti@feddit.dk 82 points 9 months ago

On the contrary. The data exists, they're just not aggregating it into a graph. Otherwise your posts and comments would disappear the moment you submit them.

30
submitted 1 year ago by VonReposti@feddit.dk to c/nyheder@feddit.dk
16
submitted 1 year ago by VonReposti@feddit.dk to c/nyheder@feddit.dk
19

I make some mean cocktails myself but sometimes I like to try out various signature cocktails at bars. Bonus points if I know I can't match the quality

19
submitted 1 year ago by VonReposti@feddit.dk to c/fedditdk@feddit.dk

Hvis du oplevede lidt udfald på siden, så var det bare mig der fik opdateret til den seneste version af Lemmy.

Til nørderne, så har I mulighed for at se alle ændringerne her: https://join-lemmy.org/news/2025-06-13_-_Lemmy_Release_0.19.12

[-] VonReposti@feddit.dk 187 points 1 year ago

Having healthy competition is a good thing and I've wished for a competitor to Steam for a long time until one day the monkey's paw curled and we got Epic Game Store. To sum it up:

  • Epic actively tries to introduce exclusivity deals to PC, something that goes very much against the nature of the platform. It is something we're supposed to be above on PC and let console players deal with. PC gamers simply don't want fragmentation in the market. We hate all the different shitty launchers publishers are making for the same reason too.
  • Epic has a very hostile attitude towards Linux. Their anti cheat for example by default detects the mere fact of using Linux as a hack. For a long time if their anti cheat was included it was an absolute no go on Linux. Their store also works like crap on Linux, if at all.
  • EGS lacks necessities for then to call themselves a good store like reviews, good support and refund policies, ease of mod support, wishlists, etc.
  • Their UI is just plain bad.

But the main point is the first one. If they bothered making a good store they wouldn't need to make most of PC gamers angry by introducing exclusivity deals, but they can't be bothered to do that, so they go for hostile competition instead at the detriment of the customers.

1
submitted 2 years ago by VonReposti@feddit.dk to c/foto@feddit.dk

Som en stædig amatør bartender har jeg altid været af holdningen at en rigtig Whiskey Sour laves med en Bourbon fra Kentucky!

Men de seneste begivenheder har fået mig til at udfordre dette, så jeg smuttede ned forbi min lokale alkohol dealer (som desværre ligger på den anden side af vejen, hvilket giver lidt øhh... alkoholiker-udfordringer :p)

Målet var simpelt. Kunne jeg finde en whiskey der havde samme sødme og var lige så blød som en Bourbon, så den kunne bruges i mange af mine favorit cocktails?

Handlen faldt på en Canadian Club (standard, men jeg købte også en 12 års til senere test).

Resultatet? Tjoo, jeg må nok bide min stædighed i mig og indrømme at man KAN bruge andet end Bourbon i en Whiskey Sour. Men min Canadian Club er ikke lige så blød som min trofaste og prisvenlige Jim Beam. Årsagen er ret simpelt det tørre klima som Bourbons bliver lavet under, så det kom ikke som en overraskelse.

Men den lidt mere spidse kant på den canadiske kan sgu noget ovenpå lidt citron og æggehvide og der sidder også en lille eftersmag som er lidt mere behagelig end den amerikanske contender, men det er nok fordi egesmagen popper lidt igennem her, hvilket jeg som whiskey elsker nu godt kan lide. Mine anti-whiskey gæster (ja, de findes desværre...) ville nok synes mere om amerikaneren, men det er små detaljer og de vil nok ikke mærke den store forskel.

Så kan man bruge en canadisk whiskey i en Whiskey Sour? Ja for satan! Det er sgu bare at gå løs.

Opskrift til de nysgerrige:

  • En stor isterning og et par små i en shaker (for displacement og dilution)
  • 50 ml whiskey (find du bare trygt din canadiske favorit frem)
  • 30 ml citronsaft (cirka en halv citron)
  • 20ml sukkersirup
  • Æggehvide fra 1 æg

Hold godt på shaker og låg og giv det så dit livs rystetur! Tro mig, en Whiskey Sour skal have hele armen.

Kom en stor isterning i et Old Fashioned glas og hæld derefter din cocktail i. Kom et par dråber Angostura bitters i og pynt gerne med et marachino kirsebær. Og så er der ikke andet at sige end skål!

Nå, men jeg har vist lavet mig et par cocktails som jeg må vende tilbage til.

[-] VonReposti@feddit.dk 118 points 2 years ago* (last edited 2 years ago)

Even worse. 90 in old Danish is "halvfemsindstyve" but it is rarely used today. The "sinds" part is derived from "sinde" means multiplied with but it is not in use in Danish anymore. That leaves halvfems, meaning half to the five (which is not used alone anymore) and tyve meaning twenty (as it still does).

We are in current Danish shortening it to halvfems which actually just means "half to the five" in old Danish (2.5) to say 90. 92 is then "tooghalvfems" (two and half to the five, or 2+2.5). The "sindstyve" part (multiplied with 20) fell out of favour.

So we at least have some rules to the madness. Were just not following them at all anymore.

[-] VonReposti@feddit.dk 119 points 2 years ago

using GitHub to host our code

I can't possibly think of any way that could backfire.

[-] VonReposti@feddit.dk 159 points 2 years ago

Thailand is set to legalise same sex marriage and Norway is set to ban ICE cars, both in 2025.

There's probably a lot of these small wins happening around the world. Let's keep an eye out for them so we don't lose all our hope for a better future.

[-] VonReposti@feddit.dk 85 points 2 years ago

Linux, Gimp, Blender.

[-] VonReposti@feddit.dk 250 points 3 years ago

"Our business model isn't sustainable unless we remove worker rights"

[-] VonReposti@feddit.dk 84 points 3 years ago

Water written backwards spells retaw. If you adjust it a little it says retard. Are you gonna take being called a retard by water? Ban water today and stop the insults!

view more: ‹ prev next ›

VonReposti

0 post score
0 comment score
joined 3 years ago
MODERATOR OF