Reflections on building software for, and with, people.

This Week I Learned #10

Lots of Ruby learning this week, including two tricks with arrays and why you might want to freeze a value, plus some surprising behavior (and how to work around it) with ActionView’s cycle() method.

Continue reading...

Tips for Building Static Sites with Middleman

After a year of powering this site on a WordPress self-install, I recently switched to deploying this site as static HTML, published and kept organized by Middleman and served up by Github pages. (Update: I’ve since switched to Jekyll for tighter integration with Github pages.) I’ve been quite pleased with the experience and results. Here’s why I switched, and some things I learned in doing so.

Continue reading...

This Week I Learned #9: Railsbridge Edition

This weekend I had the great pleasure of helping out at Railsbridge Indy, an event aimed at introducing women to Ruby and Rails. It’s the local chapter of RailsBridge, a really cool organization that open-sources all of the curriculum and helps people set up local chapters. Having myself learned Ruby and Rails from others who’ve generously shared their knowledge online, I was excited for an opportunity to give back and happily learned a few things, too.

Continue reading...

This Week I Learned #8

Adding environment-based HTTP authentication to a Rails app, how to filter tailed log output, and a great habit for writing clearer, self-documenting code.

Continue reading...

jQuery Coding Standards and Best Practices

Abhinay Rathore has compiled a treasure trove of best practices for working with jQuery (and DOM manipulation in general), and best of all it’s well-annotated with links to explanations and performance comparisons to back up the recommendations. I learned more than a few tricks to improve performance, like detaching DOM elements before engaging in heavy manipulation, using string concatenation instead of appending elements, and passing an object literal to $el.attr({attr: value}) instead of chaining multiple attr() calls.

Continue reading...

Web Page Rendering Performance

Paul Lewis is a Developer Advocate on the Google Chrome team, and he’s been on fire lately with a series of excellent articles on the nuances of web page performance from the perspective of the browser. If you do front-end development (like I do), and you don’t know what frames, paints, and layers are (like I didn’t), then Paul’s articles are an excellent introduction to why your site isn’t silky-smooth when scrolling or animating.

Continue reading...