Skip to content

JavaScript Overview

This JavaScript section contains two main sections:

  • General concepts on how Terra works with the language
  • Terra’s proprietary framework

In the first one, you will find information on:

  • How Terra writes JS classes and what we use them for - here you will see the patterns we follow in all of our JS classes and real examples of classes we use everyday in our production code
  • How we leverage dynamic imports to improve performance and the best practices we apply when using them
  • A list of both internal and external libraries that we use, with links to the documentation of each of them

In the second section you have a deep dive of how our framework works behind the scenes and how you will be expected to use it:

  • The core

This section contains information on all the main files that make the framework β€œwork”. You will not need to modify or even interact with most of these files, but you are expected to know what they do and the logic behind our working methods

  • Usage

This is the section that you will need to reference most often while working. It contains information on how we use handlers to integrate libraries, advanced concepts using our event system, and a guide for each individual library we use with code examples of all the variants that you’ll find yourself implementing when working.

  • Debug

Here you will find information about our new debug manager system, which allows us to keep an eye on which libraries are being imported and instantiated, by whom and when.

Knowledge Check

Test your understanding of this section

Loading questions...