WRITELOOP

GLOSSARY

  • CORS: Achronym for “Cross-Origin Resource Sharing”.

  • DSL:

    • Domain Specific Language.
  • PERFECT FORWARD SECRECY:

    • Separates key agreement from authentication.
    • Authentication is not used directly to control the key, does not allowing the traffic to be decrypted if the key is known.
  • SIDE EFFECTS: happen when a function/method mutates global values, does requests to database or remote server, or even imports a module.

  • SOLID:

    • S: Single Responsibility = A class must have only one responsibility.
    • O: Open/Closed = Open to extend, Closed for modifications (a class created to be extended by others)
    • L: Liskov Substitution Principle = Do not change the interfaces on their definitions
    • I: Interface Segregation = Better to have several specialized interfaces than one generic interface. – or use Composition, to avoid deep interface hierarchies
    • D: Dependency Inversion = A class must depend on abstractions, not concrete subclasses.
  • WEBSOCKETS:

    • Ideal for real time apps, and you have the concept of CHANNELS that clients can subscribe to, instead of URLs. You also have the concept of “push notifications”, which is the server communicating with the client, as opposed as tradicional web sites, which operate the opposite direction.
  • XHR:

    • Achronym for “XMLHttpRequest”.
    • Used to send HTTP or HTTPS requests directly to a web server, and then load the server response data directly back to the script.
    • Also known as “AJAX” requests.