Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #37480

Re: A very small MVC prototype

Newsgroups comp.lang.javascript
Date 2019-09-30 03:21 -0700
References <3c76a24e-3d87-49f1-acec-555593733973@googlegroups.com> <d77256a5-7edc-4fc5-8231-dcbeb9bce755@googlegroups.com> <2bf28d0b-1df2-4909-9885-3380712cb100@googlegroups.com> <c59d2461-329f-4193-8095-d2b2973d62ce@googlegroups.com> <3af075d1-3eae-4e83-b902-586798a99b78@googlegroups.com>
Message-ID <f59673d9-a3d2-4e01-b3fc-bff23089ed4e@googlegroups.com> (permalink)
Subject Re: A very small MVC prototype
From Julio Di Egidio <julio@diegidio.name>

Show all headers | View raw


On Saturday, 28 September 2019 17:40:04 UTC+2, luserdroog  wrote:
> On Friday, September 27, 2019 at 7:04:56 PM UTC-5, Julio Di Egidio wrote:
> > On Saturday, 28 September 2019 00:03:25 UTC+2, luserdroog  wrote:
<snip>
> > I think everything in your example is badly located, but even more I wander why
> > you have called it "MVC prototype" at all, there is just no trace of a model,
> > view and controller anywhere... :)
> 
> Sigh. That's another bad habit of mine. I wrote a post to comp.lang.c
> in the past year called "Simulating Monads, Lambdas, and Closures".
> And it didn't really exhibit any of those things in any recognizable way.
> But I hope I continue to be *brave in the attempt.*

And I hope for you that it's an attempt at improving yourself, otherwise
it's just yet another exercise in arrogance.

Indeed, as the typical average computer scientist, you have not even noticed
that this is just not that class: so take note, Computer Science is an applied
mathematics, SE is about software production and it's an engineering.  Your
code is a *liability* in production: to begin with, unreadable means buggy
and unmaintainable.

> The "model" part of MVC seems pretty easy to implement, with plain old
> data structures.

And I told you it's not just about the code partitioning, it's also and even
more importantly about the specific flow of messages: who *knows* about whom.

Indeed, for a starter, one thing may be worth appreciating: these patterns are
all descendants of a more fundamental one, inversion of control, whose essential
purpose is that of breaking circular dependencies...

HTH,

Julio

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

A very small MVC prototype luserdroog <luser.droog@gmail.com> - 2019-09-26 19:01 -0700
  Re: A very small MVC prototype "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-09-26 19:54 -0700
  Re: A very small MVC prototype Julio Di Egidio <julio@diegidio.name> - 2019-09-27 07:11 -0700
    Re: A very small MVC prototype luserdroog <luser.droog@gmail.com> - 2019-09-27 15:03 -0700
      Re: A very small MVC prototype Julio Di Egidio <julio@diegidio.name> - 2019-09-27 17:04 -0700
        Re: A very small MVC prototype luserdroog <luser.droog@gmail.com> - 2019-09-28 08:39 -0700
          Re: A very small MVC prototype Julio Di Egidio <julio@diegidio.name> - 2019-09-30 03:21 -0700

csiph-web