Skip to content

Instantly share code, notes, and snippets.

@CGavrila
CGavrila / CleanArchitecture.md
Last active November 16, 2020 21:40 — forked from ygrenzinger/CleanArchitecture.md
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.

@CGavrila
CGavrila / singleton_es6.js
Created August 22, 2015 19:11
Singleton pattern in ECMAScript 6
let _singleton = Symbol();
class Singleton {
constructor(singletonToken) {
if (_singleton !== singletonToken)
throw new Error('Cannot instantiate directly.');
}
static get instance() {
@CGavrila
CGavrila / gist:a3021a4fc49d5c9e3068
Last active August 29, 2015 14:10
Vis.js group streaming
<!DOCTYPE HTML>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<title>Graph2d | Streaming data</title>
<style type="text/css">
body, html, select {