Re:The bunny theory of code
by scott_s on Monday May 18, 2015 @01:18PM
(#9565628)
The difference, to me, is that it's scaffolding code that can be abstracted. You can't abstract writing a class - it's a primary activity in the language. Only macros can help you there - either the broken ones provided by the C preprocessor, or real ones provided by languages like Racket or Rust.
But boilerplate code that interacts with an external library is not a primary activity in the language. You can hide it behind a class or a family of functions.
But boilerplate code that interacts with an external library is not a primary activity in the language. You can hide it behind a class or a family of functions.