This content originally appeared on DEV Community and was authored by Muhammad Fauzan
Using abstraction lead us to write another higher-level of abstraction if it's not leads, then your abstraction is bad.
e.g
abstract class CrazyExample
{
abstract protected function getValue();
abstract protected function getOptions();
abstract protected function getValueAndOptions(); //??
}
what is the benefit of hiding the complexity of a system? is it just to waste your time, you would be find the way back to your complexity during development again.
This content originally appeared on DEV Community and was authored by Muhammad Fauzan
Muhammad Fauzan | Sciencx (2021-10-02T09:07:40+00:00) Why you should avoid using abstraction and interface. Retrieved from https://www.scien.cx/2021/10/02/why-you-should-avoid-using-abstraction-and-interface/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.