Nicholas Cloud's Blog, page 5
November 10, 2014
Modern Web Practices ebook launched!
Today is a big day for me. Today I become (dramatic pause)… a published author!
I am excited to announce the launch of the Modern Web Practices ebook, a collection of six chapters on web development forged in the fiery crucibles at appendTo!
Preface by Michael Hostetler Chapter 1: Automate Your Workflow with Grunt by Aaron Bushnell Chapter 2: Offline Web Applications by Nicholas Cloud Chapter 3: Data Binding by Ryan Conaway Chapter 4: Making Things Move with CSS3 Transitions and Animations b...November 6, 2014
git-root
I wrote a little bash alias a while ago to help me instantly to the root directory of a git project from any directory beneath it.
.gist table { margin-bottom: 0; }It’s pretty simple. Assume /projects/foo is the root of a project under git. Assume your pwd is /projects/foo/bar/baz. At the prompt, typing git-root will return you to /projects/foo.
This works by changing pwd to be the actual .git directory under the project root, and then backing out of it one level up (to ..).
Using moment.js
This is a brief tutorial on usingmoment.jsthat I recorded for appendTo’s standards and practices documentation.
October 29, 2014
An addendum to my so-called expertise
In August I delivered a presentation called “Mastering Asynchronous Flow Control in JavaScript” at devLink 2014. To illustratehow tricky mixing asynchronous and synchronous code in JavaScript can be, I gave the following example:
I claimed, incorrectly, that the error thrown in the callback would cause unintendedconsequences when it re-entered the catch block (well, beyond just crashing the program).
I have since had a chance to re-visit this code and realized that this example isnotrepresen...
Nicholas Cloud's Blog
- Nicholas Cloud's profile
- 6 followers

