Hi all, I could provide a experience for organize javascript developing , a really complicated and big one.
I am one of developers for a Java Web Ajax Framework , ZK. ( http://www.zkoss.org/ ) We use javascript to write a widget ( it's a javascript object , a wrapper for multiple html DOM object) for rendering html and binding event in widget , and we have a inherited widget class hierarchy. I think we do really try to organize it like MVC in our way. If you are interesting , you could get more detail with how we build a component , please take a look with our document. http://books.zkoss.org/wiki/ZK_Component_Development_Essentials (That's really need to take care a lot of details , we could discuss more about it if you are interesting in.) (I guess you guys might interesting for SEO issue since we use js to render html , we use other workaround to handle it in server side.) You may wonder why we need to build a widget and do such complicated job. Because we are trying to access the javascript widget by organized AJAX request , and make it more easier to control in java code. So we need a framework level JS lib in our client, and we spend more then two years to work on it. What's the benefit for it ? We could made it in good performance , reusable ,debuggable, good cross-browser-support , manageable (sure, it's still a gap for other JSer to learn it) minimize the effort for traffic ......etc ( You could take a look with our product demo http://zssdemo.zkoss.org/ ) For my personal opinion , it's not worth to build a MVC component if you only use it once , you have to build a lot of stuff before you really get a MVC coding environment. But you are developing a tool ,lib or plug-in , it might be worth to do that. It's kind of developing way , as a JS developer , I DO NOT like to make things to complicated actully, but it still depends what's the problem you face. For us , it's a must-have to build a such complicated stuff for the requirement of our framework , and it does really create a lot of benefit for building web application in Java world. 2011/3/26 cihat altuntas <[email protected]> > What do you tkink about developing MVC style client-side javascript code? > Or sometimes Is Quick and dirty hacking Javascript code enough? If you have > any experince using MVC style javascript code could you tell advantages or > disadvantages over javascript hacking ? > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
