React | Stack | Fluid Attacks Help

React

Rationale

React is the main frontend library we use.

The main reasons why we chose it over other alternatives are:

  1. It is Open source.
  2. It is a low-level library, meaning that is is highly flexible and powerful at the cost of providing too many different ways of doing things. This ends up impacting maintainability and standardization.
  3. It has a big community supporting it, which makes it very reliable.
  4. It has a big market, allowing us to easily find developers that have worked with it previously.
  5. It provides a modern approach for implementing frontends using TypeScript.
  6. Acquired knowledge can be also used on mobile projects using React Native.
  7. It implements JSX, which currently is the best language for describing user interfaces.

Alternatives

Although Astro and NextJs feel like better candidates than React, they are not currently being used mainly due to:
  1. Using new frameworks/libraries makes it harder for developers to do their job, as it forces them to learn them, increasing cognitive complexity.
  2. Increasing the number of frameworks/libraries we support, also makes our stack more complex.
  3. Technical debt, as migrating a component from one library/framework to another is no easy task.

Astro

  1. It is Open source.
  2. It is a framework, meaning that it defines how to do things in a clearer way, improving maintainability and standardization at the expense of less flexibility.
  3. It offers a granular approach towards components, allowing to specify HTML and JavaScript on .astro files. This is highly useful for keeping a functional approach towards components.
  4. It provides a modern approach for implementing frontends using TypeScript.
  5. It has a considerable community supporting it, which makes it reliable.
  6. As it is pretty new, finding developers with previous experience is harder.
  7. It is focused on content-driven websites, which makes us wonder if it would be able to support application frontends like our Platform's.
Astro looks like a very solid alternative for building content-rich frontends like:
  1. Website
  2. Development Portal

Next.js

  1. It is Open source.
  2. It is a framework, meaning that it defines how to do things in a clearer way, improving maintainability and standardization at the expense of less flexibility.
  3. It provides a modern approach for implementing frontends using TypeScript.
  4. It has a big community supporting it, which makes it very reliable.
  5. It has a big market, allowing us to easily find developers that have worked with it previously.
  6. It can be used for both content-rich and application frontends, making it more flexible at the expense of losing built-in logics.
Next.js looks like a very solid alternative for pretty much everything that is currently built using React, as it provides a middle ground between flexibility and simplicity.

Angular

  1. It favors a object-oriented programming style, whereas we favor a functional-oriented one.
  2. Being a Framework, it forces us to do things in a way that sometimes differs from vanilla JavaScript, which increases cognitive complexity.
  3. It tends to release major versions that affect retro-compatibility, making it harder to keep updated.
  4. It has a smaller community compared to React.

Vue.js

  1. It tends to release major versions that affect retro-compatibility, making it harder to keep updated.
  2. It has a smaller community compared to React.

Usage

We use React for:

  1. Website
  2. Platform frontend
  3. Jira integration
  4. VSCode extension