Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sure, but "favor x over y" or, put another way, "use y only if x is unsuitable" is compatible with this. Nothing in "prefer composition over inheritance" says that composition is the only correct way.


No, but I often see folks use it as a bludgeon for dogma.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: