16 1 / 2013

CoffeeScript? That’s so 2012. We’re already porting our stuff to Six the ECMAScript 6 pre-processor. I guess you wouldn’t have heard of it yet but you will soon because we’ll be making sure everyone can overhear us affecting blasé detachment whilst discussing it in the latest pop-up dirty food joint.

posted by: piraterob

Tags:

Permalink

30 5 / 2012

With a name like that we can hardly ignore it… Fixie saves you the trouble of copy ‘n pasting from hipster ipsum by automatically injecting classy ethical 8bit locavore filler text into your site.

I like the way different length content is generated for article, p, a & img elements and can merge with ‘real’ content.

Pro-tip: use placekitten for images by adding this:

fixie.setImagePlaceholder('http://placekitten.com/g/${w}/${h}').init();

posted by: piraterob

Tags:

Permalink

30 5 / 2012

You! Yes, you! You’re the kind of hipster that still thinks Williamsburg or Dalston are cool, aren’t you? You’re still using Underscore.js aren’t you? LOSER!

Stop it immediately. You’ll get at least 10 milliseconds page load performance if you use Lo-Dash, a drop-in replacement for Underscore.js with a few added features. I’m almost reluctant to tell you about it in case you tell your Pabst-drinking loser friends about it.

lodash.com

posted by: froots101

Tags:

Permalink

21 5 / 2012

End-to-end testing web apps can be trickier than doing trackstands on your fixie without spilling your flat white. Tools are often a pain to get running, test suites awkward to organise. Do you test in-browser with JS or using something like Selenium? Ugh, total drag.

Casper JS on the other hand is crazy simple to set up and use. It sits on top of Phantom JS (oh, you really haven’t heard of that? It’s a pretty cool headless WebKit implementation). Casper provides a friendly API layer in much the way that Geb complements Selenium.

Casper can run individual Java/Coffeescript files or directory trees, interact with the file system to upload or save, can output JUnit-compatible reports & grab screenshots.

It will be interesting to try to work up a complex page object model & really put it through its paces with richer interactions but the simple stuff I’ve tried so far has been promising.

posted by: piraterob

Tags:

Permalink

21 5 / 2012

Grunt

I know at least one other person using this, and it’s already at version 0.3.9, and has good documentation, so this is seriously in danger of becoming unpleasantly mainstream. It’s practically enterprise already. If it were an early-90s Portland indie-music café we’d have a riot, charge no money for entry and get it shut down on purpose.

Having said that, if you want a really simple set of build tools for your JavaScript project, then Grunt is for you.

I’m using it to compile my Haskell source files to pure JavaScript byte-code. Yeah.

posted by: froots101

Tags:

Permalink

20 5 / 2012

Some nice ideas in Angular; plain objects for models, automated event handling & extensible HTML for building components.

I was initially put off by the non-standard ng-* attributes but apparently those of us who are pedantic enough to care about HTML validity can use data-ng-* instead.

As Mex puts it:

Finally a front-end tech from Google that doesn’t suck.

posted by: piraterob

Tags:

Permalink