• DocumentCode
    2422048
  • Title

    Search by example in TouchDevelop: Code search made easy

  • Author

    Akhin, Marat ; Tillmann, Nikolai ; Fähndrich, Manuel ; De Halleux, Jonathan ; Moskal, Michal

  • Author_Institution
    St. Petersburg State Polytech. Univ., St. Petersburg, Russia
  • fYear
    2012
  • fDate
    5-5 June 2012
  • Firstpage
    5
  • Lastpage
    8
  • Abstract
    Code search has always been essential to software development; it is the cornerstone of activities such as program comprehension and maintenance. Traditionally, code search required learning of complex query languages with very steep learning curves. In contrast, programming environments for mobile devices targeting novice programmers are becoming popular and code search is becoming increasingly important. Yet, dedicated code query languages present a learning barrier for novice programmers. In this paper we consider “search-by-example” as a way of dealing with this problem. Given a query code snippet, we find all similar snippets in the codebase and present them to the user. This problem is a special instance of the clone detection problem, and, by using relevant techniques, we can perform precise code search with little to no configuration and completely agnostic of code formatting, variable renamings, etc. These properties make “search-by-example” very easy to use by inexperienced programmers. We built a prototype of our approach in TouchDevelop, a novel mobile app development environment for Windows Phone. We will use it as a testing ground for future evaluation.
  • Keywords
    information retrieval; mobile computing; mobile handsets; query languages; software maintenance; TouchDevelop; Windows phone; code formatting; code query languages; code search; complex query languages; learning curves; mobile app development environment; mobile devices; program comprehension; program maintenance; query code snippet; software development; Cloning; Programming; Search problems; Software; USA Councils; Vectors; Vegetation; clone detection; code search; mobile programming; novice developer;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Search-Driven Development - Users, Infrastructure, Tools and Evaluation (SUITE), 2012 ICSE Workshop on
  • Conference_Location
    Zurich
  • Print_ISBN
    978-1-4673-1847-1
  • Type

    conf

  • DOI
    10.1109/SUITE.2012.6225478
  • Filename
    6225478