| By Yakov Werde | Article Rating: |
|
| December 5, 2009 03:00 PM EST | Reads: |
2,979 |
PBDJ Blog on Ulitzer
After watching my PowerBuilder refactoring eTutorial, you're getting a glimmer of the potential confidence, joy and power of refactoring in a test driven manner. No doubt, you're already familiar with the uncomfortable feeling of slogging though ponderous legacy code. Now you are beginning to know the benefits of refactoring; you know the smells, and you know the catalog of techniques. You can't wait get your hands on some legacy code. You know exactly what to do to whip it into shape.
Legacy code, watch out, here I come!
But wait, is refactoring always the right thing to do? Should we send every app out for an overhaul, face lift or tummy tuck by a special refactoring team for a before moving on?
At this moment the words of the song immortalized by Kenny Rogers echo in my brain:
You got to know when to hold 'em, know when to fold 'em.
Know when to walk away, know when to run
You never count your money, when you're sittin' at the table.
There'll be time enough for countin', when the dealin's done
In line with knowing when to hold ‘em and fold ‘em, here again, is my short list of reasons to refactor PB code with abandon.
If you're getting ready to migrate to .NET then
- Thin the GUI: Classic Client Server GUIs suffer from code bloat. ‘Lean and mean' is the mantra for new GUI. Move that business logic out the GUI. Extract Method, Extract Class and Replace Temp with Query. Get your GUI event handlers down to slim, clean, readable code
- Open up the enterprise: Eliminate obvious duplication and free logic for sharing. Extract Class, Replace Data Value with Object, Duplicate Observed Data until your logic is properly encapsulated within portable classes
If you're not getting ready to migrate then
- AS NEEDED, when you're working in monster sections of code, judiciously apply some of the refactorings from the catalog to make the code a better place for yourself and the developers who will surely follow you.
Published December 5, 2009 Reads 2,979
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Yakov Werde
Yakov Werde, a 25 year IT industry veteran, is a member of TeamSybase and the newly formed Sybase Customer Evangelist Team. Yakov is a recognized author, speaker and trainer who has been designing and delivering PowerBuilder, .NET, EaServer, Web App Development, and Java training for over 14 years to corporate, military and government developers. Prior to discovering his aptitude as an educator, Yakov worked as an architect, project manager and application coder in the trenches of application software development. Yakov holds a Masters in Education with a specialty in instructional design for online learning from Capella University and a BS in math and computer science from Florida International University. Yakov, managing partner of eLearnIT LLC (www.elearnitonline.com), authors and delivers workshops and web based eLearning tutorials to guide professional developers toward PowerBuilder Classic and .NET mastery. Follow Yakov on Twitter as @eLearnPB
- Patterns for Building High Performance Applications
- It's the Java vs. C++ Shootout Revisited!
- Asynchronous Logging Using Spring
- Java for Programmers (2nd Edition)
- Cross-Platform Mobile Website Development – a Tool Comparison
- Three Buzzwords That Every CIO Hears but One They Should Listen To
- Write Once Run Anywhere or Cross Platform Mobile Development Tools
- Immersing into JavaScript Frameworks
- Workday Reportedly Prepping to Go Public
- Cloud Expo New York: The Java EE 7 Platform - Developing for the Cloud
- Book Review: Sams Teach Yourself Java in 24 Hours
- OpenOffice.com Lives
- Book Excerpt: Introducing HTML5
- Adobe Sends Flex to the Apache Foundation
- Five Years Waiting for JRE 7: Is It Justified? (Part 1)
- Book Excerpt: Java Application Profiling Tips and Tricks
- i-Technology in 2012: Five Industry Predictions
- Patterns for Building High Performance Applications
- It's the Java vs. C++ Shootout Revisited!
- OpenXava 4.3: Rapid Java Web Development
- The Next Web Architecture
- Asynchronous Logging Using Spring
- Java for Programmers (2nd Edition)
- Is Write Once Run Anywhere Ever Going to Be a Reality?
- A Cup of AJAX? Nay, Just Regular Java Please
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- JavaServer Faces (JSF) vs Struts
- The i-Technology Right Stuff
- Rich Internet Applications with Adobe Flex 2 and Java
- Java vs C++ "Shootout" Revisited
- Bean-Managed Persistence Using a Proxy List
- Reporting Made Easy with JasperReports and Hibernate
- Creating a Pet Store Application with JavaServer Faces, Spring, and Hibernate
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- What's New in Eclipse?
- i-Technology Predictions for 2007: Where's It All Headed?
























