Hi Dimitar Ginev, thanks, that’s a great comment.

Given my experience with this specific task, I am aware things will eventually start to diverge a lot as you’re saying, and while they maybe do belong to some extent to the same hierarchy, things will likely get messy (and lol, they did!).

Generally, I agree with you: initially, we have little information to work with to know how things will diverge unless we’re working within a waterfall environment.

I think mixins help this to an extent; you can easily refactor if inheritance results in less code and the hierarchy works out nicely. I use Mixins as my primary means to share logic, but I don’t rule out inheritance at all.

    Giancarlo Buomprisco

    Written by

    UI Consultant, VP @barclays & Blogger. I write about JS, TS, Rx, Angular & all things Front End 🇬🇧 🇮🇹 — write me at gc@frontend.consulting!

    More From Medium

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade