Discussion about this post

User's avatar
BreddyT85's avatar

I remember an old post from this blog:

Author: Martin Sústrik, 250 Bpm blog, 7th Nov 2016, "The Cost of Abstraction", URL https://web.archive.org/web/20191121115100/http://250bpm.com/blog:86

The author notes that, every time we write a subroutine or a function, we avoid the code duplication (DRY), but we create a new abstraction. The following problems must be considered, before appling DRY:

_ an abstraction could be hard to understand, posing a cognitive load on the developer which reads the code written by another one.

_ the consensus between the developers about the abstraction can be hard to reach.

2 more comments...

No posts

Ready for more?