Answer the question
In order to leave comments, you need to log in
Front-end for a snake tamer?
Hello, there is one REST API written in Flask. There is also one back-end developer who wants to learn how to write front-ends in JS, I am currently finishing reading Flanagan. Some time ago I started reading about different frameworks and a number of questions arose:
Answer the question
In order to leave comments, you need to log in
1. Ideal or not, but backbone is sharpened for REST. However, this is easy to change.
2. Can't say.
3. When speed and search engines are needed, then we render on the server.
4. twig.js , swig are just two of the jinja-like ones, there are more. Do not forget about other popular solutions - jade, doT, ejs, handlebars, etc. The speed and number of features varies. The most "featured" of those that work on the client is Jade.
5. Will not knowing the language interfere with you when you try to write things that are quite complex in architecture? See for yourself.
With REST, in my opinion, any adequate framework will work well.
I'm in favor of creating a maximum page on the server, unless a thick client is being written. There are the following reasons for this:
- page rendering is far from the most difficult operation, few people rest against it;
- easier testing - launched a view - got ready-made html, which can be run with a validator, and check for the presence of the necessary lines in it;
- easier debugging - no need to additionally run js-code (in the browser or somehow separately);
- It will be easier to do SEO.
> Is it worth it to take on the whole thing right away, or first write in pure JS + a little jQuery magic for academic purposes?
And what is the end goal. If you rivet sites of "medium" complexity, then jQuery is more than enough, and the experience gained will later allow you to make a more informed choice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question