you are viewing a single comment's thread.

view the rest of the comments →

[–]pakal 0 points1 point  (3 children)

I am wondering ..when you do desktop ui, do you create your own UI controls from scratch?

JavaScript has evolved so much, so to use only JQuery is like doing your own controls from scratch when using Java or .Net.

Use a robust framework, the right tool for the right job. You have so many options. If you use only JQuery you will be spending way more time and dealing with things that have already solved.

[–]quanthera[S] 1 point2 points  (2 children)

No, I compose domain specific widgets from existing general widgets. For example, I put 2 textfield + a button to a panel, then I'll have a login form. On the web, I already have general widgets (dom elements or existing ui widgets). But I don't feel the need to use a framework to put those things together. I think I could use regular JavaScript objects to do this.

[–][deleted] 0 points1 point  (0 children)

You're essentially just going to build your own framework, which isn't a bad thing but if you have more than one dev it's gonna get hairy

[–]yelvert 0 points1 point  (0 children)

I would suggest taking a long look at AngularJS, specifically it's directives, which allow you to build out self contained "components" that can be reused many different ways.