News for hackers. Stuff that matters.
Re:I don’t buy “duplication is cheaper than the wrong abstra... by amalcon on Tuesday August 29, 2023 @04:02PM (#37313130)
This way of doing things (which I agree is often the correct way) is the reason for Greenspun's Tenth Rule: https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule

Though it's less true today and in languages that are not C or Fortran. Even something like C++ or Java has the template method pattern, which gets you 80% of the way there. Dynamic languages like Python or Ruby tend to have pretty reasonable facilities for building DSLs, as do more modern languages like Scala and Rust.

There are no comments on this comment yet.