📜 ⬆️ ⬇️

Joosy: An Alternative Approach to Browser Framework

In short


We have developed a new JS framework, not like the existing ones. He uses a new approach. We call him Joosy.

Official site
Beginner's Guide
On githaba



More detailed description


Nowadays, even the lazy and their grandparents make their own JS MVC frameworks. The reason for this is simple: they are really needed. On the other hand, the problem is that they all copy Backbone without exception. Of course, there are Knockout and Ember , who went the other way, but they are still not enough to satisfy all the needs of a sophisticated audience. Other solutions are other problems. Some don't like Handlebars, others don't like the generic API, it's just a matter of taste. In the end, the breadth of the range has not harmed anyone yet.
')
Six months ago, during the implementation of a couple of new projects, we decided to conduct a small experiment. We have taken a completely new approach to this problem: to present the JS framework as an extension to the server side. It should not be abstracted from it, but rather be as gentle as possible with it.

To translate this into reality, we had to implement all the usual Rails developers things and extend them with features that Rails lacked. Better code organization, new conventions for the environment in which there is a state (stateful, as opposed to a RESTful stateless server-side), and much more. We made form-builder, real helpers, and even HAML , working right in your browser.

Now that some time has passed, and some of those projects are already in combat, we are ready to present this experiment as a mature framework with a bunch of features, which we called Joosy. It is based on the terms "kind" of MVC. Pages, Layouts, Widgets, Helpers and templating. It is important to note that it is completely based on CoffeeScript capabilities. And to better experience this beautiful language, Joosy includes the excellent Sugar.js library. It creates the feeling of ActiveSupport and greatly expands the poor standard JS library, adding sugar to your work.

Joosy has everything you are used to in other frameworks, but with a slightly different sauce. It has routing, a kind of “models” with an Identity Map , clear structuring and much more, like this: the ActiveSupport mentioned above, compatible with ActiveResource (allowing you to concentrate on the fact that in the browser models are primarily a connection to the server, and not a business -logics), code autogenerators, even preloading js-files into the application.

Practice shows: Joosy is very easy to master if you have had experience with Rails. He also copes well with what others say: it saves you time. So, regardless of whether it seemed necessary to you or not, we ask you to read the manual. We have something new that we can offer you, and it is not bad. And then you can even find a use for it :)

PS: feel free to ask questions in the comments, as well as in the joosy tag on StackOverflow .

Source: https://habr.com/ru/post/145210/


All Articles