Javascript frameworks

Associate
Joined
19 Jul 2006
Posts
1,847
Looking for a bit of advice, I know know enough Rails to knock up some web apps, I understand MVC and getting data in and out. I have used jQuery sparingly for conditionals on hiding and showing links depending on the date.

I think its time to now look at some front end js frameworks however I have a few questions.

As I have never used one before I dont really know when I would use one instead of just using RoR or Laravel.

I have looked at vue.js and can see it looks clean to write.

I think the main question is how do I get in to this... how could I incorporate a small part of one into an existing project?

Also which would you say look at first
 
Associate
Joined
15 Mar 2010
Posts
449
From a job marketplace standpoint I would say JQuery is the most requested, therefore I would look at that first:

http://www.w3schools.com/jquery/

I would use it when it provides the most elegant and efficient way of doing something you need.

jquery is a library, not a framework. The OP has already mentioned it. It is being actively deprecated.

i'd recommend AngularJS, Angular2, React.
 
Associate
OP
Joined
19 Jul 2006
Posts
1,847
Thanks I know a bit of jQuery for doing hide and show and bit of animations.
It was more a question of angular, ember, react, vue and how I would put this into my workflow?
At the moment I have never used them as I have not needed to use them or know why I would use them
 
Soldato
Joined
24 Sep 2007
Posts
4,912
Of those, Angular is the one I've seen mentioned most often. Therefore, I would look at this first. It has a pretty good explanation of what it's for on its home page:

https://angularjs.org/

It has a more elegant and instant binding model, and looks more like HTML and is therefore easier to read for functionality.
 
Associate
Joined
19 May 2007
Posts
1,228
Location
The Now
Look at any latest gen framework such as React, Aurelia or Angular2 and you'll not see jQuery there. If you're new to html and js do something simple in jQuery first, there will be plenty of jobs for existing code bases which utilize jQuery anyhow.
 
Associate
Joined
6 Jun 2016
Posts
164
Location
Cambridge
As has been said, JQuery is a library that you use as a toolbox whereas Angular etc are frameworks around which you structure your application which is typically a single page application. Lying somewhere between a library and a framework is Backbone.

As anticonscience has said you do need JavaScript (and possibly Typescript if you go with Angular2).

If you can afford the subscription, Pluralsight has a number of relevant courses including 'Choosing a Javascript Framework'.
 
Soldato
Joined
24 Sep 2007
Posts
4,912
What is your reason for learning this? What is your goal? I think where Angular excels is creating one page web apps that work well on mobile too. It is a question of the right tool to do a specific job.
 
Associate
OP
Joined
19 Jul 2006
Posts
1,847
Ok My goal is to be more employable.
And a lot of job specs are asking for frontend frameworks.

So I know that if you know php you can do the same thing as with laravel except laravel makes a lot of things faster and less typing. I get that, that is how a framework is used to help.

I understand that I use jQuery to add a bit of flair to sites so transitions and that kind of thing ( I know it can do other stuff to).
Am I right in thinking that Angular for example would replace RoR if you was making a web app from scratch you would choose to build in on or the other?
 
Associate
Joined
26 Apr 2012
Posts
1,195
Look at any latest gen framework such as React, Aurelia or Angular2 and you'll not see jQuery there. If you're new to html and js do something simple in jQuery first, there will be plenty of jobs for existing code bases which utilize jQuery anyhow.

I think Ember has a dependancy on jQuery but you are right most of the latest frameworks don't.
 
Associate
Joined
6 Jun 2016
Posts
164
Location
Cambridge
RoR, Laravel or whatever you choose for your server backend would typically provide a Rest API for your javascript frontend (Angular, Ember or whatever) which would pull in data with Ajax calls.
 
Associate
Joined
24 May 2011
Posts
262
Ok My goal is to be more employable.
And a lot of job specs are asking for frontend frameworks.

So I know that if you know php you can do the same thing as with laravel except laravel makes a lot of things faster and less typing. I get that, that is how a framework is used to help.

I understand that I use jQuery to add a bit of flair to sites so transitions and that kind of thing ( I know it can do other stuff to).
Am I right in thinking that Angular for example would replace RoR if you was making a web app from scratch you would choose to build in on or the other?

No.

Angular is a front end framework. Rails is a a full stack framework (back end and front end).

If you don't need a back end, you could use Angular on its own.

If you need a back end, you could do front end and back end in rails. Alternatively you could do the front end in Angular and the back end in rails.
 
Last edited:
Back
Top Bottom