Static VS Dynamic

» Glossary » Static VS Dynamic

In software jargon, static means that it is not necessary to run the software, while dynamic means it does. Dynamic can be thought of «at runtime», while static as «at building/compile time».

For example:

  • static vs dynamic analysis of your code – your code can be analyzed without being executed. Linting, for example, is one common task you can perform by static analysis.
  • static vs dynamic types – a static data type can be known by reading the code, while dynamic data types can only be inferred at runtime.
  • static vs dynamic imports/exports – static imports/exports mean that they won’t change at runtime, while dynamic imports need to be calculated at runtime because they can contain variables, being inside a conditional, etc.