General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Anony Mousse
Kantan Coding
comments
Comments by "Anony Mousse" (@anon_y_mousse) on "Abstraction Vs Code Readability" video.
It depends on the case. This is why when crafting an example to make a point it's actually better to use a real world example rather than some bogus animal attribute garbage. For the given example it would be better to use a database and not write any individual code for any animals. Merely iterate the traits present per animal and there's no need for any custom code per animal. Then new animals and traits could be added in the future and the program would keep on working correctly. However, the example given in cases like this are never the real point that's being made. Abstracting too much can hurt readability and make code worse, but not abstracting enough can really bloat the code which also hurts code readability and makes it worse. It's a delicate balance that isn't always easy to find.
12
@BellatrixLugosi Every coding paradigm has its place, but like I said, everything should be balanced. Too much of any one thing can make it worse.
1