• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what are javascript frameworks? Why do we use them?

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I have read a bit about different javascript frameworks like angular, node and ember. But I do not understand why they are used at all. Please someone tell me why we use these frameworks?
 
Ranch Hand
Posts: 310
18
MS IE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Frameworks (and libraries) are collections of code that solve common programming problems. In example, jQuery allows you to modify DOM very easily, while underscore.js provides a bunch useful function to help with common programming tasks like operations on strings or arrays. Some frameworks introduce a different kind of philosophy / different approach toward developing an application. A good example is angular.js, which turns entire applications into modules, controllers, directives, filters and so on. Such design allows to keep big applications more maintainable and easier to develop.

One tip if you are starting to code in JavaScript: stay away from libraries and frameworks as long as you can. Learn the "core" JavaScript as best as you can before you start with frameworks. There are too many people who are unable to code anything themselves, without using third-party libraries. There was once a famous question on StackOverflow, "How to divide numbers in jQuery"...
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because A) they provide ready-made pre-written, pre-debugged popular functions such as AJAX support. B) They tend to be well-documented, so the learning curve for new team members is less than it would be for DIY JavaScript code. C) Because JavaScript is a nightmare and certain web clients implement their functions in non-standard ways. Use of a framework such as jQuery allows you to write "one-size-fits-all" code because the browser dependencies are managed from within the framework.
 
Are you okay? You look a little big. Maybe this tiny ad will help:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic