3 ms·
The end of the 1940s gave us the subroutine. A means through which one could encapsulate some functionality into a named construct that could be called (reused)
by aryehof 6y ago
The end of the 1940s gave us the subroutine. A means through which one could encapsulate some functionality into a named construct that could be called (reused) throughout a program.
It’s a construct available for a programmer to use. DRY encourages one to do so when appropriate. Dogmas interpreted that one must always do so are simply unhelpful.