yogthos

joined 4 years ago
MODERATOR OF
 
[–] [email protected] 11 points 1 day ago (2 children)

Electric cars aren't the solution, but they are a big practical improvement on gas cars, and thus a necessary step in the transition. Getting rid of cars will require major structural changes in society that aren't even on the horizon.

[–] [email protected] 3 points 1 day ago

Boilerplate is bad because it's fundamentally just noise. When you read the code you want to be able to tell what the purpose of the code is and what the problem it solves. Ideally, code should be expressing that as clearly as possible. Having a lot of boilerplate is typically an indication that the language semantics don't allow you to express the solution in a clear way and you have to write a lot of incidental code. The more code you have to read the more cognitive overhead there is in understanding it and keeping it all in your head.

[–] [email protected] 17 points 1 day ago

don't let the door hit you on the way out

[–] [email protected] 8 points 1 day ago

Maybe the US should tell Israel to stop invading Lebanon instead.

[–] [email protected] 1 points 1 day ago

It's too bad that absolutely nothing will be learned from this experience in the west.

[–] [email protected] 4 points 1 day ago

I find DRY often turns into an antipattern because decoupling is far more important than code reuse in practice. Having a function that supports many different code paths can make it very brittle because any changes to it need to consider all the possible use cases. However, if you have two separate functions that are similar, but can evolve independently then you don't have that problem. As a rule, it's better to duplicate code first, and then extract parts that turn out to be general purpose functionality once that's identified through usage, and to put that code into libraries.

[–] [email protected] -1 points 1 day ago

you already have

[–] [email protected] -1 points 1 day ago (2 children)
[–] [email protected] 1 points 2 days ago (4 children)

I mean to say that people who can't see that the west lost the war against Russia and the obvious repercussions of that for the west will be shocked by what Todd is saying and see it as an aberration.

[–] [email protected] 6 points 2 days ago

that's not the colonial way

[–] [email protected] 17 points 2 days ago (5 children)

Turns out that the EU cares about a trade war with China a lot more than the environmental crisis. Why could've guessed.

[–] [email protected] 3 points 2 days ago

fuck the USA

view more: ‹ prev next ›