Live data from Hacker News

MVC Isn’t MVC

collindonnell.com

161–165 of 165 posts

Re: MVC Isn’t MVC

#161
post #128

Earlier quoted context omitted.

> it originally referred to the “mental model” of the user. Do you have a source for that? I agree that that’s a useful way to think about MVC (somewhere downthread someone wrote that the model should be like a headless version of the application, which is similar), but I’m curious about the original expressions of that idea.

Source: https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&d... The source is Trygve Reenskaug, the originator of the idea.

Since the link won't open for some, here's the relevant bit (the first two lines of the abstract of the paper linked to):

"MVC was conceived in 1978 as the design solution to a particular problem. The top level goal was to support the user's mental model of the relevant information space and to enable the user to inspect and edit this information."

Re: MVC Isn’t MVC

#162
post #9

Not sure why author got the impression apple’s models had to be « dumb data containers ». Actually, having dumb models is the surest way to completely screw up your controllers design, since you’re now left with no other places to write your business logic in. This leads to either weird trees of controller inheriting each other for the sake of reusing some data processing piece, or singletons everywhere which makes t…

> apple’s models had to be « dumb data containers ». They don't "have" to be, but that's very much the result of what Apple has been advocating, what the community tells itself and what happens. > Actually, having dumb models is the surest way to completely screw up your controllers design, since you’re now left with no other places to write your business logic in. Exactly. And the coordination logic. Alas, that is e…

I think, I’ve already agreed on this with you, in one of the previous threads.

But I’ll gladly upvote you everytime!

Re: MVC Isn’t MVC

#163
post #137

Earlier quoted context omitted.

Cool. And great to see I'm not alone. I've written about mine here: https://blog.metaobject.com/2022/06/blackbird-simple-referen... Maybe we should form APSMA, the Association for the Promotion of Sane Mobile Architecture ?

Actually let me share a story : I usually never ever advise my customers to rewrite their app from scratch. And yet here i was, doing it for the 4th time in a row for 4 different customers, in just 2 years, simply because the codebase were a total mess each time. So i thought "well, there's got to be a problem with iOS developers here in Paris". And so i decided to give a talk to the largest iOS dev group in Paris to…

my story is almost identical to yours + I was backend engineer many many years ago :)

would you mind sharing your presentation?

Re: MVC Isn’t MVC

#165
post #24

Earlier quoted context omitted.

I wish I was smart enough to understand what this really means, I often feel very much like a code monkey when these discussions come up.

In the old days there was just MVC. Then Microsoft announced successor to Windows Forms... a new technology called WPF. WPF uses MVVM which automated more of the work that a developer has to do: it automatically updates the UI when data objects change, and it automatically updates data objects when the user inputs something through the UI. Sounds cool, right? The problem is that in large projects it becomes hard to u…

... WPF has built-in one-way databinding. You choose whether every control is one-way or two-way...
Post reply on HN