language-agnosticabstractionmodularization

When is abstraction and modularization a bad practice in programming?


just saw this comment in a "what JS lib do you use" poll

"@Xanti - yes, yes, modularization and abstraction in programming is a terrible practice. Functions that call other functions? Wasteful."

And that left me curious because I am using Kohana framework for PHP and Jquery library for javascript.

Why do some people consider abstraction and modularization bad practices? Are not frameworks and libraries made to ease and speed up development?

here's a link to the poll


Solution

  • I have found that too much abstraction can be hazardous to your productivity:

    Abstraction is not a "mindless good"; it exists to serve specific purposes. Among the most common purposes are

    My biggest experience with abstraction getting in the way was with our research compiler for C-- (archival snapshot from 2008 at https://www.cs.tufts.edu/~nr/c--/). There was a great deal more abstraction than students were used to seeing in compiler class:

    Each of these abstractions served an important purpose for our research, but the total effect was that it was very difficult for new students to learn the compiler. So, even if the original comment was in jest, there are places where abstraction can cause problems.