分析軟體複雜度的 Cyclomatic complexity

在「decomplexification continued」這邊看到很久前有讀過,但已經忘記又重新看到的東西:「Cyclomatic complexity」。 cURL 這邊拿來當作目標,但看起來應該不是直接 optimize 這個指標,而是透過這個指標來找哪些 function 過於複雜的問題 (這邊有個經典的 Goodhart's law 可以參考)。 去年開始看 Cyclomatic complexity 的時候有超過 100 的 function: In May 2025 I had ju...

Gea-Suan Lin's BLOG

"Well, sure, all our sandwiches now come with shit. Shit is a very popular topping with our customers, so we thought we'd make it easy for all of you to get what you want. We determined it was too confusing for customers if some sandwiches came with shit, and some didn't, so we simplified our menu to make sure you could find exactly what you need. No, you can't order a sandwich 'but hold the shit'. After all, if you're that dead-set against eating shit, you can just order your sandwich and then eat around the shit."

This is a post about #Microsoft and #Google.

#Microslop #ShitSandwich #shit #EatShit #CoPilot #Gemini #AI #LLM #NobodyWants #bubble #GoodhartsLaw #Goodhart #metric #software #users

@ChrisMayLA6

A classic case of both #Goodhart's law - any measure loses its meaning over time once it is used as management target - and #Nicolson's lament - about hitting the target but missing the point . No wonder #WesStreeting seems interested in other employment opportunities!

Goodhart's Law is one of those ideas, once you learn it, you find it everywhere. I rewrote this post in order to read it for the podcast (so it flowed more) and it turned out so much better that I've updated the post. #MentalModels #politics #philosophy #GameTheory #GreatIdeas #Goodhart #Economics

GOODHART'S LAW
GOODHART'S LAW

Goodhart's Law illustrates how measures can become unreliable targets, leading to unintended consequences, much like moths drawn to harmful lights.

Bide batez, Goodharten legearen berri izan dut testuaren bidez: "neurgailu bat helburu bilakatzen denean, neurgailu ona izateari uzten dio"

https://en.wikipedia.org/wiki/Goodhart%27s_law

#Goodhart #neurgailluak #helburuak

Goodhart's law - Wikipedia

I wish, I wish... all ... specially #Tellus ... and #Mars ... a #peaceful and #goodhart ed , #happy #weekend ❤️
From #nature #BakkliAtNerskogen

"En 1920, voyant les cas de peste se multiplier, la Ville de Paris a annoncé qu’elle verserait une prime à toute personne qui lui présenterait un cadavre de rat. Entre septembre 1920 et juillet 1921, 500 935 rats ont été tués. Six mois plus tard, les autorités changeaient leur fusil d’épaule en voyant que des gens avaient commencé à élever des rats pour revendre leur cadavre."

Un exemple de la loi de #Goodhart ?

https://www.courrierinternational.com/long-format/dans-nos-archives-a-paris-le-rat-le-bol-des-habitants_210771_1 (derrière un #paywall )

#GoodhartsLaw

À Paris, le “rat-le-bol” des habitants

Rat brun, rat d’égout ou surmulot, quel que soit son nom, cet animal endémique des grandes métropoles est devenu l’objet de toutes les aversions. “The New York Review of Books” raconte le rapport des Parisiens à ces rongeurs avec lesquels ils cohabitent depuis des siècles, de façon plus ou moins harmonieuse selon les époques.

Courrier International

@annie @baldur Very reminiscient of Goodhart's law 👍

See also this excellent blog post by Jascha:

Too much efficiency makes everything worse: overfitting and the strong version of Goodhart's law:

https://sohl-dickstein.github.io/2022/11/06/strong-Goodhart.html

This is transferable to so many domains and #society at large!

#Goodhart #Optimization #GoodhartsLaw

Too much efficiency makes everything worse: overfitting and the strong version of Goodhart’s law

This blog is intended to be a place to share ideas and results that are too weird, incomplete, or off-topic to turn into an academic paper, but that I think may be important. Let me know what you think! Contact links to the left.

Jascha’s blog
Statistiken sind ja cool, aber doch bitte nur, wenn sie nicht *mich* anschwärzen.
#Goodhart #GoodhartsGesetz #comic #comics #comicstrip #informatik #noerdman