YAPC::NA 2006 — Mark Jason Dominus

Perl Program Repair Shop

Creative Commons Attribution + Share Alike 2.5
2006-06-26 11:32 AM CST
40 Minutes, 21 Seconds

Most programs are overwritten. You can remove one-third to one-half of the code from the typical program while improving it in every other way: afterwards, it will be more readable, more efficient, more maintainable, and more modular. I will show you how to do this.

I'll take as a case study a program contributed by a programmer I don't know. We'll look at this example in detail and see how to improve it. The class focuses on 'red flags', which are obvious warning signs in the code that are plainly visible if you are looking for them. The techniques for improving code are easy, and require little thought or ingenuity. The motto of this class is "no clever tricks."


More YAPC::NA 2006 presentations