Skip to content

Instantly share code, notes, and snippets.

View batusa's full-sized avatar

Emmerson Siqueira batusa

View GitHub Profile
@batusa
batusa / clean_architecture_notes.md
Last active July 11, 2019 13:21
Some notes from my reading of Clean Architecture book (from Part V on)

Architecture

The architecture of a software system is the shape given to that system by those who build it. Division into components, arrangement of those components, and the ways in which those components communicate with each other.

The purpose of that shape is to facilitate the development, deployment, operation and maintenance of the software system contained within it.

Minimize lifetime cost of the system and maximize programmer productivity.

Keeping options open

var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
var hist = arr.reduce( function (prev, item) {
prev[item%2] += item;
return prev;
}, [0,0]);
@batusa
batusa / template.js
Created July 24, 2014 19:51
module pattern w jquery
// http://learn.jquery.com/code-organization/concepts/
$(function(){
"use strict";
var Foo = (function(){
var $element = $('#element');
var onClickElement = function(e){
justClicked();
};