Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.md 1.2KB

title: Résister à la généralisation

“Wow, I can simplify this; if I just generalize this class or build this Framework it would be so much easier to accomplish what I want to do!”. It happened all the time. I would write Game Engines when I was trying to write games, or forum software when I was trying to start a forum. […] I loved writing beautiful, generic code, that could easily be re-used in the future.

I kept doing this for a long time. I kept generalizing stuff, I kept trying to make things generic. And eventually I learned, the hard way, the truth about generalization: It is (almost always) a waste of time.

On Generalization (cache)

Le fichier fabric qui génère l’intégralité de ce site fait maintenant plus de 1000 lignes. C’est énorme vu la concision que permet Python. Mais c’est presque avec nostalgie que j’évite de refactoriser tout ça. Il est le témoin de mes errements et de mes erreurs, de mes contradictions et de mes habitudes qui évoluent. Et il me retient surtout de le partager et de subir le poids de la maintenance.