These are chat archives for canjs/canjs

Feb 2017
Gira Minus
Feb 04 2017 07:44
@chasenlehara Thanks. I will definitely send it to the core team before publishing it.
Gira Minus
Feb 04 2017 08:06
As far as the docs go, the simple answer that I can provide, is that they are written in a way that assumes that you know knowledge of how an MVC/MVVM works and how CanJs fits into that pattern. The documentation does not explain the patterns, and how you should combine each CanJs package to achieve a certain goal. A tutorial is needed that simply ties in the M, the V, and the C, with CanJS . Someone new coming into CanJs as their first framework, has no real knowledge of how to use a DefineMap inside a Component and link DefineMap with a model, and that all three will generate a view using stache. Also simple things like how a route can manipulate a view through the model while using a Component. How components should be children of one another and how pass data to one another. I feel like the big simple picture is missed out, because the CanJs developers have most of this as instinct. It is easy for them to look at the Define or Control or any piece of the documentation and know how it fits into the whole schema. A simple fix may be that the documentation should show a small scale examples of combinations of packages to show interaction and explain certain patterns. This little JsBin,js,output can explain how a Component uses a DefineMap as the viewModel, and how that DefineMap listens to setters and executes a function on change/set as well as ties in the can-stache-converters to update the DefineMap from the view.
Just my opinion I guess as someone that is new to front end MVC
Frank Lemanschik
Feb 04 2017 09:02
@gKreator i think i am preparing at present a nice tutorial that addresses this a bit
I am at present struggling with replacing can-stache with something like knockoutJS wich is MVVM also and this should then point out where CanJS fits in i think a main problem for CanJS is that its only presented using the stache bindings and its special binding syntax and that
i think a presentation of can-view model + nativ html inserted via nativ javascript binding via knockoutjs
shows a realy good followable view of the whole thing and it also shows the flexibility