Hacker News new | ask | show | jobs
by xupybd 1065 days ago
Have you tried the model view update pattern?

If you haven't I recommend having a look. If found it amazing for maintainability.

You have to be carful to structure everything well. If not you blow up the number of messages in one file. But once you get past that it's really amazing.

1 comments

Yeah I have, personally I like it but the issue I have found was that I am not the only one who works on projects.

> You have to be carful to structure everything well.

This essentially sums it up. I can be careful, but it's impractical to review code to ensure it's also structured correctly when working on a team with lots of contributors with varying experience levels.

In my experience, It's also more difficult to teach MVU than it is to teach templating with automatic reactivity.

Sadly, I have to agree with everything that you've written there.

For simple use cases templating is much better as well. It's only in complex state management that I find MVU is worth it.