Software archaeology
Software archaeology or source code archeology is the study of poorly documented or undocumented legacy software implementations, as part of software maintenance.[1][2] Software archaeology, named by analogy with archaeology,[3] 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.[1][4] 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.[5] The term has been in use for decades.[6] Software archaeology has continued to be a topic of discussion at more recent software engineering conferences.[7]
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:[8]
- 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."[8]
Like true archaeology, software archaeology involves investigative work to understand the thought processes of one's predecessors.[8] 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.[9] In the same vein, Cunningham has suggested viewing programs in 2 point font in order to understand the overall structure.[10] 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.[8]
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.[11]
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?"[12] 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.[12] Software archaeology can also be a service provided to programmers by external consultants.[13]
In popular culture
The profession of "programmer–archaeologist" features prominently in Vernor Vinge's 1999 sci-fi novel A Deepness in the Sky. [14]
See also
- Software architecture recovery
- Code refactoring
- Retrocomputing
- Software brittleness
- Software rot
- Software entropy
- Abandonware
References
- ↑ 1.0 1.1 Robles, Gregorio; Gonzalez-Barahona, Jesus M.; Herraiz, Israel (2005). "An Empirical Approach to Software Archaeology". Poster Proceedings of the International Conference on Software Maintenance. http://herraiz.org/papers/english/icsm05short.pdf.
- ↑ Ambler, Scott W.. "Agile Legacy System Analysis and Integration Modeling". agilemodeling.com. http://www.agilemodeling.com/essays/agileLegacyIntegrationModeling.htm. "Without accurate documentation, or access to knowledgeable people, your last resort may be to analyze the source code for the legacy system... This effort is often referred to as software archaeology."
- ↑ Moyer, Bryon (4 March 2009). "Software Archeology: Modernizing Old Systems". Embedded Technology Journal. http://adm.omg.org/docs/Software_Archeology_4-Mar-2009.pdf.
- ↑ Hopkins, Richard; Jenkins, Kevin (2008). "5. The Mythical Metaman". Eating the IT Elephant: Moving from greenfield development to brownfield. Addison-Wesley. p. 93. ISBN 978-0-13-713012-2. https://books.google.com/books?id=GYvP0u2k2uMC&pg=PA93.
- ↑ Spinellis, Diomidis; Gousios, Georgios (2009). "2. A Tale of Two Systems § Lack of Cohesion". Beautiful Architecture. O'Reilly. p. 29. ISBN 978-0-596-51798-4. https://books.google.com/books?id=h34pwy005nYC&pg=PA29.
- ↑ An early discussion is Grass, Judith E. (Winter 1992). "Object-Oriented Design Archaeology with CIA++". Computing Systems 5 (1). http://www.usenix.org/publications/compsystems/1992/win_grass.pdf.
- ↑ For example, the "32nd ACM/IEEE International Conference on Software Engineering". May 2010. http://portal.acm.org/toc.cfm?id=1806799..
- ↑ 8.0 8.1 8.2 8.3 Hunt, Andy; Thomas, Dave (March–April 2002). "Software Archaeology". IEEE Software 19 (2): 20–22. doi:10.1109/52.991327. http://media.pragprog.com/articles/mar_02_archeology.pdf.
- ↑ Cunningham, Ward (2001). "Signature Survey: A Method for Browsing Unfamiliar Code". Workshop Position Statement, Software Archeology: Understanding Large Systems, OOPSLA 2001. http://c2.com/doc/SignatureSurvey/.
- ↑ Cook, John D. (10 November 2009). "Software Archeology". The Endeavour. http://www.johndcook.com/blog/2009/11/10/oftware-archeology/.
- ↑ de Souza, Cleidson; Froehlich, Jon; Dourish, Paul (2005). "Seeking the Source: Software Source Code as a Social and Technical Artifact". Proceedings of the 2005 International ACM SIGGROUP Conference on Supporting Group Work. pp. 197–206. doi:10.1145/1099203.1099239. ISBN 1595932232. http://www.dourish.com/publications/2005/DeSouzaFroehlichDourish-SeekingSource-GROUP.pdf.
- ↑ 12.0 12.1 Rozlog, Michael (28 January 2008). "Software Archeology: What Is It and Why Should Java Developers Care?". java.sys-con.com. http://java.sys-con.com/node/487614.
- ↑ Sharwood, Simon (3 November 2004). "Raiders of the Lost Code". ZDNet. http://www.zdnetasia.com/raiders-of-the-lost-code-39199788.htm.
- ↑ Rees, Gareth (2013-06-12). "Software archaeology and technical debt". http://garethrees.org/2013/06/12/archaeology/.
External links
- "Position papers". OOPSLA 2001 Workshop on Software Archeology: Understanding Large Systems. http://www.visibleworkings.com/archeology/position-papers.html.
- "Writing code, reading code and software archeology". Once More into the Code. Computerworld. 23 September 2009. http://blogs.computerworld.com/14787/writing_code_reading_code_and_software_archeology.
- Rozlog, Michael (13 March 2008). "How To Apply Software Archeology To Your Development Process". http://www.eclipsecon.org/2008/sub/attachments/How_to_apply_Software_Archeology_to_your_development_process.pdf.
- "OOPSLA 2008 Podcast with Grady Booch on software archaeology and related topics" (Podcast). 2008. Archived from the original on 2011-09-26.
Original source: https://en.wikipedia.org/wiki/Software archaeology.
Read more |