Finally keeps you DRY

by Josh Tynjala

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 the Author

Josh Tynjala is an indie game developer, entrepreneur, Flash and Flex mercenary, and bowler hat enthusiast.

Share Your Thoughts

To display code in comments: <pre>Code here. May be multiline. Format XML with &gt; and &lt; entities.</pre>

Some HTML allowed in comments: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>