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.

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.

in reply to daniel:// stenberg://

@f09fa681 Kinda agree when we exclude functions extracted/refactored that contain only one call. While a complex call with a GOOD name of the function might be considered helpful, I tend to find it harmful as it is a context switch while reading code, for only one line/call. So it can turn bad if everything is wrapped in small functions - having unreadable code, and slipping right through the metric.

Kink, me in a skirt and crop top, marks from a cane

Sensitive content

@Lucy

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…

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.

Grateful to Molly White for pointing out the legal precarity of freelance journalism. For most people, the law is more of a threat than a protector. citationneeded.news/i-am-my-ow…

#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.

This entry was edited (4 months ago)

Oh my word and ho ho ho! We live in such a holly jolly era of miracles and wonders! Classic Christmas song gets authorized Spanish reworking thanks to ‘responsible’ AI techcrunch.com/2024/10/25/clas…

AI generated, male voice

Sensitive content

reshared this

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

This entry was edited (4 months ago)
in reply to Ami Angelwings

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.

This entry was edited (4 months ago)
in reply to Ami Angelwings

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 -_-

my take on recent regrettable events in the #linux kernel community. laforge.gnumonks.org/blog/2024…

reshared this

in reply to daniel:// stenberg://

@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)

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…


The site chronicling Matt Mullenweg vs WP Engine got bullied out of existence.

bullenweg.com


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 🚀

jetbrains.com/rider

Ich hoffe, meine lieben Leseratten sind nicht mittlerweile verhungert – seit Mitte Juni kein Lesefutter zugefügt 😱 Also hier mal schnell 24 Neuzugänge bei ebooks.qumran.org/ hochgeschoben. Mehr kommt nach, braucht nur wieder ein wenig – zu viel zu tun…

#eBook #eBooks #gratis

in reply to IzzyOnDroid ✅

Hi, ich schreibe Fantasy, einen Teil davon auch frei verfügbar. Ist allerdings queer.

Akzeptierst du nur Public-Domain (also CC0), oder auch sowas wie CC-BY oder ND? Dass Leute meine Sachen gratis lesen, wäre für mich kein Problem, aber dafür, Leuten zu erlauben, die nach Belieben zu verwenden oder sogar unter deren Namen zu verkaufen, ohne mich bloß zu nennen, steckt da zu viel Arbeit drin.

This entry was edited (4 months ago)
in reply to R. Shivran

@r_shivran Meine eigenen Bücher sind CC BY-NC-SA, ebenso wie die von Cory Doctorow und einigen anderen. Wichtig ist mir da, dass zum Einen ich rechtlich abgesichert bin (also verteilen darf), und dass die Autoren (so noch lebendig) damit einverstanden sind. Einige Autoren haben mir auch einzelne Werke explizit zur Verfügung gestellt, quasi "all rights reserved" mit Sondergenehmigung. Also gern her damit, und natürlich auch gern queer 😃
in reply to R. Shivran

btw, ich bin Frontend-Developer und das Webinterface sieht ein bisschen 90er aus. Ist das Absicht bzw. dein persönlicher Geschmack und soll so, oder ist die UI/UX-Gestaltung bloß nicht dein Hobby?
Ich hätte ein paar Ideen, wie ich mir das als User übersichtlicher wünschen würde und würde daran auch kostenlos mitarbeiten, aber da ich mich schon erstmal in den Code einarbeiten müsste, würde ich das nur machen, wenn du das möchtest.
in reply to R. Shivran

@r_shivran Ich bin in der Tat kein "Grafik-Designer", habe das daher nach dem KISS-Prinzip gemacht – keep it simple (and functional). Komme schon eine ganze Weile nicht mehr dazu, an miniCalOpe zu arbeiten; IzzyOnDroid nimmt mich mittlerweile voll in Beschlag (ist quasi schon ein zweiter, aber unbezahlter Vollzeit-Job).

miniCalOpe verwendet "Template Sets", je eins für OPDS und HTML. Beide gleiche "Struktur", so dass sie identisch befüllt werden können.+1 HTML Set wäre, wenn möglich, ideal 😉

in reply to IzzyOnDroid ✅

Grafik-Profi bin ich auch nicht, aber würde mich bei UI/UX zumindest als ambitionierten Junior einstufen. Ich habe halt mit Android-Development keine Erfahrung und würde mich auf HTML und CSS beschränken, aber damit kann man ja auch schon einiges machen.

Ich schau mir die Funktionen an und würde dir auch erstmal einen Entwurf erstellen, damit du eine Ahnung bekommst, was ich mir vorstelle.

edit: Wird ein paar Tage dauern, ich muss erstmal bei der Dateistruktur durchsteigen.

This entry was edited (4 months ago)
in reply to R. Shivran

@r_shivran Passt. Ist auch kein Android involviert da, sondern in der Tat nur HTML+CSS (kein JavaScript). Wie getippst, idealerweise wäre das einfach ein neues Template-Set. Zusätzliche Felder (z.B. Buch Cover in den Listen) sollten machbar sein – hatte ich schonmal versucht, bin dann aber am Design gescheitert 🙈

Letztendlich ist mir beim eBook-Server wichtig, dass die eBooks verfügbar und einfach abrufbar sind, auch direkt aus dem Reader heraus (OPDS). Muss keinen Schönheitspreis gewinnen 😉

in reply to IzzyOnDroid ✅

Javascript bedeutet nicht zwangsläufig Cookies, ich benutze aus Prinzip keine CDNs für Dinge, die sich irgendwie selbst schreiben lassen.

Und nein, sorry, ich verstehe, wenn man kein Javascript möchte, aber das, was die Suchfunktion momentan anbietet, würde ich wirklich nicht als "Filtern" bezeichnen, man kann nichtmal mehr als einen Tag gleichzeitig setzen.

in reply to R. Shivran

@r_shivran Schonmal mit der Ctrl/Strg Taste gespielt? HTML/Browser Standard. Ich kann problemlos mehrere Tags auswählen, siehe Screenshot 😉

Und ja, ich weiß dass JS und Kekse zwei verschiedene und voneinander unabhängige Dinge sind, möchte aber beide möglichst vermeiden. Unsere "liebe Werbeindustrie" hat dafür gesorgt, dass beide einen schlechten Ruf haben. Und ja, alles sollte "lokal" auf dem eigenen Server laufen – keine Sourcen von Extern laden.

in reply to IzzyOnDroid ✅

Nein, habe ich nicht ausprobiert, weil aus dem UI für mich nirgendwo ersichtlich ist, dass diese Funktion für STRG überhaupt hinterlegt ist.
Da würden Checkboxen mehr Sinn machen, oder zumindest ein Hinweistext. Unpraktisch wäre das bei dem winzigen Auswahlfeld auch immer noch.

Aber ist gut zu wissen, dass es insgesamt implementiert ist.

Spätestens, wenn ich auf "Suchen" geklickt habe, sind die Auswahlmöglichkeiten weg und ich sehe nichtmal, welcher Tag aktiv ist.

in reply to IzzyOnDroid ✅

Ich sehe jetzt nicht, was bei der Auswertung von Checkboxen aufwändiger sein soll als aktuell, wenn die Mehrfachauswahl (hier über STRG) bereits implementiert ist.

Der Nachteil bei der Sache mit der STRG-Taste ist aber natürlich auch, dass auf einem Mobile-Gerät, wo man den Reader vermutlich nutzt, idR keine Tastatur angeschlossen ist, sondern die über Touch bedient werden, und STRG über Touch-Tastatur ist schon echt unbequem.

Beim Design überlege ich mir mal was.

in reply to R. Shivran

@r_shivran Mobil im Reader wird das OPDS Interface benutzt, da werden die Daten als strukturiertes XML geliefert. Die Darstellung wird dabei vom jeweiligen eBook Reader bzw. der jeweiligen App übernommen. Da sollte das eigentlich kein Problem sein.

Für Weiteres wechsel ich mal in den "DM Modus", damit wir hier nicht das ganze Fedi (oder auch nur alle Follower) "spammen"…

in reply to R. Shivran

Wie gesagt, ich muss mich mal in den Code reinlesen, was da wie implementiert ist. Irgendwo muss die Suche ja programmiert sein, läuft dann vermutlich via php? Könnte man auf der Ebene ggf. auch optimieren, dauert nur länger, bin ich nicht so der Pro drin.

Aber das können wir ja irgendwann mal in Ruhe besprechen, wenn es dir passt. War ja nicht der Sinn der Sache, dass du jetzt mehr Arbeit damit hast, v.a. wenn du eigentlich gar nicht die Zeit dafür hast.

The Small Midwestern Cities That Could Play a Pivotal Role in This Year’s Elections

For all the talk about big-city Democrats and rural Republicans, it's the voters in overlooked places like Sandusky, #Ohio, and Racine, #Wisconsin, who could decide everything from key congressional races to the presidency.

propub.li/48mLrOJ

#News #Midwest #Election2024 #Vote #WorkingClass #Industry #Economy #Labor

Hello #writers of the world! With #NaNoWriMo approaching, I wanted to create a space for like-minded people to gather and share ideas, progress, encouragement, and accountability. I've created a Discord server for writers of any kind, be that novelists, poets, coders, content writers, etc. Anyone is welcome to join and hang out with us. We have text channels for casual and topic-based conversation, as well as voice channels for various topics including one for body-doubling. You're even welcome to join if you aren't a writer but enjoy reading/helping others with their projects. If this sounds like a place you might like to be, please join. :) discord.gg/hYtPBcCZ33 #writing #nanowrimo2024 #amwriting

Auch das sind Gitarrengötter. Aber Götter der akustischen Gitarre, und Götter des Jazz: Biréli Lagrène und Adrien Moignard, "geerdet" von Bassist William Brunard.
youtube.com/watch?v=V-lb4V_7do…
oder auf der Individous-Instanz euerer Wahl mit /watch?v=V-lb4V_7doM

Our latest episode is a good one! Get hooked on pre-commit hooks with Stefanie Molin. We talk about what they are, why you want them, how to build them, how to debug them and much more. Enjoy! cc @mkennedy #python

talkpython.fm/episodes/show/48…

Hey you! Want to work on software that impacts hundreds of millions of people all around the world? Come join my team at Apple as a Localization Software Engineer! 🌎🌍🌏

(Cupertino-based, no remote work)

jobs.apple.com/en-us/details/2…

in reply to brabitom

@KKocanski @babaq @trilobyte samoobsluha vs. pultový prodej je podobné téma. Bufet na stojáka vs. restaurace. Svět se posouvá. Já rád nakupuju spotřební zboží, nářadí apod. on-line, ale potraviny, oblečení a boty osobně. Nejvíc mi vyhovuje scan&go v Globusu. Nejdřív scannerem a co zavedli skenování aplikaci v mobilu, tak vyfotím čárový kód a nakupuju rovnou do tašky. Samozřejmě za to platím penězi i částí svého soukromí.
This entry was edited (4 months ago)

[Forum Topic] muting speech without the track pad applevis.com/forum/macos-mac-a…