So don’t kinkshame y’know.
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠
- 0 Posts
- 412 Comments
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
Programming@programming.dev•GitHub - johnousterhout/aposd-vs-clean-code: A discussion between John Ousterhout and Robert Martin about differences between John's book "A Philosophy of Software Design" and Bob's book "Clean Code".
51·1 month agoI think the rules written in Clean Code are mostly a response to the kinds of bad code that Martin had to deal with. I think compared to the bad examples he cites his rules are an improvement.
Ousterhout mostly pricks holes in these rules, based on the bad code he has seen. But he’s not infallible either since he wrote wrong comments on his own code, which is a bit of a self-own.
I don’t think it’s entirely possible to provide one set of rules that can be universally applied. You need to adjust your code to the problem you’re solving, your audience, your programming language, etc… You’ll always find counterexamples where doing something a little different works better.
Code should be self-explanatory, but a good informative comment can go a long way. Long methods should probably be broken up, but not always and not beyond the point of usefulness. I’ve seen examples where the UB version read better than the JO version, and vice versa.
The value for me in these discussions is finding out why people write what they do, and what they prefer to read (and why). That helps me think about how I can best structure my code for readability. But there’s no point in setting rules and becoming dogmatic about them.
Not sure the pose is the primary issue here…
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
Work Reform@lemmy.world•Make Congress Earn Average American Wage.
5·1 month agoThe more serious answer to that is that someone then needs to decide what “competent” means. Should a human rights activist be disqualified from office if they’re terrible at math?
Morality tests are even harder to make apolitically. It’s another avenue of attack that could be used maliciously.
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
Work Reform@lemmy.world•Make Congress Earn Average American Wage.
4·1 month agoSounds like an improvement over the current US congress already.
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
World News@lemmy.world•Israeli election authorities ban all Arab parties from running in upcoming Knesset pollEnglish
1·2 months agoThe Communist Party USA (CPUSA) was banned in 1954 under Eisenhower, which a federal court eventually deemed unconstitutional 19 years later.
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
Work Reform@lemmy.world•Compsci grads facing recession-like job prospects thanks to AI - Slinging coffee and waiting tables ain't just for liberal arts grads any more, say Census Bureau economists
9·2 months agoTricky thing is that these LLMs aren’t very good systems designers, and that even for seemingly basic task someone needs to check if it’s doing what it is supposed to do. For complex systems, that requires senior developers.
But if you don’t hire junior devs anymore, who’s going to replace those seniors once they leave?
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
World News@lemmy.world•‘Pathetic’: Israeli Minister Threatens to Revoke Citizenship of NAZA FilmmakersEnglish
5·2 months agoKojima strikes again
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
World News@lemmy.world•Far-right AfD win in Germany is ‘grave moment’ for Europe, politicians warnEnglish
7·2 months agoEh, we’ve kinda seen the opposite in the Netherlands. Far-right party got in right-wing coalition, things obviously failed to work out for them as they were completely dysfunctional, and they were punished in the next election. In countries without FPTP it’s much harder for these kinds of parties to get in control.
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
World News@lemmy.world•Far-right AfD win in Germany is ‘grave moment’ for Europe, politicians warnEnglish
121·2 months agoBut the CDU is also promising to tackle immigration, and has actually delivered on some of it during their government. They were halved this election.
The fascist can always jump to the next topic. Immigration isn’t even the original boogeyman, there’s always another “other”. You can’t beat them at their own game, they’ll always promise a more radical, more “effective” solution, meaning you’ll never “do enough”. The only thing you’ll do is legitimize their viewpoint.
You need to address why people are looking for a boogeyman. And that’s because many of them appear to be worse off than they were a decade ago. They’re angry at traditional parties because they messed up economically and standard of living is going down. Address that, and you take away the oxygen that fuels the fire. Immigration didn’t cause the standard of living to go down, promising you’ll end it legitimizes those who claim it does.
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
World News@lemmy.world•Syria was building a nuclear reactor in Deir el-Zour under Assad, UN reportsEnglish
2·2 months agoSure, but MAD has never actually been tested.
Suppose Russia drops a tactical nuclear warhead on Ukraine tomorrow. Will anyone start dropping nukes on Russia in response?
Suppose Russia starts a ground invasion of the Baltics; will France drop a nuke on them? Or would we just get another large-scale conventional war where neither side dares to touch their nukes?
He looks a bit like one of mine. He’s called Silvestro (or “Silly” for short).
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
World News@lemmy.world•Convicted Bosnian Serb war criminal Mladić dies aged 84English
5·3 months agoHe’s suffered several health incidents including a stroke afaik. So maybe!
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
Ukraine@sopuli.xyz•Key Airport Executive Who Oversaw Prigozhin’s Final Flight Found Dead
7·3 months agoPresumably they got to his family.
IIRC that’s disputed to not actually be Stalin.
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
Lemmy Shitpost@lemmy.world•A cow is more likely to kill you than a shark
2·3 months agoMaybe you should read into it more, because what you said is blatantly wrong.
The Paks power plant in Hungary takes water from the Danube, but due to the drought the water level dropped to a mere 23cm. The suction nozzles physically can’t reach enough water. It’s an intake problem, it’s not an issue with pumping it out again or storing it until the water cools.
Here’s an article that mentions this: https://www.bbc.com/news/articles/cn0nqv05g0do
The Soviet-era Paks power plant uses the Danube for cooling but the water level is so low that the suction nozzles cannot reach it.
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
Lemmy Shitpost@lemmy.world•A cow is more likely to kill you than a shark
21·3 months agoNuclear is actually a very poor fit for baseline power because of the high costs involved and the problem of it being expensive and slow to turn on or off. Kept turned off, nuclear is a massive money bleeder which is why investment companies rarely touch them.
Because solar and wind are variable, you need a baseline that’s also variable to be able to quickly compensate. The only real viable options are battery power (harder to scale), hydro (geographically limited) and unfortunately gas power plants (polluting, but cheap). Nuclear is excellent stable power, good if solar/wind are never able to reach 100% of needs, but multiple countries have now shown that that is very much within the realm of possibilities.
Biggest issue with nuclear remains cost, excessively long time to build and if there’s a drought you don’t get enough water to cool with so you need to switch it off (see Hungary and France these days to see the very expensive consequences of that).
𝙲𝚑𝚊𝚒𝚛𝚖𝚊𝚗 𝙼𝚎𝚘𝚠@programming.devto
Fediverse@lemmy.world•Maybe a better Threadiverse Major Defederations Graph?English
2·3 months agofedinsfw.app looks like.

It’s called the Kehlsteinhaus, and it housed a permanent exhibition of Nazi crimes.