It's about such a plan of things. habrahabr.ru

As an example, I give this particular article because it is one of the most sane that I managed to dig.

I will be very grateful to everyone who will advise something from their own experience. Really faced with the problem of developing a complex user interface. Interested in a way using jQuery since some libraries have already been approved, and without turning. I ask you not to give advice to the plan nafig you need it, garbage and so on. It turns out really porridge which is very difficult to fight. There is already an experience of a simpler project, windows, dragging, etc. Everything was done in the forehead, the handlers were hung up on the ID, or children. It works, but there is no desire to climb there at all. And in places I don’t understand how it works. In order not to put on this rake I started to climb the source code Jquery UI and kendo ui. Well, they are great, what can I say. There is no such thing as IDE, and they move from the selected element to the bottom, etc. Thus manipulating him. This is all cool and clever. But when you start to connect all this, and try to make it all interact with each other, the garbage is still that.

For earlier thanks for any advice in this regard.

  • I didn’t quite understand the question as a whole, and I am 100% agreeing with these words about the article given: your abstractions only increase the complexity of the system, instead of reducing it. javascript that is parsed by javascript to form javascript that forms html with inline javascript its own primitive query language with javascript inserts for which even the syntax highlighting is nowhere to be found ... - Zowie
  • one
    From all the reading in the article, the last comment about require.js ^ was actually less useful. In general, I personally were horrified by those terrible dances with a tambourine described in the article. As always, the religious holivar is in the comments in the comments, in general, everything is as usual :) Because I know and truly believe that "all ingenious is simple," I firmly believe - the idea described there is from the evil one :) - Zowie
  • The question should have been noted - danger holywar ^. ^ - Zowie
  • Guys, this is Daliko not holivar. If elements appear and disappear on the page, and each has its own goals, then it is very difficult to avoid difficulties. Kaeladky everywhere. It is especially problematic to track all handlers that are hung and not deleted. - Arni
  • In order for something to be scalable, you need to write appropriately IMHO: jQuery (by itself, without plug-ins) is a bad tool for this purpose. Abstraction - almost 0 ... The first thing to do is to refuse to work with the DOM directly, and it will be much easier right away - timka_s

2 answers 2

I would advise to use something like backbone.js I write on it myself - the framework structures the code with its op.

    knockoutjs as an alternative to backbone.js