DEV Community

Discussion on: What's your favorite line of code?

Collapse
 
downey profile image
Tim Downey

Maybe not the most elegant example, but this line in Cloud Foundry's deprecated v2 API let us implement rolling "no downtime" app deployments on v3 without breaking the legacy stuff.

It basically let have more than a single "web" process for an app at a time, but let v2 continue to only concern itself with the newest.

The beauty of Ruby is that we could mix it in to all of the v2 controllers that needed it!