Hacker News new | ask | show | jobs
by ChrisMarshallNY 1551 days ago
> The argument usually follows that state is evil, hence object-orientation must be avoided.

I've found that it's really, really difficult to design good UI, without state. The "solution" that many UI systems use, is leaving the state in the view, but that often results in a pretty degraded user experience. Sometimes, the state needs to live in the model, as it may interact with a whole gaggle of views, or apply sets of state.

So the "solution" there, is to tie the views together, or save the state in little "statelets," connected to views; resulting in an ... interesting ... design.

I've come to learn that "hard and fast" rules are a mistake.

It's been my experience, that I often need to approach a solution in a hybrid manner, and really appreciate new techniques and technologies.

But sometimes, we need to stick with the classics.