Finally keeps you DRY

Chris Velevitch made an insightful comment yesterday on the Flashcoders mailing list. Mainly, he talks about the finally keyword, and gives an excellent explanation of how it is used. However, he goes above and beyond the call of duty and points out how use finally to achieve a couple of best practices described in The Pragmatic Programmer, Finish What You Started and Don’t Repeat Yourself . It’s not very often that you find such a good explanation and accompanying example of a programming concept, so I had to pass it on to others.

About Josh Tynjala

Josh Tynjala is a frontend developer, open source contributor, bowler hat enthusiast, and karaoke addict. You might be familiar with his project, Feathers UI, an open source user interface library for Starling Framework that is included in the Adobe Gaming SDK.