Answer the question
In order to leave comments, you need to log in
How to build a web application?
How to build frontend web applications and with what tools?
The application is similar to medium, yandex.zen or something similar. At the moment the whole front is written in xml/xslt + handlebars + jquery, some code is 8 years old.
I propose to rewrite everything on Nuxt + Vue on my own, I think it will turn out quickly + I like that even webpack does not need to be assembled.
The customer proposes to rewrite the front together, like this:
- it is possible to abandon jquery, looking for an alternative for selectors.
- it is possible to refuse xslt.
- write a wrapper over handlebars (I don’t know why yet, probably my own html generation on the server).
- explains all this by saying that he does not want to depend on frameworks, which is fast and convenient - does not mean "good". Although the result is a large hodgepodge of libraries + a lot of time + would save nerve cells.
Maybe he is right, I don’t know who believes that this is so - please explain or tell me how to convince him?
Answer the question
In order to leave comments, you need to log in
- possibly drop jquery, looking for an alternative for selectorsis actually a very bad approach in general. Because a change in layout will always entail a change in these selectors. In SPA, this is solved very simply and no selectors in the usual form will be needed, only at certain points. Vue will provide excellent abstractions for working with the DOM for this, much more convenient than the old fashioned way.
maybe drop xslt- this needs to be done in the direction of at least the familiar and simple, as well as by me and probably by the majority of my favorite REST API.
write a wrapper over handlebars- Vue is the same handlebars, but on steroids. In fact, your own wrapper. Vue templates are inspired by the work of handlebars.
explains it all by not wanting to depend on frameworks- this is a very stupid thesis. Everything that is not written is written using ready-made solutions. PHP, like js, is written in Xia, so what?
everything on Nuxt + Vue, I think it will turn out quickly- don't jump too far. And who will deploy all this? And who will set up vps? He??? And if you have SSR, who will write the nginx settings for the node to work? What about request proxying? Don't be fooled by beautiful words about SPA if you don't know how to cook them. It will be very difficult for a beginner here. If you don’t know how to do all this, don’t know, can’t, I can understand your backender. Why does he need this hemorrhagic!
Or tell me how to convince him- it is difficult to convince a stubborn one, especially if I don’t know him personally. It is not always easy to find an approach in this state of affairs. There are developers who are stuck in the 90s and they are fine there.
Maybe he's rightin general, in my opinion, he is wrong. SPA is not a panacea, it is not always necessary to use it. But judging by his ancient stack, then SPA suggests itself. But, again, whoever pays, he dances the girl. If you can't convince him, it's better to leave this customer and not brainwash yourself.
if you are 17, you do not have a share in this startup and the head of the startup says the phrases "without frameworks is good" "we don't need fast and convenient" and "I don't like js, we will write a self-written front on selectors and handlebars", then your actions unequivocal:
- agree to what he wants there
- plan how you can get the maximum experience from this work in the shortest possible time
- implement the previous point thinking only about yourself
- in parallel, start looking for other options
- as soon as there is another option where people think about how make the best product and not about what they like / don't like - politely say goodbye.
possible to opt out of jquery+1
maybe drop xslt+1
write a wrapper over handlebars-one
explains all this by the fact that he does not want to depend on frameworks, which is fast and convenient - does not mean "good". Although the result is a large hodgepodge of libraries + a lot of time + save nerve cellsYou can depend on your own crutch decisions. But will it be better than a framework?
I suggest rewriting everything on Nuxt + Vue myselfThere are no problems with this choice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question