Tag: Ruby

Optimizing Ruby Code – Small Changes Add up to Big Performance

Ruby offers a lot of great features for manipulating data. If we aren’t careful though, it’s easy to write code that consumes more memory and CPU time than we would expect. Here’s a tip on optimizing Ruby code for better performance. Consider this locale detection code: Although it reads nicely, this code has several performance issues: […]

Announcing the New Constant Contact V2 API, Developer Portal, and Developer Acceleration Tools

Over the past year, we’ve mentioned a few times that we are working on a new version of our API.  It’s been quite a journey since we launched our original public REST API in 2008.  Since then, expectations have changed, technologies have advanced, and our developer community has been vocal about what they want.  They’ve […]

Sinatra for Rapid Prototyping

Recently, I’ve been working on a project that is mostly front-end work, but also communicates with some back-end web services.  I needed something to quickly respond to some basic GET requests at various endpoints and return either HTML fragments or JSON.  I’m not much of a big Ruby or Rails programer (although I do admire […]

Rails vs Django: A Developer’s Comparison

As you might know from reading some of my previous blog posts, I’ve been working with Python and Django pretty extensively over the last year, mainly for rapid prototyping and developing relatively simple web applications (including a Facebook App). During Cool Stuff Week I decided to try using Ruby on Rails (RoR) as the base […]