In this article, we will compare two of the most popular web technologies in 2020, and also address their history, key differences, core languages recommended (TypeScript and JavaScript) and so forth. Overall, these technologies have made it much easier for developers to reuse, refactor, and maintain code by dividing things into modules/components.

The goal of this article is not to find the best technology, but to compare, highlight, and clarify few misconceptions. We’ll also focus on what is important instead of minor details that do not really matter in the long-term.

You should be aware that the comparison between these two technologies cannot be fully covered. Angular comes with a complete framework (MVC), while React is a fronted-library with lots of open-source packages to integrate with. One is about a monolithic structure (Angular), like a box of tools that comes with everything you need, while the other (React) doesn’t come with everything, but have lots of good options to integrate with.

Questions to be addressed#

  • What are the key differences between Angular and React?
  • What makes TypeScript so special?
  • How popular are these technologies?
  • What is the current open-source status?
  • Which technology do companies use the most?
  • Do static typed languages influence code quality and development time?

Future sections will be added based on demand from the comments.

Key comparisons#

Here’s a quick side-to-side comparison between Angular (left) and React (right).

Angular and React

One thing that is really great about React in terms of performance is the Virtual DOM, which you’ve probably heard about a couple of times. If not, don’t worry, I’ll explain it!

Problem

Let’s say you want to update a user’s birth date within a block of HTML tags.

Virtual DOM

It only updates the part that is required by seeing the differences between the previous and current HTML version. Its a similar approach to how GitHub operates when detecting changes in the file.

Regular DOM

It will update the whole tree structure of HTML tags until it reaches the birth date.

Why does it matter?#

It may not matter for the problem described above. However, if we deal with 20–30 asynchronous data requests on the same page (and for every page request we replace the whole HTML block), it will influence performance as well as user-experience.

Need more context? Check out Dace’s article!

But first, back to the beginning…

#angular #javascript

A Comparison between Angular and React And Their Core Languages
1.10 GEEK