Contents
What is the result of using too much abstraction?
And if you go too far up, abstraction-wise, you run out of oxygen. Sometimes smart thinkers just don’t know when to stop, and they create these absurd, all-encompassing, high-level pictures of the universe that are all good and fine, but don’t actually mean anything at all.
Is abstraction bad programming?
For a programming language to qualify as such, the only thing it needs is Turing Completeness. An abstraction is sufficiently good if, in principle, it can yield answers to all questions that it’s designed to solve. …
Can abstract class used in multilevel inheritance?
Can abstract classes be used in multilevel inheritance? Explanation: The abstract classes can always be used in multilevel inheritance.
Why is abstraction so important?
Why is abstraction important? Abstraction allows us to create a general idea of what the problem is and how to solve it. The process instructs us to remove all specific detail, and any patterns that will not help us solve our problem. This helps us form our idea of the problem.
Is it possible to have too many layers of abstraction?
Its absolutely possibly to have way too many layers of abstraction, just like its possible to have way to little. The true art of the programmer, like the our tailor friends, is to leave a little where it counts the most. Getting back on topic. The problem with code is usually not abstraction, but dependencies.
What happens when abstractions fail in a program?
When abstractions fail, the more of them you have layered in between the code you wrote and what’s actually going on, the harder it is to figure out the problem and fix it, because there are more places where the problem might be. And the more layers there are, the more you have to know in order to track it down.
Why is this code tends to be complicated?
This code tends to be complicated because it is sometimes very abstracted and is hard to be understood at the beginning; this arises due to the fact that it is only pure abstraction, the base in reality and business logic being performed in the code presented 1; from this reason this code is not expected to be changed once tested.
Is there such a thing as a perfect abstraction?
Yes, definitely. The thing is, no abstraction is perfect. All of the details of the layer that abstractions sit atop are there for a reason, and it can simplify a lot of things, but if that complexity wasn’t necessary at some point, it probably wouldn’t be there in the first place.