DEV Community

Discussion on: Revisiting the L in SOLID

Collapse
 
mcsee profile image
Maxi Contieri

great article!

why is the method increaseSpeed static?

I think it is more easy to explain Liskovs with non-static methods, and you should also skip the metaprogramming part.

Static methods and metaprogramming are code smells

Collapse
 
sightlessdog profile image
Elyess Eleuch

Hi, thanks or your feedback. You're totally right!. I would adjust the static part, and I used reflection in the increaseSpeed method to only simplify the output.