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.
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.
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?
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.
Iran is pretty fucking transparent with their goal: to destroy the Zionist entity. The posters literally say “wiping Israel off the face of the Earth is just the beginning”. And no, they don’t mean “dismantle the state mechanism” like some users here claim. They very much mean it in the “death to the Jews” way.
Framing it as purely defensive is just lying
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.
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.
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.
Small strikes against any IRGC personnel stationed outside Iran - they’re fair game and on the table. We’re already seeing this with the strikes on Damascus and throughout Lebanon.
Also - based on the saber rattling and talking heads, it sounds like there are likely to be three potential targets: the dams, which would cause massive domestic economic damage to Iran; the oil facilities, which would cause massive economic damage to the Iranian regime; finally, known nuclear sites, which are in line with Israeli rhetoric about preventing Iranian nuclear ambitions.
I think cooler heads will prevail and the dams won’t be targeted, and without a regional coalition committed to a ground invasion with a goal of regime change, attacking the nuclear facilities won’t have the strategic impact that’s desired. Which leaves the oil refineries - there’s a natural bottleneck for Iranian oil production/export so there’s a short list of physical areas that need to be attacked for it to be effective.
Thinking on it further, IRGC headquarters should also be on the table. I don’t think it’s likely, but if it succeeds (and it’s likely to succeed - especially with direct US support) then it’s a huge win. But even if it does succeed I don’t see it leading to real regime change in Iran, so without that strategic impact it’s far less likely.
What is needed is better controls over who can downvote. Communities should get better controls for moderation - up to and including control over whose votes get counted. Simple controls like “only subscribers” or “accounts older than 1 week” or “accounts that have commented on the post/replied to this comment” all the way through to “only users on this list”.
But pushing the control into the individual user’s hands will simply create echo chambers worse than the existing ones. Let’s not turn Lemmy into Facebook.
Only on signup
Anything using Blind as a “verified industry source” is going to be skewed to the type of person who uses Blind. Beyond that, it’s low sample size, and there are suspiciously round fractions for some of the larger companies. Worse, because Blind is blind - this doesn’t represent current employees, but merely people who worked at some point in the past at those companies.
Not saying it’s not good - just saying not to get overly excited over a badly done survey
Typical intercept opinion piece - one sided with self-contradictory citations. For example - claiming that the only complaint was based on an Instagram story that way posted after the professor was informed of the complaint. It’s like they started from the headline and just wrote whatever supported that conclusion.
I honestly wish I hadn’t wasted my time reading this
Not just Nasrallah - basically everyone in the top two or three layers of Hezbollah’s military leadership have all been killed in the last few weeks.
The actual auction site: https://360assetadvisors.com/events/fssmh/
Looks like they’re only breaking it down into three parts: Infowars the media company, Infowars the supplement store, and a pile of domain names. Production equipment might get sold as part of a separate auction.
I’m not loving the NDA though - open auctions should get more value.
Much as everyone is laughing at this, there are several European countries that recently purchased Israeli missile defense systems. This could potentially be Russia attempting to show them that it won’t work (or probe for weaknesses - depends how far along they are in their anti-anti-missile program).
Either way, it does put Russia on the spot as knowingly providing weapons that will likely be used against Israel. Which hopefully will mean greater support of Ukraine by Israel, who have up until now been avoiding that to maintain security ties with Russia in order to counter Iranian operations in Syria.
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).