Library-Oriented Architecture

September 2017

Modulariy is an important aspect of software development, and what could be more modular than a library? That's what library-oriented architecture is all about: modularity. The main idea is that instead of building a monolithic application you build libraries, that can be installed and tested on their own. Like this, you don't need to understand the entire codebase, but you could rather just work on one feature (one library).

An example of library-oriented architecture would be, that in your application, module A doesn't import module B directly, but rather it

Pros: - Each individual unit can be understood, built and tested on its own - Stronger modularity - Clearer dependencies in NPM. E.g. if mongo requires @types/mongo and some driver it's only in the package.json of mongo - control what you expose Cons: - Overhead - More complexity - harder consistency accross project (unless tslint,tsconfig are imported externally)

Well well...

What are the Pro's doing?

  1. Angular is using library-oriented-architecture (@angular/common, @angular/http, ...)
  2. React is using library-oriented-architecture (react, react-dom)
  3. Vscode isn't using library-oriented-architecture.

Dear Devs: You can help Ukraine🇺🇦. I opted for (a) this message and (b) a geo targeted message to Russians coming to this page. If you have a blog, you could do something similar, or you can link to a donations page. If you don't have one, you could think about launching a page with uncensored news and spread it on Russian forums or even Google Review. Or hack some russian servers. Get creative. #StandWithUkraine 🇺🇦
Dear russians🇷🇺. I am a peace loving person from Switzerland🇨🇭. It is without a doubt in my mind, that your president, Vladimir Putin, has started a war that causes death and suffering for Ukrainians🇺🇦 and Russians🇷🇺. Your media is full of lies. Lies about the casualties, about the intentions, about the "Nazi Regime" in Ukraine. Please help to mobilize your people against your leader. I know it's dangerous for you, but it must be done!