3 ms·
Rule of three is obsolete in age of AI assist. New rule is rule of 10ish.
by fritzo 2y ago
Rule of three is obsolete in age of AI assist. New rule is rule of 10ish.
- NiloCK 2y agoI don't agree with this, or maybe I don't get it. The point of DRY isn't to save the time on typing - it's to retain a single source of truth. If you've used an LLM to recreate some mechanism for you system in 8 different places, and that mechanism needs to change ... good luck finding them all.
- fritzo 2y agoSpecifically within a single file, I find LLMs can easily extend and maintain large sets of slightly varying concrete code, yet they struggle when that code is compressed into abstractions. The concrete examples form a dataset. Attention generalizes from that dataset. I'll agree that rule of three continues to apply for patterns across files, where there is less guarantee that all patterns will be read or written together in any given AI action.