Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Boilerplate is an implicit abstraction: recognisable generality, but lacking a coded mechanism.

These could always be manually transformed to fit standard abstractions, such as functions or classes. But Lisp's macro facility instead allows them to be captured more 'directly'.

Now, whether fewer standardised abstractions is better/worse than more various tailored abstractions, is a deeper question . . .



A perfect example is Java's getters and setters, which follow a completely regular pattern but still have to be coded individually.


This wikipedia entry is a decent introduction, discussing pros and cons of repetition-reducing abstractions (DRY) in a language-independent way.

http://en.wikipedia.org/wiki/Dont_repeat_yourself


your link doesn't work. Try this one instead. http://en.wikipedia.org/wiki/Don%27t_repeat_yourself I was not aware there was a term for this. Also called DIE (Duplication is Evil).


Thanks for the updated link. Mine was a cut/paste from the Chrome address bar. A bug maybe.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: