Message from JavaScript discussions

May 2019

— Do tests


Trie.js - super simple JavaScript implementation · GitHub

— Anyone could explain the concept of this code?

— There is a wikipedia link with the explanation at the beginning of the code:

Message permanent page

— You can check the examples at the end of the code to better understanding

— Ok

— Thomas I am currently refactoring our classes with the static assertExists helper method. Would you rather recommend creating a helper parent class which the classes should extend?

Message permanent page

— Because we have like 50 classes that need this utility

— I don't like inheritance, so no

— Do class composition

— Currently I just import this function every time and use it as a static method

— Import { assertExists } from "helper";

class Foo {
constructor() {

static assertExists = assertExists;

Message permanent page