Skip to content
Surf Wiki
Save to docs
general/computer-jargon

From Surf Wiki (app.surf) — the open knowledge base

Software archaeology

Study of legacy software implementations


Study of legacy software implementations

Software archaeology or source code archeology is the study of poorly documented or undocumented legacy software implementations, as part of software maintenance. Software archaeology, named by analogy with archaeology, includes the reverse engineering of software modules, and the application of a variety of tools and processes for extracting and understanding program structure and recovering design information. Software archaeology may reveal dysfunctional team processes which have produced poorly designed or even unused software modules, and in some cases deliberately obfuscatory code may be found. The term has been in use for decades.

Software archaeology has continued to be a topic of discussion at more recent software engineering conferences.

Techniques

A workshop on Software Archaeology at the 2001 OOPSLA (Object-Oriented Programming, Systems, Languages & Applications) conference identified the following software archaeology techniques, some of which are specific to object-oriented programming:

  • Scripting languages to build static reports and for filtering diagnostic output
  • Ongoing documentation in HTML pages or Wikis
  • Synoptic signature analysis, statistical analysis, and software visualization tools
  • Reverse-engineering tools
  • Operating-system-level tracing via truss or strace
  • Search engines and tools to search for keywords in source files
  • IDE file browsing
  • Unit testing frameworks such as JUnit and CppUnit
  • API documentation generation using tools such as Javadoc and Doxygen
  • Debuggers

More generally, Andy Hunt and Dave Thomas note the importance of version control, dependency management, text indexing tools such as GLIMPSE and SWISH-E, and "[drawing] a map as you begin exploring."

Like true archaeology, software archaeology involves investigative work to understand the thought processes of one's predecessors. At the OOPSLA workshop, Ward Cunningham suggested a synoptic signature analysis technique which gave an overall "feel" for a program by showing only punctuation, such as semicolons and curly braces. In the same vein, Cunningham has suggested viewing programs in 2 point font in order to understand the overall structure. Another technique identified at the workshop was the use of aspect-oriented programming tools such as AspectJ to systematically introduce tracing code without directly editing the legacy program.

Network and temporal analysis techniques can reveal the patterns of collaborative activity by the developers of legacy software, which in turn may shed light on the strengths and weaknesses of the software artifacts produced.

DataArchaeology Michael Rozlog of Embarcadero Technologies has described software archaeology as a six-step process which enables programmers to answer questions such as "What have I just inherited?" and "Where are the scary sections of the code?" These steps, similar to those identified by the OOPSLA workshop, include using visualization to obtain a visual representation of the program's design, using software metrics to look for design and style violations, using unit testing and profiling to look for bugs and performance bottlenecks, and assembling design information recovered by the process. Software archaeology can also be a service provided to programmers by external consultants.

References

References

  1. (2005). "An Empirical Approach to Software Archaeology". Poster Proceedings of the International Conference on Software Maintenance.
  2. Ambler, Scott W.. "Agile Legacy System Analysis and Integration Modeling". agilemodeling.com.
  3. Moyer, Bryon. (4 March 2009). "Software Archeology: Modernizing Old Systems". Embedded Technology Journal.
  4. (2008). "Eating the IT Elephant: Moving from greenfield development to brownfield". Addison-Wesley.
  5. (2009). "Beautiful Architecture". O'Reilly.
  6. Grass, Judith E.. (Winter 1992). "Object-Oriented Design Archaeology with CIA++". Computing Systems.
  7. (May 2010). "32nd ACM/IEEE International Conference on Software Engineering".
  8. (March–April 2002). "Software Archaeology". IEEE Software.
  9. Cunningham, Ward. (2001). "Signature Survey: A Method for Browsing Unfamiliar Code". Workshop Position Statement, Software Archeology: Understanding Large Systems, OOPSLA 2001.
  10. Cook, John D.. (10 November 2009). "Software Archeology". The Endeavour.
  11. (2005). "Proceedings of the 2005 International ACM SIGGROUP Conference on Supporting Group Work".
  12. Rozlog, Michael. (28 January 2008). "Software Archeology: What Is It and Why Should Java Developers Care?". java.sys-con.com.
  13. Sharwood, Simon. (3 November 2004). "Raiders of the Lost Code". [[ZDNet]].
  14. Rees, Gareth. (2013-06-12). "Software archaeology and technical debt".
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Software archaeology — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report