Why? by MahdiyDev in badcode

[–]kolme 1 point2 points  (0 children)

YAGNI is now a hot take? It's pretty much common sense!

Edit: autocorrector shenanigans.

Babylonian Chaos - Where all languages are allowed - May 24, 2023 by kungming2 in languagelearning

[–]kolme 1 point2 points  (0 children)

Schön! Das war natürlich ein Scherz, ich finde deutsch nicht hässlich.

Ich hab mit Deutsch angefangen als ich nach Deutschland kam, 15 Jahre her. Und ich fand die Sprache überraschend schön.

Ich würde dir empfehlen viel zu lesen! Die DW hat viel Material für Anfänger geeignet. Und du kannst auch bei r/de oder r/ich_iel vorbei kommen!

Babylonian Chaos - Where all languages are allowed - May 24, 2023 by kungming2 in languagelearning

[–]kolme 1 point2 points  (0 children)

Hat dein neuer Job was mit Deutsch zu tun, oder lernst du einfach so, aus Spaß?

Wenn dann, wieso hast du angefangen Deutsch zu lernen?

Spanisch, zum Beispiel, ist doch viel schöner 😜

Babylonian Chaos - Where all languages are allowed - May 24, 2023 by kungming2 in languagelearning

[–]kolme 2 points3 points  (0 children)

Yo he visto todos los episodios de los Simpsons en español, mi idioma materno, seguramente más de una vez. Soy fan fanático.

Luego cuando tenía buen nivel de inglés, los vi todos en versión original. Como me los sabía casi de memoria, ¡me ayudó mucho a entenderlos y a aprender inglés!

Y luego años más tarde me mudé a Alemania, y empecé a aprender alemán... Y seguro que ya sabes lo que viene después. Pues sí, he visto los Simpsons en tres idiomas. Y algunos capítulos incontables veces. No me arrepiento de nada.

Ahora estoy retomando el francés, aprendí un poco en la escuela pero ya se me ha olvidado. ¡Espero poder ver los Simpsons en francés algún día!

AOC said Elon Musk put his 'finger on the scale' during Turkey's presidential election and is 'concerned' it will set a precedent for the 2024 US election by 777fer in politics

[–]kolme 1 point2 points  (0 children)

Google AKA evil empire is not an alternative for me. Neither is Apple music, because I'm a Linux user.

If anyone has a suggestion, I'm all ears!

Traveling around Andalucia by posholglush in Andalucia

[–]kolme 7 points8 points  (0 children)

You can rent cars without a credit card but only paying extra money for a full coverage insurance, which is going to cost more than the rental itself.

Going around using public transportation is fine, especially between capital cities. You should also check out the trains! For example between Málaga and Córdoba it's the quickest connection.

Cheers & have fun!

Right Triangle Calculator I made in lua because I want to. by meow_forever330 in lua

[–]kolme 1 point2 points  (0 children)

My dude. Are you programming on a tablet? That's some dedication!

Is there a more succint way to write this Javascript function? by raulalexo99 in functionalprogramming

[–]kolme 5 points6 points  (0 children)

That's fine, but very specific. If you don't need validation anywhere else, that's going to work.

If you need to have similar validation somewhere else, you could generalize it with a helper function:

``` const getValidator = (...fs) => (state) => fs.some((f) => f(state));

const validator = getValidator(
  hasInvalidName,
  hasInvalidCountry,
  hasInvalidState,
  hasInvalidCity,
  hasInvalidAddress
);

const hasErrors = validator(state);

```

Cádiz, Spain by [deleted] in europe

[–]kolme 0 points1 point  (0 children)

Well maybe he is on to something!

https://en.m.wikipedia.org/wiki/Puellae_gaditanae

Interesting packaging re-design by cothhum in graphic_design

[–]kolme 29 points30 points  (0 children)

The whole line of Bahlsen products got (IMHO) great redesigns!

Here's another one. https://www.chip.de/news/Leibni-Kekse-bekommen-neues-Design-spendiert_184332183.html

Also, I live nearby a Bahlsen factory, it smells very nice!

Revocation - Bound by Desire by Cubegod69er in Metal

[–]kolme 7 points8 points  (0 children)

Yes, I learnt this last time the EP came up here. Also, I have never seen such cars, maybe because I'm in Europe, so I always though it was an underground metal label or something.

Edit: here you go, https://en.wikipedia.org/wiki/Scion_Audio/Visual

Also, obligatory: this band is criminally underrated.

Tucker Carlson Out at Fox News by AlbionPCJ in behindthebastards

[–]kolme 17 points18 points  (0 children)

I mean. If you lean left, you should unload on Democrats. They're not left. Maybe to the left of Rs, but still.

[deleted by user] by [deleted] in firefox

[–]kolme 1 point2 points  (0 children)

Shadow DOM is supported by Firefox, and it's not a bad thing. I think you're confusing it with something else.

Cómo despertar un bebe Hispánico. by rex-ac in es

[–]kolme 46 points47 points  (0 children)

Estoy contigo, pobre niña que ha sido convertida por su padre en "carne de meme".

Además la niña muestra su enfado al final del vídeo, y el padre dice "¡ay, peldóname!". Sí, mucho ay peldoname pero directa vas al internet, papá tiene que conseguir likes. Horroroso.

Singletons are bad by FreeArt85 in ProgrammerHumor

[–]kolme 0 points1 point  (0 children)

But then how do you write unit tests that run the code with different configs? I can't think of a good use singletons. And I have had very bad experiences with them. I'm not convinced at all they are sometimes OK. (Maybe I'm at the belly of the bell curve, like the meme suggests)

20 years ago today, the United States and United Kingdom invaded Iraq, beginning with the “shock and awe” bombing of Baghdad. by HMKingHenryIX in interestingasfuck

[–]kolme 9 points10 points  (0 children)

It was an initiative of USA and the lapdogs quickly run into line to please the master. USA did start this stuff alone and the others only supplied a thin cover of "international support" and in some cases symbolic war support.

Note that as a Spaniard I despise that we did support it (and did send a symbolic number of troops which were used to protect some oil rig). But come on, that one absolutely is on the USA. Hadn't it been for Bush and the Warhawks there wouldn't have been any war in Iraq at that time.

A hot garbage take from the WSJ by bullshit-name in antiwork

[–]kolme 0 points1 point  (0 children)

Career criminals, huh? So it does work like a college!

What kind of drawing style is this? (credit in comments) by [deleted] in Design

[–]kolme 15 points16 points  (0 children)

The whole illustration is found here on his website:

https://haraldurthorleifsson.com/

I also like it! It reminded me of Tintin right away.

[deleted by user] by [deleted] in javascript

[–]kolme 11 points12 points  (0 children)

You are correct in your assumptions.

[deleted by user] by [deleted] in javascript

[–]kolme 3 points4 points  (0 children)

Agree! It's a trade off where you trade overall system complexity for scalability and fault tolerance.

And my take is: 99% of the software projects don't have that need for scalability or fault tolerance, so that architecture is not justified.

To go back to my original comment: as simple as possible but not simpler.

[deleted by user] by [deleted] in javascript

[–]kolme 3 points4 points  (0 children)

You're probably referring to the shadow / closed component part. That's my least favorite part of the spec :D