Advantages of JS Frameworks
Let’s dig deeper into the advantages of using a framework and how they can help us efficiently write applications.
One benefit of a JS Framework is the inclusion of pre-built functions. Thanks to the inclusion of pre-built functions, the developer ends up writing less code and developing applications faster; the alternative is the developer creating everything from scratch. This means that tasks that usually would take hours and hundreds of lines of code can now be completed in minutes!
Many JS Frameworks rely heavily on their communities and the feedback they provide. This is a big selling point for these tools because it is this same community that makes these tools better by reporting bugs or issues related to the pre-built functions that they provide. This is great because users not only provide bug-related feedback, they can also suggest new features or bad user experiences that users might have stumbled upon. Chances are that by using a JS framework you can eliminate poor user experiences, and decrease the number of bugs you have to repair.
The more a framework is used, the more security it requires.
This is a vital reason to opt for a framework that has a large and active community. This same community acts as long-term testers, so they can report security-related issues and even provide solutions to issues.
A JS Framework, like any other distributed tool, usually comes with documentation, a support team, and a community forum in which you can ask and report issues related to the tool. Another important component is that the most used JS frameworks are backed and heavily used by big companies like Google and Facebook, so the code base is being constantly updated.
Disadvantages of JS Frameworks
Of course, not everything related to JS Frameworks is ideal. Let’s discuss a couple of disadvantages of these tools:
Lack of customization
As developers, we like to have complete control of our development and, in some cases, we even tend to modify the default behavior of a tool. Sadly, modifying the pre-built functionality of frameworks is hard and cannot be done by yourself, but here’s where the community forums come along. If you find an issue or identify an improvement to a framework, you can always go to the community forums or repository to suggest and/or report your improvement and/or bug.
Updating JS frameworks is like a double-edged sword. You have two options: sticking to the version you already have or updating to the latest one. Sticking with an older version brings the risk of missing out on some of the latest web methodologies and standards, and it could mean having unidentified bugs in your code. Obviously, this is not recommended.
The better option is to update your frameworks. Updates are great because they bring performance improvements and often bug fixes to your code-base. However, there are times that big updates come along and can screw everything up by introducing breaking changes that make your code non-compatible with the latest versions.
Of course, this is not common and is often left to major releases. Still, this is an important aspect to keep in mind when opting to update the framework of a large code base.
One of the most opinionated frameworks. Angular is a big and robust framework that has been widely adopted by enterprises because of the way it adopted TypeScript as its main language. By using TypeScript, developers that already know a heavily typed language, like C# or Java, can easily adapt to the way Angular is structured. Also, this framework is backed by Google, so support and updates are constantly provided.
What they are also famous for is popularizing functional programming principles among new web developers.
React is backed by Facebook, so support and updates are offered regularly.
Vue, contrary to Angular and React, sells itself as a progressive framework.
What they mean by that is at a minimum you can use it to handle your view layer only (like replacing JQuery). Alternately, you can use it to fully handle your application (even routing can be handled with Vue). As opposed to the other two frameworks mentioned, it relies on donations, rather than having big corporate support.
For more information