I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from
Michael Haufe. But I feel like I'm not really making use of the
Controller part.
What does the Controller really do in an MVC design? Should I
stuff all my button handlers (and their helper functions) in there?
In the current implementation, the Controller is just 4 functions
to access an associated Model and View.
class Controller {
getModel(){ return this._model; }
setModel( model ){ this._model = model; }
getView(){ return this._view; }
setView( view ){ this._view = view; }
}
Is there more stuff it could do? Or more stuff it ought to do according
to other interpretations of MVC?
On Thursday, December 2, 2021 at 8:24:09 PM UTC-6, luserdroog wrote:
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from
Michael Haufe. But I feel like I'm not really making use of the
Controller part.
What does the Controller really do in an MVC design? Should I
stuff all my button handlers (and their helper functions) in there?
In the current implementation, the Controller is just 4 functions
to access an associated Model and View.
class Controller {
getModel(){ return this._model; }
setModel( model ){ this._model = model; }
getView(){ return this._view; }
setView( view ){ this._view = view; }
}
Is there more stuff it could do? Or more stuff it ought to do according
to other interpretations of MVC?
I stumbled upon this concise answer.
https://stackoverflow.com/a/8497887/733077
which suggests that yes, the controller should encapsulate all the
"actions" and do manipulations on the model. The way I'm doing it
now, the model manipulates itsel >
Le 03/12/2021 à 07:34, luserdroog a écrit :
On Thursday, December 2, 2021 at 8:24:09 PM UTC-6, luserdroog wrote:
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from
Michael Haufe. But I feel like I'm not really making use of the
Controller part.
What does the Controller really do in an MVC design? Should I
stuff all my button handlers (and their helper functions) in there?
In the current implementation, the Controller is just 4 functions
to access an associated Model and View.
class Controller {
getModel(){ return this._model; }
setModel( model ){ this._model = model; }
getView(){ return this._view; }
setView( view ){ this._view = view; }
}
Is there more stuff it could do? Or more stuff it ought to do according >> to other interpretations of MVC?
I stumbled upon this concise answer. https://stackoverflow.com/a/8497887/733077In my understanding,
which suggests that yes, the controller should encapsulate all the "actions" and do manipulations on the model. The way I'm doing it
now, the model manipulates itsel >
Model is passive. It just ensure data store coherency. It handle
semantics of the application, invariants, ...
Views display Model in the UI. Views listen to Model to ensure
accuracy of display. Views also display widgets that let the user
interact (buttons, text fields).
Controllers listen Views for User interactions and translate its as
actions on the model. Theese interactions update the Model that notify
Views that update to display the new state.
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from
Michael Haufe. But I feel like I'm not really making use of the
Controller part.
[...]
On Thursday, December 2, 2021 at 8:24:09 PM UTC-6, luser...@gmail.com wrote:
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from
Michael Haufe. But I feel like I'm not really making use of the
Controller part.
[...]
I threw together a quick MVC example this morning. Imperfect and a bit verbose but conceptually
you might find it useful:
<https://codepen.io/mlhaufe/pen/eYGpBzE?editors=0011>
On Saturday, 4 December 2021 at 22:52:53 UTC+1, Michael Haufe (TNO) wrote:
On Thursday, December 2, 2021 at 8:24:09 PM UTC-6, luser...@gmail.com wrote:
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from
Michael Haufe. But I feel like I'm not really making use of the Controller part.
[...]
I threw together a quick MVC example this morning. Imperfect and a bit verbose but conceptually
you might find it useful:
<https://codepen.io/mlhaufe/pen/eYGpBzE?editors=0011>That is not MVC, indeed that is just nonsensical.
When Dunning-Kruger is a compliment...
*Plonk*
Julio
On Sunday, December 5, 2021 at 4:52:39 AM UTC-6, ju...@diegidio.name wrote:
On Saturday, 4 December 2021 at 22:52:53 UTC+1, Michael Haufe (TNO) wrote:
On Thursday, December 2, 2021 at 8:24:09 PM UTC-6, luser...@gmail.com wrote:
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from Michael Haufe. But I feel like I'm not really making use of the Controller part.
[...]
I threw together a quick MVC example this morning. Imperfect and a bit verbose but conceptually
you might find it useful:
<https://codepen.io/mlhaufe/pen/eYGpBzE?editors=0011>That is not MVC, indeed that is just nonsensical.
When Dunning-Kruger is a compliment...
*Plonk*
Your betaness is showing. You're never one to write code just drive-by noise from a lesser mortal. Feel free to actually write some. I even started you off with an example...
Your betaness is showing. […]
On Thursday, December 2, 2021 at 8:24:09 PM UTC-6, luser...@gmail.com wrote:
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from
Michael Haufe. But I feel like I'm not really making use of the
Controller part.
[...]
I threw together a quick MVC example this morning. Imperfect and a bit verbose but conceptually
you might find it useful:
<https://codepen.io/mlhaufe/pen/eYGpBzE?editors=0011>
Michael Haufe (TNO) wrote:
Your betaness is showing. […]
:-D
--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
On Saturday, December 4, 2021 at 3:52:53 PM UTC-6, Michael Haufe (TNO) wrote:
On Thursday, December 2, 2021 at 8:24:09 PM UTC-6, luser...@gmail.com wrote:
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from
Michael Haufe. But I feel like I'm not really making use of the Controller part.
[...]
I threw together a quick MVC example this morning. Imperfect and a bit verbose but conceptually
you might find it useful:
<https://codepen.io/mlhaufe/pen/eYGpBzE?editors=0011>Very cool. Thanks. It seems that my problem is not applying MVC per se, but applying
Object Orientation more generally. But my big take-away is that the app itself *is* the
controller, or more perspicuously an instance of a subclass of a controller.
That both answers my question and sheds light on my X/Y problem to boot.
Nice one. Thanks again.
On Monday, 6 December 2021 at 02:09:26 UTC+1, luser...@gmail.com wrote:https://jtmidi.000webhostapp.com/
On Saturday, December 4, 2021 at 3:52:53 PM UTC-6, Michael Haufe (TNO) wrote:
On Thursday, December 2, 2021 at 8:24:09 PM UTC-6, luser...@gmail.com wrote:
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from Michael Haufe. But I feel like I'm not really making use of the Controller part.
[...]
I threw together a quick MVC example this morning. Imperfect and a bit verbose but conceptually
you might find it useful:
<https://codepen.io/mlhaufe/pen/eYGpBzE?editors=0011>Very cool. Thanks. It seems that my problem is not applying MVC per se, but applying
Object Orientation more generally. But my big take-away is that the app itself *is* the
controller, or more perspicuously an instance of a subclass of a controller.
That both answers my question and sheds light on my X/Y problem to boot. Nice one. Thanks again.It's the usual piece of crap code and compendium of all one should NOT do.
You spamming pieces of shit. ESAD, both of you!
*Plonk*
Julio
On Monday, 6 December 2021 at 02:09:26 UTC+1, luser...@gmail.com wrote:Your just so anal Julio i think the programmer paradigm have eaten you. You can do things not by the book and still get results.
On Saturday, December 4, 2021 at 3:52:53 PM UTC-6, Michael Haufe (TNO) wrote:
On Thursday, December 2, 2021 at 8:24:09 PM UTC-6, luser...@gmail.com wrote:
I'm trying to make a simple web app that displays a piano-roll
style grid that you can click in to activate or deactivate notes.
And I'm building it off of the MVC classes that I borrowed from Michael Haufe. But I feel like I'm not really making use of the Controller part.
[...]
I threw together a quick MVC example this morning. Imperfect and a bit verbose but conceptually
you might find it useful:
<https://codepen.io/mlhaufe/pen/eYGpBzE?editors=0011>Very cool. Thanks. It seems that my problem is not applying MVC per se, but applying
Object Orientation more generally. But my big take-away is that the app itself *is* the
controller, or more perspicuously an instance of a subclass of a controller.
That both answers my question and sheds light on my X/Y problem to boot. Nice one. Thanks again.It's the usual piece of crap code and compendium of all one should NOT do.
You spamming pieces of shit. ESAD, both of you!
*Plonk*
Julio
Your just so anal Julio i think the programmer paradigm have eaten you.
You can do things not by the book and still get results.
On Monday, 6 December 2021 at 11:04:31 UTC+1, jonas.t...@gmail.com wrote:Have you ever noticed Julio its never the anal obsessed disciplined that come up with the good ideas, they are just caretakers of ideas, they love to drivel in documentation.
Your just so anal Julio i think the programmer paradigm have eaten you.You asshole(s) have just got no clue what *programming* even means.
So let me give you a kick-start: there is no such thing as a "programming paradigm", but there is such essential thing as a *programming discipline*. An engineering discipline, to be specific.
You can do things not by the book and still get results.Meanwhile an entire and truly critical industry gone down the drain...
You bloody morons.
(HTH.)
Julio
My "betaness", you piece of shit?? Your code *is* fucking pathetic,
but Dunning-Kruger remains a compliment: I *do* have posted so many
code already, you retarded piece of lying shit, you and co.,
including a didactic example of MVC + knockout + timers + what-not,
and *you* were not even able to understand what was what...!! You
yet another planetary fucking *fraud*.
*Plonk*
On Monday, 6 December 2021 at 11:04:31 UTC+1, jonas.t...@gmail.com wrote:
Your just so anal Julio i think the programmer paradigm have eaten you.
You asshole(s) have just got no clue what *programming* even means.
So let me give you a kick-start: there is no such thing as a "programming paradigm", but there is such essential thing as a *programming discipline*.
It's the usual piece of crap code and compendium of all one should NOT do.
You spamming pieces of shit. ESAD, both of you!
*Plonk*
Julio Di Egidio:
On Monday, 6 December 2021 at 11:04:31 UTC+1, jonas.t...@gmail.com wrote:
Your just so anal Julio i think the programmer paradigm have eaten you.
You asshole(s) have just got no clue what *programming* even means.And you have no clue how to communicate without trying to insult people
all the time. Do you have a tourette syndrome?
So let me give you a kick-start: there is no such thing as a "programming paradigm", but there is such essential thing as a *programming discipline*.There is a programming paradigm, maybe just not in your world:
<http://people.cs.aau.dk/~normark/prog3-03/html/notes/paradigms_themes-paradigm-overview-section.html>
<https://books.google.de/books?id=_bmyEnUnfTsC&redir_esc=y>
<https://www.info.ucl.ac.be/~pvr/VanRoyChapter.pdf>
Julio Di Egidio:
Just fuck off you and this pathetic rotten brigade. (EOD.)
*Plonk*
As usual.
Just fuck off you and this pathetic rotten brigade. (EOD.)
*Plonk*
As I have *repeatedly* pointed out around here, the whole arena has been hijacked and flooded with just FRAUDULENT BULLSHIT since the mid '90s.<snip>
On 08/12/2021 07:53, Julio Di Egidio wrote:
<snip>
As I have *repeatedly* pointed out around here, the whole arena has<snip>
been hijacked and flooded with just FRAUDULENT BULLSHIT since the mid
'90s.
And you have *repeatedly* failed to say it clearly enough for us to work
out why you say that.
Hint : Curses aren't clear enough.
On 08/12/2021 20:54, John Harris wrote:With that amount of anger., perhaps coding is an occupation that you
On 08/12/2021 07:53, Julio Di Egidio wrote:
<snip>
As I have *repeatedly* pointed out around here, the whole arena has<snip>
been hijacked and flooded with just FRAUDULENT BULLSHIT since the mid
'90s.
And you have *repeatedly* failed to say it clearly enough for us to
work out why you say that.
Hint : Curses aren't clear enough.
Learn to use question marks, you bunch of pieces of lying shit.
Indeed, be reassure, you stupid lying nazi retarded cunts: I am indeed
gonna call everybody by their fucking real name from this point on with
no discounts made, until either you get a grip or you get at least as
livid as the fucking poison you keep spilling makes everything that
breathes.
You fucking *retarded cunts*, ESAD.
*Plonk*
Julio
On 08/12/2021 21:24, Julio Di Egidio wrote:
On 08/12/2021 20:54, John Harris wrote:
On 08/12/2021 07:53, Julio Di Egidio wrote:
<snip>
As I have *repeatedly* pointed out around here, the whole arena has<snip>
been hijacked and flooded with just FRAUDULENT BULLSHIT since the mid
'90s.
And you have *repeatedly* failed to say it clearly enough for us to
work out why you say that.
Hint : Curses aren't clear enough.
Learn to use question marks, you bunch of pieces of lying shit.
Indeed, be reassure, you stupid lying nazi retarded cunts: I am indeed gonna call everybody by their fucking real name from this point on with
no discounts made, until either you get a grip or you get at least as
livid as the fucking poison you keep spilling makes everything that breathes.
You fucking *retarded cunts*, ESAD.
*Plonk*
JulioWith that amount of anger., perhaps coding is an occupation that you
should eschew in favour of - say - needlepoint, or flower arranging?
--LoL
Religion is regarded by the common people as true, by the wise as
foolish, and by the rulers as useful.
(Seneca the Younger, 65 AD)
On 09/12/2021 09:33, The Natural Philosopher wrote:
On 08/12/2021 21:24, Julio Di Egidio wrote:
<snip>
JulioWith that amount of anger., perhaps coding is an occupation that you
should eschew in favour of - say - needlepoint, or flower arranging?
It's a characteristic of Julio. After talking sensibly for a day or two
he switches into cursing mode with no information content at all. It's
rather sad.
John
On 08/12/2021 21:24, Julio Di Egidio wrote:
JulioWith that amount of anger., perhaps coding is an occupation that you
should eschew in favour of - say - needlepoint, or flower arranging?
On Wednesday, 8 December 2021 at 09:27:01 UTC+1, Arno Welzel wrote:
Julio Di Egidio:
Just fuck off you and this pathetic rotten brigade. (EOD.)
*Plonk*
As usual.
As usual you just cannot even read.
How fucking *pathetic*.
*Plonk*
Are you sure that you are human and not a bad copy of ELIZA?
On 2021-12-10, Arno Welzel <use...@arnowelzel.de> wrote:
[Schnipp]
Are you sure that you are human and not a bad copy of ELIZA?
ELIZA was fun.
Julio Di Egidio:
On Wednesday, 8 December 2021 at 09:27:01 UTC+1, Arno Welzel wrote:
Julio Di Egidio:
Just fuck off you and this pathetic rotten brigade. (EOD.)
*Plonk*
As usual.
As usual you just cannot even read.
How fucking *pathetic*.
*Plonk*
As usual. You say "*Plonk*" but you don't even know what that means and continue to read all I write.
On 2021-12-10, Arno Welzel <use...@arnowelzel.de> wrote:
Julio Di Egidio:
On Wednesday, 8 December 2021 at 09:27:01 UTC+1, Arno Welzel wrote:
Julio Di Egidio:
Just fuck off you and this pathetic rotten brigade. (EOD.)
*Plonk*
As usual.
As usual you just cannot even read.
How fucking *pathetic*.
*Plonk*
As usual. You say "*Plonk*" but you don't even know what that means and continue to read all I write.Sorry, you're misunderstanding him. When Plonk Julio says "Plonk",
he is not saying *he* is plonking *you*, he is making the very
sensible and worthwhile suggestion that *you* plonk *him*.
It's excellent advice.
On 2021-12-10, Arno Welzel <usenet@arnowelzel.de> wrote:
Julio Di Egidio:
*Plonk*
As usual. You say "*Plonk*" but you don't even know what that means and
continue to read all I write.
Sorry, you're misunderstanding him. When Plonk Julio says "Plonk",
he is not saying *he* is plonking *you*, he is making the very
sensible and worthwhile suggestion that *you* plonk *him*.
It's excellent advice.
Jon Ribbens wrote:
On 2021-12-10, Arno Welzel <usenet@arnowelzel.de> wrote:
Julio Di Egidio:
*Plonk*
As usual. You say "*Plonk*" but you don't even know what that means and
continue to read all I write.
Sorry, you're misunderstanding him. When Plonk Julio says "Plonk",
he is not saying *he* is plonking *you*, he is making the very
sensible and worthwhile suggestion that *you* plonk *him*.
It's excellent advice.
YMMD :-D
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 469 |
Nodes: | 16 (3 / 13) |
Uptime: | 49:11:57 |
Calls: | 9,451 |
Calls today: | 8 |
Files: | 13,596 |
Messages: | 6,112,372 |
Posted today: | 2 |