One of the coolest techniques for writing structured code is to use a decorator. Ruby has a Delegator class (https://docs.ruby-lang.org/en/master/Delegator.html), a DelegateClass method (https://docs.ruby-lang.org/en/master/Object.html#method-i-DelegateClass) and a simple delegation implementation SimpleDelegator (https://docs.ruby-lang.org/en/master/SimpleDelegator.html). If you are really interested in their implementation, you can find the source code here (https://github.com/ruby/delegate/blob/master/lib/delegate.rb).

#Ruby #Decorator #Delegator #SimpleDelegator #Exception

حكينا قبل برشة مرّات على مشاريع يمنعوا ال
#AI
أما عمرنا ما حكينا على مشاريع يقبلوا ال
#AI
مثلا
#Mesa
إلّي صرّحت راهي مش تقبل مساهمات ال
#AI
https://www.phoronix.com/news/Mesa-Two-Gen-AI-Policies
ثمّة إقتراح متاع
#Driver
يحارب ال
#USB Devices
إلّي فيهم مشاكل
#Malicious
https://itsfoss.com/news/linux-driver-proposal-malicious-hid-devices/
#Fedora
كانت توفّر ال
#Updates
ل
#Mesa #Drivers
عادي كيمة كلّ
#Update
أما توّ
#Fedora
عملتهم
#Exception
و مش يولّيوا يجيوا مع كلّ
#Release
https://www.phoronix.com/news/Mesa-Updates-Exception-Fedora
Mesa Developers Decide On Two Gen AI Policies For Development Moving Forward

Building on prior Mesa contributor guidelines and discussions among upstream Mesa developers, there are two generative AI 'GenAI' policies that have now been decided upon for Mesa development moving forward.

How to Catch the Memory Leak Hidden in Exception Tracebacks

Every caught exception secretly holds your entire call stack alive, leaking megabytes per request.

#python #memoryleak #exception #traceback #production #howto #garbagecollection #servercrash

https://www.youtube.com/watch?v=ZFYq-QJsEio

How to Catch the Memory Leak Hidden in Exception Tracebacks #exception

YouTube

#exception : or as to the decision of a judge, in the course of a trail, or in his charge to a jury

- French: exception

- German: die Ausnahme

- Italian: eccezione

- Portuguese: exceção

- Spanish: excepción

------------

Word of The Hour's Annual Survey @ https://wordofthehour.org/r/form

Word of The Hour - Annual Survey (2025)

Your responses to the questions below will directly impact the future of Word of The Hour. Your support and kindness has really meant a lot over the past three years. Thank you so much! Michael Wehar https://wordofthehour.org [email protected]

Google Docs

[Перевод] Почему GZIP сыпал исключениями только в жару и в дождь

В квартире стояла летняя жара. Впрочем, ненадолго: хозяин квартиры как раз привез мне кондиционер, и его пора было запускать. Через несколько недель Я писал на C# программу для распаковки gzip-файлов и неожиданно поймал странное исключение, из которого следовало, что архив поврежден. Ситуация выглядела дико: ошибка намекала на поврежденный архив, хотя сам файл не выглядел реально битым. Сказать, что это напрягало значит ничего не сказать...

https://habr.com/ru/articles/1016532/

#bash #gzip #c# #exception

Почему GZIP сыпал исключениями только в жару и в дождь

В квартире стояла летняя жара. Впрочем, ненадолго: хозяин квартиры как раз привез мне кондиционер, и его пора было запускать. Через несколько недель Я писал на C# программу для распаковки gzip-файлов...

Хабр

More observations about checked vs. unchecked exceptions and why unchecked exceptions should not be called "exception". I rather suggest "explainer". Thy explain why an operation could not be performed.

https://miamao.de/blog/2026-02/23.When_is_an_Exception_an_Exception.html

#exception #uncheckedException #Java #TypeScript #Python #Rust

Junior Devs Use try-catch Everywhere. Senior Devs Use These 4 Exception Handling Patterns

Try-catch on every method? That’s not safe code — that’s a ticking time bomb. Here’s what senior devs do instead.

Medium

Terrific explanation of the inner-workings of the #CommonLisp condition system (a powerful superset of #exception handling that can do way more cool stuff, like restarts): https://www.youtube.com/watch?v=pkqQq2Hwt5o

Basically, the condition system itself is built directly in Common Lisp using facilities in the language that are available to the user: dynamic variables, closures, and non-local flow-control (tagbody/go and block/return-from). Nice syntax/structure provided by macros, of course. Fucking brilliant.

Immutable Conversations | Common Lisp

Immutable Conversations is a video series from 47 Degrees featuring casual conversations about important open source libraries with maintainers and contribut...

YouTube

Wenn du gerade erst mit dem Programmieren in Java startest, wirst du relativ schnell über einen Begriff stolpern: "Fail Fast". Klingt erstmal nach einem fancy Buzzword, steckt aber etwas sehr Handfestes dahinter: Der Code soll möglichst früh, möglichst klar und möglichst laut kaputtgehen, wenn

https://magicmarcy.de/fail-fast-statt-spaet-kaputt

#Fail #Exception #Java #Vorbedingungen #IllegalArgumentException #FailFast #Programming

Fail Fast statt spät kaputt: Sauberer Java-Code durch klare Vorbedingungen | magicmarcy.de

Wenn du gerade erst mit dem Programmieren in Java startest, wirst du relativ schnell über einen Begriff stolpern: "Fail Fast". Klingt erstmal nach einem fancy Buzzword, steckt aber etwas sehr Handfestes dahinter: Der Code soll möglichst früh, möglichst klar und möglichst laut kaputtgehen, wenn etwas nicht stimmt. Genau darum geht es hier.

magicmarcy.de

Mon calendrier de l’avent – jour 18

Java est un langage qui a maintenant prés de trente ans, et qui en trente ans a subi un certain nombre de modes. Et certaines décisions initiales sont, encore aujourd’hui, considérées comme … houleuses. La plus douteuse est évidement la distinction entre checked et unchecked exceptions. Aujourd’hui, qu’on apprécie ou pas le concept, le consensus est que les checked exceptions ont échoué. Le problème, c’est qu’il faut vivre avec cette décision très structurante. Et dans le monde des lambdas, c’est vraiment pénible, parce qu’il faut mettre des try/catch partout. D’autant plus qu’en fait l’obligation de catcher les exceptions disparaît à l’exécution !

Heureusement, on peut résoudre ça simplement avec des projets comme throwing-lambdas. Celui-ci permet, en entourant votre lambda par un appel de méthode (qui ne fait rien) de faire disparaître l’exception checked de votre signature, et donc de faire les choses dans le respect de la lettre de Java. Et bien sûr, si une exception arrive, elle remonte tranquillement la pile d’appels.

En relisant mes notes dans Shaarli, je me rends compte qu’il y a enf ait un équivalent dans Apache commons lang : Failable. Alors laissez tomber throwing-lambdas, et utilisez plutôt Failable !

#exception #java

Why Checked Exceptions Failed

Programming language features are never orthogonal.

Fernando Borretti