-
Notifications
You must be signed in to change notification settings - Fork 0
/
archives.html
172 lines (133 loc) · 6.18 KB
/
archives.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<title>The Attic - Archives</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://winder.ws/feed.xml">
<link rel="stylesheet" href="/assets/winderws-9c72d0378503d206970f77799aca59d5.css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-44769789-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body class="archives">
<div class="jumbotron" id="header">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<h1><a href="/">The Attic</a></h1>
<div class="row">
<div class="col-xs-10 col-sm-5 col-md-5 col-lg-5">
<h3 id="sigline" class="hidden-xs"> by <a href="/about.html">Andrew Winder</a></h3>
<h3 id="sigline" class="mini visible-xs"> by <a href="/about.html">Andrew Winder</a></h3>
</div>
<div class="col-xs-2 col-sm-7 col-md-7 col-lg-7">
<ul id="toplinks" class="hidden-xs pull-right">
<li><a href="/about.html">About</a></li>
<li><a href="/links.html">Links</a></li>
<li><a href="/archives.html">Archives</a></li>
<li class="hidden-md hidden-sm"><a href="feed://winder.ws/feed.xml">RSS</a></li>
</ul>
<div class="visible-xs">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#mobilelinks">
<span class="sr-only">Toggle navigation</span>
<i class="fa fa-chevron-down"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<ul id="mobilelinks" class="collapse navbar-collapse nav nav-pills nav-stacked">
<li><a href="/about">About</a></li>
<li><a href="/links.html">Links</a></li>
<li><a href="/archives.html">Archives</a></li>
<li><a href="feed://winder.ws/feed.xml">RSS</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-9 col-lg-9 col-md-push-3 col-lg-push-3">
<h1>Archives</h1>
<article>
<h2><a href="/2014/01/20/unit-testing-express-dot-js-routes.html">Unit Testing Express.js Routes</a></h2>
<p>Unit testing synchronous objects in Node.js is really simple. You have inputs, and you have outputs, and by exposing an object to all of it's possible inputs, you can assess that the outputs are sane. But what about something like an asynchronous Express.JS route handler? Read on to find out how you can track these sorts of modules.</p>
<div class="meta">
<date>Authored on January 20, 2014</date>
<ul class="tags">
<li><a href="/tags/node.js.html">node.js</a></li>
<li><a href="/tags/express.js.html">express.js</a></li>
<li><a href="/tags/mocha.html">mocha</a></li>
<li><a href="/tags/testing.html">testing</a></li>
</ul>
</div>
</article>
<article>
<h2><a href="/2013/10/15/structuring-local-node-modules.html">Structuring Library Functionality in Node.js Projects</a></h2>
<p>Requiring files in Node.js comes in two varieties: The code you write, that is required by a relative path, and the code from the community (or your own packages), that live as node modules, and are required by module name. But what about library functionality, that gets used all over your application? Is there a better way to include this repeated functionality in your code than a bunch of relative paths?</p>
<div class="meta">
<date>Authored on October 15, 2013</date>
<ul class="tags">
<li><a href="/tags/node.js.html">node.js</a></li>
<li><a href="/tags/express.js.html">express.js</a></li>
<li><a href="/tags/npm.html">npm</a></li>
<li><a href="/tags/modules.html">modules</a></li>
</ul>
</div>
</article>
<article>
<h2><a href="/2013/10/13/whats-in-the-attic.html">What's In the Attic</a></h2>
<p>Welcome to The Attic! Read on to find out about what this site is, who I am, and what you might find here.</p>
<div class="meta">
<date>Authored on October 13, 2013</date>
<ul class="tags">
<li><a href="/tags/jekyll.html">jekyll</a></li>
<li><a href="/tags/bootstrap.html">bootstrap</a></li>
<li><a href="/tags/site.html">site</a></li>
<li><a href="/tags/meta.html">meta</a></li>
</ul>
</div>
</article>
</div>
<div class="col-sm-12 col-md-3 col-lg-3 col-md-pull-9 col-lg-pull-9">
<div id="biography">
<div id="me" class="center-block"></div>
<p>Hello, I'm Andrew Winder. I work at <a href="http://www.messagesystems.com">Message Systems</a> as a Senior Software Engineer, and I blog here about AngularJS, Node.js, and other technical topics. All opinions are my own.</p>
<div class="row">
<div class="col-xs-4 col-sm-4 col-md-4 mol-lg-4">
<a href="https://twitter.com/awinder"><i class="fa fa-twitter"></i></a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 mol-lg-4">
<a href="https://www.github.com/awinder"><i class="fa fa-github"></i></a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 mol-lg-4">
<a href="https://www.linkedin.com/in/ajwinder"><i class="fa fa-linkedin"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="jumbotron footer">
<div class="container">
<div class="row">
<footer class="col-sm-12 col-md-12 col-lg-12">
<p>© Andrew Winder, 2013-2014. All rights reserved.</p>
</footer>
</div>
</div>
</div>
<script src="/assets/theattic-657bf60b2d30b7525fe605793bedb038.js"></script>
</body>
</html>