decomplexifying #curl
daniel.haxx.se/blog/2024/10/27…
decomplexifying curl
(I wrote about this topic in my weekly email this week. This is the blog version, somewhat extended.) Easy to read Two contributing factors that make code hard to read are function length and function complexity.daniel.haxx.se
Why do we still call them set-top boxes? When was the last time you saw a brand new, modern television on top of which such a device could be placed?
For me, this was probably in the summer of 2003, and that's kind of a stretch.
Does this go into the category of why the save icon is still a floppy disk, why phone cameras still make analog shutter noises, and why phones are still called phones?
Tamas G reshared this.
Je to absurdní, ale Evropa se nemůže zbavit závislosti na ruském zemním plynu.
Paradoxně tak Evropa financuje obě strany konfliktu.
Nejde jen o tranzit přes Ukrajinu, ale i ruský LNG, který dováží čím dál více evropských zemí. Například Španělsko pokrývá 23 % svých dovozů plynu z Ruska.
I just got word that the 27th #XMPP Summit will indeed take place on the two days leading up to #FOSDEM 2025.
Thursday, January 30th 2025 and Friday, January 31st at the Thon Hotel EU in Brussels, Belgium.
Save the date! RSVP if you plan to attend in person.
If you are an XMPP developer and enjoy long discussions over minute details of XMPP protocol extensions this event is perfect for you!
Looking forward to seeing everyone in person again. Stay tuned for more details.
YSK: We have an official Loops Discord channel!
Join the pixelfed Discord Server!
Check out the pixelfed community on Discord - hang out with 752 other members and enjoy free voice and text chat.Discord
Video o hodinách na věži frýdeckého farního kostela, mj. o každoroční změně času.
Věž je přístupná veřejnosti a jelikož je v centru Frýdku, tj. na kopci, je z ní krásný výhled na celé město i Beskydy. A naopak já mám z okna krásný výhled na věž, vzdálenou cca 150 metrů vzdušnou čarou 😀
facebook.com/udalostiostrava/v…
Změna času na hodinách ve věži | Změna času na hodinách ve věži. 🕰️ V neděli nad ránem se posunout ciferníky ze tří hodin na dvě - končí letní čas. Většina hodin a hodinek to zvládne... | By Události Ostrava | Facebook
Změna času na hodinách ve věži. 🕰️ V neděli nad ránem se posunout ciferníky ze tří hodin na dvě - končí letní čas. Většina hodin a hodinek to zvládne...www.facebook.com
Mohl by na Marsu existovat život? Studie NASA nabízí možnosti
sciencemag.cz/mohl-by-na-marsu…
Výzkumníci se domnívají, že by roztátá voda pod krustou marsovského ledu mohla podporovat mikrobiální život. Hned na začátek je ale nutné připomenout, že zatím nemáme k dispozici žádné důkazy o tom, že by na Marsu byl skutečně objeven život. Ovšem nová studie expertů NASA zmiňuje možnost, že by potenciální mikroorganismy mohly najít vhodné podmínky téměř na povrchu planety.
Máme dnes v noci hodinu navíc. Tak pojďme na trochu filozofie - Ship of Theseus.
Za posledních deset let jsem ve svém PC měnil a modernizoval díly až tak, že jsem vyměnil i samotný case.
A přitom ten stroj furt vnímán jako stále stejnou mašinu 😁
zpravy.aktualne.cz/ekonomika/a…
Alfa Romeo, v níž boural Karel Gott, se vydražila za sumu, kterou nikdo nečekal
Alfa Romeo 2000 GT Veloce, ve které kdysi havaroval Karel Gott, se stala hvězdou aukce veteránů na Prague Car Festivalu.Eva Srpová (Aktuálně.cz)
I am my own legal department: the promise and peril of “just go independent”
Independent publishing is one important facet of the media ecosystem, and while I love it, I know it is not the path for everyone.Molly White (Citation Needed)
Snad to už brzo zruší.
#anketa Střídání letního a zimní času ano nebo ne?
- ponechat zimní (61%, 61 votes)
- ponechat letní (31%, 31 votes)
- nechat jak to je (7%, 7 votes)
#Gruzie 🇬🇪🙏🏻💚
zažila volby a opozice ma koaliční většinu. Gruzínský sen společnými silami poražen a s ním končí éra 12 let pro-ruské vlády.
EDIT:
Oficiálně je sečteno 99.646%
Vítězí stávající autoritářská vláda 54%
Exit poolls ve vládě jednoho prostě nefungují 😔
Gruzie čekají těžké časy od odstraňování opozice až po opětovné zavedení vízové povinnosti do EU a USA.
Držím palce, snad se podvody podaří prokázat 💪🏻✊🏻🤞🏻
PS Omlouvám se těm co jsem mistifikoval exit poollem.
Classic Christmas song gets authorized Spanish reworking thanks to ‘responsible’ AI | TechCrunch
In the decades following its 1958 release, Brenda Lee’s rockabilly-tinged “Rockin’ Around the Christmas Tree” has attained status as an all-time holidayBrian Heater (TechCrunch)
Living in a society where everyone is constantly trying to scam you if exhausting.
Sure, there's the regular scammers we think of. The ones who call or email you and pretend to be your bank, your telco, your long lost family with an inheritance for you.
But then there's all the legal scamming. Phones that come with built-in advertising IDs. Pop-ups with tiny close buttons. Anything where you have to "opt-out". Wherever bullshit Adobe has thought up this week.
It's exhausting.
🧵
When I was a teenager in the 2000s I somehow got the opportunity to interview the drummer from Minor Threat for a hardcore zine.
I asked him for his advice for young musicians. He said “you’re not going to listen to this advice because you don’t think it’s cool, and one day you’ll regret it, but always wear earplugs.”
I didn’t listen.
Didn’t think it was cool.
Permanent ear damage by my mid 20s.
General #linux #OpenSource question. I've put together my own spin on top of NixOS that I'm calling "nixbook" (a play on chromebook)
The idea is immutable self updating base with flatpaks on top for super basic users.
I want to give it a name so normies can identify what it is, instead of calling it the scary L word.
But I have no idea, am I allowed to do that? Anything legally I have to do, or thing to watch out for not to step on toes of the #NixOS project?
Forensic Architecture's cartographic analysis of the Gaza genocide, provided to South Africa for use at the International Court of Justice.
Via @ayoub , but let me repeat for emphasis: READ THIS
(a thread with some findings from the summary)
forensic-architecture.org/inve…
#Gaza #Genocide #ICJ #ICC #SouthAfrica #Israel #Geography #GIS
So in A Herbivorous Dragon of 5000 Years Gets Unfairly Villainized season 2, the Crunchy English subs make it seem like King Vanessa being a girl is a reveal in ep4, because in ep2, she's referred to as "he".
This is odd since nobody acts like it's a reveal, & her name is "Vanessa". So I looked further b/c Chinese has no spoken gendered pronoun (there is "he" & "she" in text but in speech, it's the same word). The Bilibili Chinese subs say "she" (她), so do their English subs. It's only Crunchy that made the assumption the King is a boy.
I suspect the CR translator was working from just the raw, & without text they had to make an assumption, & they heard "king" & saw somebody who could be a feminine boy & assumed male.
#AHerbivorousDragonOf5000YearsGetsUnfairlyVillainized #anime #donghua
the reason we suspect it's a translator error and not Crunchy using AI translation or something is because in episode 4, a character definitively genders Vanessa, calling her "my sister". That's the first time it's made directly clear. (The character referred to an off screen sister in previous episodes but not that that was Vanessa). And then the Crunchy subs start referring to her using female pronouns. So that's likely when the translator realized the gender of the character.
Crunchy notoriously overworks and underpays their translators so it's likely they don't have time to think too much about these things because of how fast they're pushed to translate stuff, and they're doing it as they get the episodes.
incidentally I really hate how online western anime fandom treats Chinese anime/donghua. There's like constant hate on subsplease and other places on animation that has Chinese audio, and they complain about it being a "dub" even though that's the original language, and then they say they'll wait for the "real Japanese" even tho the JAPANESE IS THE DUB. There's also all the weebs who complain that Chinese sounds worse & is less "real" sounding than the Japanese dialogue and like, most of you can speak NEITHER LANGUAGE, shut the f- up.
And of course Wikipedia often only lists the Japanese VAs for a lot of Chinese anime, and it's so hard to find what the OP of a show is b/c all sites in search results list the Japanese OPs as the only OPs for the show -_-
pratsam.com/pratsam-reader-win…
DAISY online player – Pratsam
Pratsam develops IT-solutions delivering accessible books to the visually impaired, supporting the DAISY standards and DAISY Online Delivery protocol.www.pratsam.com
On Linux MAINTAINERS file removal of Russian developers
I sincerely regret to see Linux kernel patches like this one removing Russian developers from the MAINTAINERS file. To me, it is a sign or maybe even a symbol of how far the Linux kernel developer coLaForge's home page
reshared this
@bagder
Yes that’s entirely fair, it would not have taken much to state:
“We are removing these names from the maintainers list because of US sanctions enforcement. No, this is not optional, at a penalty of personal criminal liability but I Linus Torvalds would not challenge this removal even if I could”
(Which was i think the gist of the statements that came out later)
“Simply do not break a glass, and it will last a thousand years. Smash it, and it will not last an instant. Democracy is like that: fragile, but only if you shatter it.”
“Trust is like that, too, as newspapers know.”
It has fallen to me, the humor columnist, to endorse Harris for president
washingtonpost.com/opinions/20…
PeaZip 10.0 File Archiver Debuts Revamped Interface
PeaZip 10.0, a free & open-source file archiver, introduces an updated GUI, enhanced file tools, improved drag-and-drop options, and more.Bobby Borisov (Linuxiac)
Queremos expresar nuestro más profundo agradecimiento a cada uno de ustedes que, desde diferentes rincones de América Latina y del mundo, hicieron posible este gran evento.
Gracias a todos los asistentes, tanto presenciales como virtuales, y al increíble equipo de #GNOME Latam.
From #DadSaysJokes Arguing with my wife is like reading a Software License agreement.
In the end you have to ignore everything and click "I agree".
Matt Mullenweg is making an absolutely spurious legal claim to silence his critics. Because of the fair report privilege, "platforming the claims in the lawsuits" is on rock solid ground. If anyone knows the person behind bullenweg, there are plenty of lawyers who would delight in telling Matt to go piss up a rope. mastodon.social/@mvsde/1133736…
A whopping 10,000 downloads in just 24 hours! We're deeply grateful for your overwhelming support and trust. Thank you for choosing #JetBrainsRider, and welcome to the JetBrains community. Here's to building amazing things together! 🙌💻 #dotnet #csharp #fsharp #aspnetcore #gamedev 🚀
Rider: The Cross-Platform .NET IDE from JetBrains
Develop .NET, ASP.NET, .NET Core, Xamarin or Unity applications on Windows, Mac, LinuxJetBrains
Lenny
in reply to daniel:// stenberg:// • • •I'm sure you're aware of the caveats but using function length may not be the best metric to measure complexity. What I'm about to write is therefore likely nothing new to you but I'm doing it nevertheless because there are many voices in the software engineering space that apply a naive law of "long function bad, short function good".
While splitting a function into smaller parts may improve readability to some degree, it rarely decreases the mental capacity needed to understand it. I'd argue that it's quite often even the opposite if the code is well-structured:
Blocks can be used efficiently to mimic a function that is specific to a use case, relatively short and not reusable. A separate function would introduce overhead in form of its signature and disruption of the reader's flow because its location is elsewhere in the code. The block can easily be shoved into a function when it becomes larger or when it can be re-used.
daniel:// stenberg://
in reply to Lenny • • •Lenny
in reply to daniel:// stenberg:// • • •As a general rule of thumb, I agree, I think.
When it comes to reducing complexity, what I'd want is to keep mental capacity needed in an acceptable range. In that regard, I'd e.g. value minimising the amount, scope and lifetime of variables within a function over function length. These metrics are likely much harder to provide but maybe they would be a neat addition next to the cyclomatic complexity.
daniel:// stenberg://
in reply to Lenny • • •Daniel Fisher(lennybacon)
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Daniel Fisher(lennybacon) • • •