Blog / Return Of The ActiveSupport method of the week (Mark Morrison style)

Carl Whittaker
November 23, 2012

ActiveSupport method of the week File#atomic_write (thanks to Leo)

atomicwrite(filename, temp_dir = Dir.tmpdir)

Write to a file atomically. Useful for situations where you don’t want other processes or threads to see half-written files.

File.atomic_write("important.file") do |file|

If your temp directory is not on the same filesystem as the file you’re trying to write, you can provide a different temporary directory.

File.atomic_write("/data/something.important", "/data/tmp") do |file|

A Few New Things Coming To JavaScript

Addy Osmani on some of the additions to JavaScript in ES6. Object.observe() *drool*

Murray found something interesting about Spotify’s process.

Scaling Agile at Spotify

Long piece (it’s a PDF? why?) about how Spotify have retained small teams and agile culture despite having a large number of employees split across several offices.

JSFeat: JavaScript Computer Vision Library

JavaScript image transformation and object detection. Check out the face detection demo which uses WebRTC.

Lee found some front end goodness (and a trove of Rails 4 bits)

CSS Comb

Not sure if I’ve submitted this one before but its quite a nice tool for anyone not so great at CSS to help tidy up after themselves and also has a sublime plugin

Rails 4 links compilation

A whole load of Rails 4 links and articles all in one place

An interesting talk by Ilya Grigorik on some of the things we may or may not already know about using Chrome in development

Matt P was looking into those pesky cukes

Scenarios are not Acceptance Criteria

A blog post by @chrismdp on not conflating cucumber scenarios with acceptance criteria.

Leo found

Hide the ORM like you’re ashamed of it