Closed comerc closed 8 years ago
What's the question?
I want to try viewmodel, but I'm afraid, that wrong choice with overhead code. AutoForm makes life easier at the prototype stage, but has restrictions of customization. I'm looking for the best tools for the replacement of AutoForm.
The thing is that this isn't a replacement for Autoforms. ViewModel doesn't generate any code for you. It just simplifies the way you develop your UI. It's a different way of doing things; one that requires less plumbing. I've never used Autoforms, mainly because I've never felt the need, but I've heard people say they've stopped using Autoforms after using ViewModel for a while.
In summary, if you're looking for some kind of code generator then this isn't it.
I know that ViewModel doesn't generate any code for me. I'm going to go the other way. :)
Then try it. Pick any template of your application and rewrite it using ViewModel. You'll see that your code will be cut in half. Let me know if you have questions when converting the code. On Apr 13, 2016 5:04 PM, "comerc" notifications@github.com wrote:
I know that ViewModel doesn't generate any code for me. I'm going to go the other way. :)
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ManuelDeLeon/viewmodel/issues/230#issuecomment-209684730
The question is whether the tools needed to facilitate the development, or they interfere with the development. For example. I was very attracted to this package in its simplicity, but this question adds complexity to my code. But you have solution to this issue.
I just would like to know your opinion on the remarks cited at the beginning of this topic.
Let's see, where to start...
The objections on that thread are made by people who misunderstand the role of ViewModel. They seem to think it's an MVC framework for Meteor. One is complaining about models (M in MVC, which has almost nothing to do with ViewModel ). The other one is railing against MVC (which ViewModel is not).
As for events, you're certainly free to use them but you'll find that it's cleaner and simpler to declare the events in the markup. On Apr 13, 2016 5:42 PM, "comerc" notifications@github.com wrote:
I'm sorry, I found a great example https://github.com/ManuelDeLeon/phonebook. This will help me.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ManuelDeLeon/viewmodel/issues/230#issuecomment-209692111
Btw, if it means anything, I've never heard of anyone doing a project with ViewModel and then going back to Blaze. The only people who stopped using it are the ones who needed SSR and switched to React. On Apr 13, 2016 6:11 PM, "Manuel De Leon" manueldeleon@gmail.com wrote:
Let's see, where to start...
The objections on that thread are made by people who misunderstand the role of ViewModel. They seem to think it's an MVC framework for Meteor. One is complaining about models (M in MVC, which has almost nothing to do with ViewModel ). The other one is railing against MVC (which ViewModel is not).
As for events, you're certainly free to use them but you'll find that it's cleaner and simpler to declare the events in the markup. On Apr 13, 2016 5:42 PM, "comerc" notifications@github.com wrote:
I'm sorry, I found a great example https://github.com/ManuelDeLeon/phonebook. This will help me.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ManuelDeLeon/viewmodel/issues/230#issuecomment-209692111
As for events, you're certainly free to use them but you'll find that it's cleaner and simpler to declare the events in the markup.
But I still may use true 'this' of ViewModel instead of Template.instance().viewmodel.myValue()
in my ViewModel methods!
https://meteor.hackpad.com/Proposal-for-Blaze-2-bRAxvfDzCVv#:h=Viewmodel
My actual favorites: https://github.com/themeteorites/blaze-magic-events https://github.com/peerlibrary/meteor-reactive-field + 'this' inside helpers & events