Skip to content

Instantly share code, notes, and snippets.

View jgujgu's full-sized avatar

jgu jgujgu

  • Denver
View GitHub Profile
@jgujgu
jgujgu / index.html
Created February 5, 2017 18:57 — forked from phil-pedruco/index.html
Contours of Nepal using topojson and d3.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Nepal Topographic Contours</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="http://d3js.org/topojson.v1.min.js"></script>
@jgujgu
jgujgu / README.md
Created January 16, 2017 04:48 — forked from enjalot/README.md
visualizing map distortion

Presenters & Decorators

Decorators

Decorators are used to add new functionality to an already existing object by "wrapping" it with new methods, without effecting other instances of that object. Thus, decorators are a perfect example of the Open/closed principle, in which an object is "open for extension" but "closed for modification"; you should be able to add new behavior to application without changing it's underlying source code. If any of this is a bit hard to swallow, I would

Presenters & Decorators

Decorators

Decorators are used to add new functionality to an already existing object by "wrapping" it with new methods, without effecting other instances of that object. Thus, decorators are a perfect example of the Open/closed principle, in which an object is "open for extension" but "closed for modification"; you should be able to add new behavior to application without changing it's underlying source code. If any of this is a bit hard to swallow, I would