Java Tip 62: Explicit and recursive programming in Java
Use Java style and idioms to ease maintenance without sacrificing performance
By Nige Warren With John D. Mitchell, JavaWorld.com, 10/01/98
- Digg
- Reddit
- SlashDot
- Stumble
- del.icio.us
- Technorati
- dzone
Page 3 of 3
Conclusion
So, we have taken a single utility method and gone through and cleaned it up and then extended it to be more generic and useful.
In the process, we transformed the relatively slow and problematic use of tail recursion as an implicit looping construct
into the faster, safer, and clearer use of the while explicit looping construct. We have also seen how minor changes to the routine made point of the code more explicit and clear.
About the author
Nigel Warren is Chief Technical Architect at Digital Bridges Ltd,
where he works with Java to build distributed service platforms. He
is the co-author with Phil Bishop of Java in Practice
published by Addison Wesley. Alternately as employee, consultant,
and principal of his own company, John D. Mitchell has invested the
last ten years in developing cutting-edge computer software and
advising other developers. John co-authored Making Sense of
Java: A Guide for Managers and the Rest of Us and Dummies
101: Java Programming and has published articles in
programming journals. In addition to writing the Java
Tips column for JavaWorld, he moderates the
comp.lang.tcl.announce and comp.binaries.geos newsgroups.
- Digg
- Reddit
- SlashDot
- Stumble
- del.icio.us
- Technorati
- dzone