steventhedev

joined 1 year ago
 

The last post that was federated to LW is from three days ago, and I can't see the community at all via https://programming.dev/c/programmer_humor

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

Those young machine spirits need their rest

[–] [email protected] 21 points 1 week ago

One upvote is not enough.

I once wrote a commit message the length of a full blog post comparing 10 different alternatives for micro optimization, with benchmarks and more. The diff itself was ten lines. Shaved around 4% off the hot path (based on a sampling profiler that ran over the weekend).

[–] [email protected] 67 points 1 week ago (13 children)

Ew no.

Abusing language features like this (boolean expression short circuit) just makes it harder for other people to come and maintain your code.

The function does have opportunity for improvement by checking one thing at a time. This flattens the ifs and changes them into proper sentry clauses. It also opens the door to encapsulating their logic and refactoring this function into a proper validator that can return all the reasons a user is invalid.

Good code is not "elegant" code. It's code that is simple and unsurprising and can be easily understood by a hungover fresh graduate new hire.

[–] [email protected] -5 points 2 weeks ago* (last edited 2 weeks ago) (6 children)

Yes. I'll read the content, but I try to avoid interacting.

~~Mind you, db0 himself is a tankie, although he doesn't seem to insist on imposing that on the users or communities on his instance.~~

EDIT: I stand corrected. Apologies to db0 for lumping him in with that crowd.

[–] [email protected] 4 points 2 weeks ago

Gotcha. So all horses are purple?

[–] [email protected] 2 points 2 weeks ago (1 children)

I hope you're wrong about both Israeli territorial ambitions and the unwillingness of Hamas to release hostages.

How are the Egyptian media covering the news?

[–] [email protected] 11 points 2 weeks ago (4 children)

In all honesty, there are a few outcomes that are potentially worse if he is dead: Hamas splintering into many smaller factions, or treating him as a silent leader and refusing to release hostages because "he hasn't ordered it".

Hopefully Hamas will confirm and whoever replaces him will agree to release the hostages.

 

The Israeli military said on Thursday that it is investigating the possibility that it has killed Hamas leader Yahya Sinwar, one of the masterminds of the devastating Oct. 7, 2023 attack on Israel that triggered the Gaza war.

At this stage, his identity cannot be confirmed, said the military.

Hamas has not commented on the fate of Sinwar, who was recently elevated to paramount leader of the Palestinian militant group.

[–] [email protected] 5 points 2 weeks ago

Sanctions have not been effective - AQAH has been sanctioned since 2007, and only the direct military threat on Iranian planes bringing cash seems to be having the desired impact.

The quiet part is here in the details - Iran is Hezbollah's financier - confirming what everyone has known for decades. AQAH is unlicensed, yet they do business with AQAH because they know that someone (Iran) will guarantee AQAH's debts. More importantly, it shows a path forward for Lebanon - to simply enforce their existing sovereignty and laws - punishing banks that do business with unlicensed banks.

[–] [email protected] 12 points 3 weeks ago (6 children)

The electoral college is good for one thing and one thing only: boosting confidence that election fraud in one place won't impact the result of the election.

Winner takes all was always stupid and needs to be replaced with proportional allocation, preferably with a more direct ratio to the actual population of votes. Basically, everyone doing what Nebraska and Maine do.

[–] [email protected] 4 points 3 weeks ago

If you only look at the US (which a US court should) - it's really between Chrome and Safari Mobile, and it's a pretty even split to be honest - a bit in the favor of safari for mobile traffic, which is telling.

But the bigger issue is that they have undue influence in technical decisions to the detriment of consumers because they have a vertically integrated business.

 

Hezbollah’s deputy leader Naim Kassem said Sunday that his group is now in an open-ended battle with Israel and he threatened more displacement for people in Israel’s north.

 

The family of Israeli-American hostage Hersh Goldberg-Polin announced the young man’s death early Sunday, ending a relentless campaign by his parents to rescue him that included meetings with world leaders and an address to the Democratic convention last month.

Goldberg-Polin, 23, was seized by militants at a music festival in southern Israel on Oct. 7. The native of Berkeley, California, lost part of his left arm to a grenade in the attack. In April, a Hamas-issued video showed him, his left hand missing and clearly speaking under duress, sparking new protests in Israel urging the government to do more to secure his and others’ freedom.

 

103 of the 251 hostages abducted by Hamas on October 7 remain in Gaza, including the bodies of 33 confirmed dead by the IDF.

Hamas is also holding two Israeli civilians who entered the Strip in 2014 and 2015, as well as the bodies of two IDF soldiers who were killed in 2014.

 

The game was first suspended due to weather on June 26th, and Danny Jansen was traded back in July. The game resumed on August 26th - with him now playing for the other team.

 

The 52-year-old is from Israel’s Arab Bedouin minority and was working as a guard at a packing factory in Kibbutz Magen, one of several farming communities that were attacked on Oct. 7.

 

Hezbollah has launched 320 rockets at Israel in the last two hours, alongside at least dozens of drones, but no exact number on the drones. Those numbers are based on a single source, so please take the number with a grain of salt - this source is generally correct, but it is a single source publishing those numbers.

2 injured so far, and extensive damage to civilian homes and infrastructure.

 

The same Iranian hacking group believed to have targeted both the Democratic and Republican presidential campaigns tried to go after the WhatsApp accounts of staffers in the administrations of President Joe Biden and former President Donald Trump, Meta Platforms said Friday.

 

Yagev Buchshtab, Alexander Dancyg, Avraham Munder, Yoram Metzger, Nadav Popplewell and Haim Perry

 

From the photos on twitter, it looks like it hit the only soccer field in town, landing between the field and the playground next to it. Hezbollah first claimed the attack, but now that there are 10 kids dead, and another several dozen kids injured they've backpedaled on it.

archive link

UPDATE: 10 dead, 6 in critical, 3 moderate, 4 light, and several dozen unadmitted injured people

 

“A short while ago, IDF fighter jets struck military targets of the Houthi terrorist regime in the area of the Al Hudaydah (Hodeidah) Port in Yemen in response to the hundreds of attacks carried out against the state of Israel in recent months,” the Israel Defence Forces (IDF) said in a statement.

The strikes on Hodeidah came a day after a drone attack in Tel Aviv killed one man and injured at least 10 others.

archive link

view more: next ›