Close
  • Latest News
  • Artificial Intelligence
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Logo
  • Latest News
  • Artificial Intelligence
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Home Development
    • Development

    Re-Factoring Isnt a Cure-All

    By
    Peter Coffee
    -
    April 15, 2002
    Share
    Facebook
    Twitter
    Linkedin

      Over its lifetime, software often falls into a vicious circle: Enhancements make the code more difficult to understand, increasing the likelihood of errors—including errors in the changes meant to repair the previous generation of bugs. Continue until collapse.

      Containing this software entropy is the mission of re-factoring, the practice of continually seeking out redundancy, identifying poorly located data or functionality, and transforming code in ways that do not change its function but increase its understandability.

      “Re-factor mercilessly,” commands consultant Ron Jeffries, editor of an extreme programming Web site (www.xprogramming.com). “When you find two methods that look the same, you re-factor the code to combine them. When you find two objects with common functionality, you re-factor to make there be just one.”

      Considered apart from other practices, re-factoring could sound like a cure that perpetuates the disease. It might seem that re-factoring tries to mitigate the risks of necessary change by looking for ways to make merely cosmetic changes. Like the diet without exercise, re-factoring alone will produce disappointing or even counterproductive results.

      Re-factoring must be combined with other extreme programming practices that include continuous testing and integration (nothing that breaks the code ever gets beyond the daily build) and simple design (never deploying code that does more than is needed today).

      Extreme programming doesnt try to forestall software change by anticipating future needs; rather, it treats changing needs as a certainty and tries to reduce software update costs by mandating reliable processes.

      Developers will do well to perform their re-factoring with the aid of high-level tools, such as Rational Software Corp.s Rational XDE and TogetherSoft Corp.s ControlCenter, and supportive programming environments. Smalltalk programmers, for example, take for granted the ability to find all senders of any given method, easing the task of redirecting those messages to a new method that re-factors one or more others.

      But re-factoring tools cant completely automate a simple mechanical process. There are similarities that are inherent and candidates for re-factoring, but there are other cases where consolidation might impede refinement of separate features.

      Nor can re-factoring repair an organizational problem. If a company has a dozen Web sites, there are probably corresponding divisions among the business units. Those will have to be addressed before re-factoring can do its job.

      Technology Editor Peter Coffee can be contacted at peter_coffee@ziffdavis.com.

      Peter Coffee
      Peter Coffee is Director of Platform Research at salesforce.com, where he serves as a liaison with the developer community to define the opportunity and clarify developers' technical requirements on the company's evolving Apex Platform. Peter previously spent 18 years with eWEEK (formerly PC Week), the national news magazine of enterprise technology practice, where he reviewed software development tools and methods and wrote regular columns on emerging technologies and professional community issues.Before he began writing full-time in 1989, Peter spent eleven years in technical and management positions at Exxon and The Aerospace Corporation, including management of the latter company's first desktop computing planning team and applied research in applications of artificial intelligence techniques. He holds an engineering degree from MIT and an MBA from Pepperdine University, he has held teaching appointments in computer science, business analytics and information systems management at Pepperdine, UCLA, and Chapman College.
      Get the Free Newsletter!
      Subscribe to Daily Tech Insider for top news, trends & analysis
      This email address is invalid.
      Get the Free Newsletter!
      Subscribe to Daily Tech Insider for top news, trends & analysis
      This email address is invalid.

      MOST POPULAR ARTICLES

      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Applications

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Cloud

      IGEL CEO Jed Ayres on Edge and...

      James Maguire - June 14, 2022 0
      I spoke with Jed Ayres, CEO of IGEL, about the endpoint sector, and an open source OS for the cloud; we also spoke about...
      Read more
      IT Management

      Intuit’s Nhung Ho on AI for the...

      James Maguire - May 13, 2022 0
      I spoke with Nhung Ho, Vice President of AI at Intuit, about adoption of AI in the small and medium-sized business market, and how...
      Read more
      Applications

      Kyndryl’s Nicolas Sekkaki on Handling AI and...

      James Maguire - November 9, 2022 0
      I spoke with Nicolas Sekkaki, Group Practice Leader for Applications, Data and AI at Kyndryl, about how companies can boost both their AI and...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2022 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.

      ×