ccharlottespencer.wordpress.com
February – In Summary | Charlotte Spencer's Blog
https://ccharlottespencer.wordpress.com/2015/03/01/february-2015
Charlotte Spencer's Blog. February – In Summary. Despite being the shortest month of the year, so many wonderful and varied things have happened. Although I haven’t built any one standalone thing, I’ve had the opportunity to work on a multitude of things, build up some skills and learn some new ones. 8211; JavaScript for Kids. 8211; Python Testing with unittest, nose, pytest. The overall plan is just to keep doing well in my internship, learning new things and reading what I can. I’m enjoying d...You are...
blog.jcoglan.com
Running RSpec tests from the browser – The If Works
https://blog.jcoglan.com/2013/07/01/running-rspec-tests-from-the-browser
Running RSpec tests from the browser. As a fun demo of the flexibility of jstest. I thought I’d show how you can use it to run tests that aren’t even JavaScript. This is a silly example but it actually demonstrates the power of the framework and I’ve used these capabilities to solve real testing problems when running JavaScript on unusual platforms. Has a plugin system for changing the output format; all the different output formats. The docs for the JSON reporter. Rspec -r ./spec/json formatter -f J...
blog.jcoglan.com
Monad syntax for JavaScript – The If Works
https://blog.jcoglan.com/2011/03/06/monad-syntax-for-javascript
Monad syntax for JavaScript. Following on from my introduction to monads in JavaScript. And before I get into how they apply to asynchronous programming, I’d like to take a quick detour to improve the usability of the tools we’ve built up. Recall we have a function for composing functions:. We have some ‘debuggable’ functions:. Sine : Number - (Number,String). Sine was called.'. Cube : Number - (Number,String). Cube was called.'. And finally we have the. Functions for the debuggable’ monad:. Bind : (Numb...
blog.jcoglan.com
Callbacks are imperative, promises are functional: Node's biggest missed opportunity – The If Works
https://blog.jcoglan.com/2013/03/30/callbacks-are-imperative-promises-are-functional-nodes-biggest-missed-opportunity
Callbacks are imperative, promises are functional: Node’s biggest missed opportunity. The nature of promises is that they remain immune to changing circumstances. Frank Underwood, ‘House of Cards’. Functional programming’ is something of a misnomer, in that it leads a lot of people to think of it as meaning programming with functions’, as opposed to programming with objects. But if object-oriented programming treats everything as an object, functional programming treats everything as a. With this definit...
blog.jcoglan.com
Building JavaScript projects with Make – The If Works
https://blog.jcoglan.com/2014/02/05/building-javascript-projects-with-make
Building JavaScript projects with Make. As a long-time Ruby and JavaScript user, I’ve seen my share of build tools. Rake. The Rails asset pipeline. Hellip; I’ve even invented one or two of my own. I’ve always wondered why every language ecosystem feels the need to invent its own build tools, and I’ve often felt like they get in my way. Too often, Rake tasks are just wrappers around existing executables like. Or require custom glue code to hook a tool into the build system – witness the explosion of.
blog.jcoglan.com
Why GitHub is not your CV – The If Works
https://blog.jcoglan.com/2013/11/15/why-github-is-not-your-cv
Why GitHub is not your CV. Two days ago, Ashe Dryden published an article I’ve been desperately wishing someone would write for months: The Ethics of Unpaid Labor and the OSS Community. I’m not going to retread the material in that article but I would like to cover the debate I’ve been having with people over the last day or so. This is more about principles and practicalities, and if you want evidence and stats I refer you to Ashe’s article. That GitHub is your resume now. People think is useful. As...
blog.jcoglan.com
Getting started with Cucumber, RSpec, Webrat and multiruby – The If Works
https://blog.jcoglan.com/2009/10/03/getting-started-with-cucumber-rspec-webrat-and-multiruby
Getting started with Cucumber, RSpec, Webrat and multiruby. After a couple years off from full-time Ruby/Rails work, I’m getting back into it having just joined the development team at Songkick. Much as I’ve tried to keep my hand in with the Ruby world by hacking on stuff like Heist. A few things have passed me by. In particular, I’ve not been doing any big Rails apps for a while so I’m a little behind on the current testing toolset. Songkick uses Cucumber. For acceptance testing, with help from RSpec.
blog.jcoglan.com
UTF-8: it's what strings are made of – The If Works
https://blog.jcoglan.com/2014/06/17/utf-8-its-what-strings-are-made-of
UTF-8: it’s what strings are made of. Earlier today, a change was announced to Node.js. That affects how it handles invalid UTF-8 in strings that are converted to buffers. Once again, I find myself checking over the UTF-8 validation code in websocket-driver. And once again I find I cannot ever remember how to make sense of this regex that performs the validation. The first thing you need to understand is that Unicode and UTF-8 are not the same thing. Unicode. Is the uppercase letter ‘A’, 90 or. Well, the...