SlideShare a Scribd company logo
ALIGNING DEVELOPMENT
TOOLS WITH THE WAY
PROGRAMMERS THINK
ABOUT CODE CHANGES
Presentation type: paper review
Class: CS 584 – Human Aspects of Programming Languages
Presenter: Sergii Shmarkatiuk
Date: 10/15/2013
MOTIVATION

Developers need to perform many similar
source code editing operations that could
be grouped and executed at once

2
MOTIVATION

But there is no suitable tool that would
allow to do that in an intuitive, consistent
and error-free manner

3
EXISTING APPROACHES
 Text-based



Regular expressions
SED + AWK

 IDE



tools

based tools

Standard ‘search and replace’ functionality
Refactoring features

 Structure-based

source code manipulation
tools (abstract syntax tree visualization)




A*
TAWK
Stratego/XT

4
DISADVANTAGES OF EXISTING
APPROACHES
Regular expressions Difficult to read and
understand
Powerful, but even more
 SED + AWK
difficult to read and understand








IDE-based
refactoring

Does not allow to create custom
transformations

IDE-based ‘search
and replace’

Treats source code as a flat,
structureless text

AST-based tools

Difficult to understand

5
PROPOSED SOLUTION

Design and implementation of visual tool
based on following principles:
Combination of textual and graphical elements
 From-example construction and iterative
refinement approach (based on edit-by-example
principle)
 Intuitive representation, which naturally fits into
the programmers’ perception of the source code
 Assisting developers with creating and
manipulating transformations
 Early errors detection and correction


6
EXAMPLE. STEP 1

7
EXAMPLE. STEP 2

8
EXAMPLE. STEP 3

9
EXAMPLE. STEP 4

10
EXAMPLE. STEP 5

11
METHODOLOGY
Clear definition of goal (source code transformations
generation) and target audience (experienced Javadevelopers)
 Prototype implementation
 3 iterations of prototype verification based on
compliance with Cognitive Dimensions
 Empirical study with few target audience
representatives








Pre-study interview
Training session
Code-editing task
Post-study interview based on Cognitive Dimensions
questionnaire optimized for users
Evaluation of study results using Cognitive Dimensions
framework

12
COMPARISON WITH ANOTHER
EXISTING SOLUTION

RegExp-based ‘search and replace’ in IDEs and
popular text editors
Advantages

Works by default in
Eclipse, IntelliJ IDEA,
NetBeans, Visual
Studio, Notepad++,
SciTE, UltraEdit, …
 Language-agnostic
approach
 Powerful and flexible
 Possibility of rollback


Disadvantages

Regular expressions
are difficult to read
and understand
 Special syntax for
matches reference
 Different
implementations in
different tools


13
SHORT DEMO
14
INSIGHT/IDEA

Two approaches could be integrated
1. Apply edit-by-example principle to generate
RegExp
var1 & var2

to regexp

(w*) & (w*)

2. Add functionality for handling RegExp block
references
firstMatch

secondMatch

(w*) & (w*)

transformation

firstMatch secondMatch

~(~1 | ~2)

15
INSIGHTS/IDEAS

FOR MY PROJECT

 Application

of similar methodology
 Combination of textual, graphic and UI
elements
 Study of target users’ perception/intuition
 Application of Cognitive Dimensions
framework
 Extension of edit-by-example approach

16
QUESTION GROUPS

Evaluation

Regular
expressions

End-user
mindset

Experts vs nonexperienced
programmers

Real source
maintenance
concerns

Other

17
QUESTIONS:

EVALUATION

Zhang, Chaoqiang: I am a little bit surprised that the
evaluation part of this part only has treatment group and
no control group. In my mind, if they could have another
group to use sed utility(maybe give them a little bit
training) and see if they could finish the task better, and
the comparison of these two groups maybe make the
evaluation more convincing
Mihai Codoban: The evaluation does not compare how
much better iXj is in comparison to existing techniques
(refactorings, “errors as todos”, etc). Does this disqualify
the authors’ statements that iXj is easier, faster and more
intuitive than current approaches? Is it just a fancy
language aware regular expression editor?

18
QUESTIONS: REGULAR EXPRESSIONS




Zhang, Chaoqiang: I am sort of concerned
about this language's expressive power. Can it
generally express any regular expression? If it is
not, maybe expert programmers (the target users
of this language) would prefer polishing their
regular expression skill to learning this tool?
Michael Mendes: Do you think future versions
of this tool should be IDE-independent, and why?

19
QUESTIONS:




END-USER MINDSET

Jun Xie: In the paper, there is one statement: This
design allows programmers to perform directmanipulation of a representation that aligns well
with their mental model of source code. What is the
programmers' mental model of source code?
Michael Slater: I looked through this paper and
couldn't find any listing of the programmers' mental
models that were used to compare to the
representations of the tool. I could see the basic Java
code structure in the paper, but that was it. Is this
paper claiming that programmers think of their
software only in terms of the structures Java offers?
Can we legitimately claim anything regarding
programmers' mental models when the programmers
didn't know the source code used in the study?

20
QUESTIONS:

EXPERTS VS NON-

EXPERTS





Catharina Vijay: How could iXj help people less
experienced at code maintenance?
Wojtek Rajski: I understand that iXj has experts in
mind. But novice programmers will sometimes realize
during the build process that they have to change
how a fundamental part of the code works. How
would the requirements for CDs change for
intermediate level programmers?
Krishna Pratik: I believe expert programmers would
not be good participants as they might
unintentionally portray using the tool as being too
simple to use for code transformations. To better test
the utility of the application, shouldn't the study be
conducted by novice-middle experienced
programmers?

21
QUESTIONS:

OTHER

William Jernigan: What can we do as study
designers to avoid situations where participants
may diverge from the expected behavior like
Boshernitsan et al experience, cited in the
Metrics section where the authors say: “two
participants decided to perform several
transformations that were not on the list,
because they ‘seemed appropriate.” ?
 William Jernigan: In the beginning stages of
the design process, Boshernitsan et al studied
development/change logs for TEX, XEmacs, and a
transcript from Martin and Koss. How specific
are these change logs to the design they wanted
to achieve? How do we determine what to review
and study when creating a design besides the
specific user for whom we are designing?


22
Ad

Recommended

CS519 - Visual Software Evolution Reconstruction
CS519 - Visual Software Evolution Reconstruction
Sergii Shmarkatiuk
 
Continuous integration for se group meeting
Continuous integration for se group meeting
Sergii Shmarkatiuk
 
Software Analysis using Natural Language Queries
Software Analysis using Natural Language Queries
Pooja Rani
 
Let linguistics guide software analysis
Let linguistics guide software analysis
Pooja Rani
 
CS519 - Cloud Twin: Native Execution of Android Applications on the Windows P...
CS519 - Cloud Twin: Native Execution of Android Applications on the Windows P...
Sergii Shmarkatiuk
 
Reducing Technical Debt
Reducing Technical Debt
Hayim Makabee
 
The Role of the Software Architect (short version)
The Role of the Software Architect (short version)
Hayim Makabee
 
Comment soup with a pinch of types, served in a leaky bowl
Comment soup with a pinch of types, served in a leaky bowl
Pharo
 
Six Steps to Conversation Driven Development
Six Steps to Conversation Driven Development
Rasa Technologies
 
Software Design
Software Design
Ahmed Misbah
 
Professional Software Development, Practices and Ethics
Professional Software Development, Practices and Ethics
Lemi Orhan Ergin
 
Is your code SOLID enough?
Is your code SOLID enough?
SARCCOM
 
Interactive Development Environments
Interactive Development Environments
Philip Johnson
 
Jenkins User Conference: Building Your Continuous Delivery Toolkit
Jenkins User Conference: Building Your Continuous Delivery Toolkit
XebiaLabs
 
Slides for Houston iPhone Developers' Meetup (April 2012)
Slides for Houston iPhone Developers' Meetup (April 2012)
lqi
 
Agile Software Development and DevOps 21092019
Agile Software Development and DevOps 21092019
Ahmed Misbah
 
Software Engineering Fundamentals - Svetlin Nakov
Software Engineering Fundamentals - Svetlin Nakov
Svetlin Nakov
 
Agile archiecture iltam 2014
Agile archiecture iltam 2014
Dani Mannes
 
What Do Developers Discuss about Code Comments?
What Do Developers Discuss about Code Comments?
Pooja Rani
 
Web UI testing using Ruby,Watir and Cucumber with BDD technique
Web UI testing using Ruby,Watir and Cucumber with BDD technique
arpith pathange
 
Software Design patterns on Android English
Software Design patterns on Android English
Pedro Vicente Gómez Sánchez
 
Rasa Open Source - What's next?
Rasa Open Source - What's next?
Rasa Technologies
 
Codesmells for AspectJ
Codesmells for AspectJ
Sander Mak (@Sander_Mak)
 
Software Craftsmanship VS Software Engineering
Software Craftsmanship VS Software Engineering
Andy Maleh
 
Expertise in Software Development
Expertise in Software Development
QAware GmbH
 
Hira Xp
Hira Xp
Federal Urdu University
 
Behavior Driven Development with AngularJS & Jasmine
Behavior Driven Development with AngularJS & Jasmine
Remus Langu
 
Documenting code yapceu2016
Documenting code yapceu2016
Søren Lund
 
1.0 about software configuration management trainings
1.0 about software configuration management trainings
Sergii Shmarkatiuk
 
1.1 introduction to scm - xp and cm are chicken-and-egg
1.1 introduction to scm - xp and cm are chicken-and-egg
Sergii Shmarkatiuk
 

More Related Content

What's hot (20)

Six Steps to Conversation Driven Development
Six Steps to Conversation Driven Development
Rasa Technologies
 
Software Design
Software Design
Ahmed Misbah
 
Professional Software Development, Practices and Ethics
Professional Software Development, Practices and Ethics
Lemi Orhan Ergin
 
Is your code SOLID enough?
Is your code SOLID enough?
SARCCOM
 
Interactive Development Environments
Interactive Development Environments
Philip Johnson
 
Jenkins User Conference: Building Your Continuous Delivery Toolkit
Jenkins User Conference: Building Your Continuous Delivery Toolkit
XebiaLabs
 
Slides for Houston iPhone Developers' Meetup (April 2012)
Slides for Houston iPhone Developers' Meetup (April 2012)
lqi
 
Agile Software Development and DevOps 21092019
Agile Software Development and DevOps 21092019
Ahmed Misbah
 
Software Engineering Fundamentals - Svetlin Nakov
Software Engineering Fundamentals - Svetlin Nakov
Svetlin Nakov
 
Agile archiecture iltam 2014
Agile archiecture iltam 2014
Dani Mannes
 
What Do Developers Discuss about Code Comments?
What Do Developers Discuss about Code Comments?
Pooja Rani
 
Web UI testing using Ruby,Watir and Cucumber with BDD technique
Web UI testing using Ruby,Watir and Cucumber with BDD technique
arpith pathange
 
Software Design patterns on Android English
Software Design patterns on Android English
Pedro Vicente Gómez Sánchez
 
Rasa Open Source - What's next?
Rasa Open Source - What's next?
Rasa Technologies
 
Codesmells for AspectJ
Codesmells for AspectJ
Sander Mak (@Sander_Mak)
 
Software Craftsmanship VS Software Engineering
Software Craftsmanship VS Software Engineering
Andy Maleh
 
Expertise in Software Development
Expertise in Software Development
QAware GmbH
 
Hira Xp
Hira Xp
Federal Urdu University
 
Behavior Driven Development with AngularJS & Jasmine
Behavior Driven Development with AngularJS & Jasmine
Remus Langu
 
Documenting code yapceu2016
Documenting code yapceu2016
Søren Lund
 
Six Steps to Conversation Driven Development
Six Steps to Conversation Driven Development
Rasa Technologies
 
Professional Software Development, Practices and Ethics
Professional Software Development, Practices and Ethics
Lemi Orhan Ergin
 
Is your code SOLID enough?
Is your code SOLID enough?
SARCCOM
 
Interactive Development Environments
Interactive Development Environments
Philip Johnson
 
Jenkins User Conference: Building Your Continuous Delivery Toolkit
Jenkins User Conference: Building Your Continuous Delivery Toolkit
XebiaLabs
 
Slides for Houston iPhone Developers' Meetup (April 2012)
Slides for Houston iPhone Developers' Meetup (April 2012)
lqi
 
Agile Software Development and DevOps 21092019
Agile Software Development and DevOps 21092019
Ahmed Misbah
 
Software Engineering Fundamentals - Svetlin Nakov
Software Engineering Fundamentals - Svetlin Nakov
Svetlin Nakov
 
Agile archiecture iltam 2014
Agile archiecture iltam 2014
Dani Mannes
 
What Do Developers Discuss about Code Comments?
What Do Developers Discuss about Code Comments?
Pooja Rani
 
Web UI testing using Ruby,Watir and Cucumber with BDD technique
Web UI testing using Ruby,Watir and Cucumber with BDD technique
arpith pathange
 
Rasa Open Source - What's next?
Rasa Open Source - What's next?
Rasa Technologies
 
Software Craftsmanship VS Software Engineering
Software Craftsmanship VS Software Engineering
Andy Maleh
 
Expertise in Software Development
Expertise in Software Development
QAware GmbH
 
Behavior Driven Development with AngularJS & Jasmine
Behavior Driven Development with AngularJS & Jasmine
Remus Langu
 
Documenting code yapceu2016
Documenting code yapceu2016
Søren Lund
 

Viewers also liked (20)

1.0 about software configuration management trainings
1.0 about software configuration management trainings
Sergii Shmarkatiuk
 
1.1 introduction to scm - xp and cm are chicken-and-egg
1.1 introduction to scm - xp and cm are chicken-and-egg
Sergii Shmarkatiuk
 
Software version numbering - DSL of change
Software version numbering - DSL of change
Sergii Shmarkatiuk
 
CS589 paper presentation - What is in unison? A formal specification and refe...
CS589 paper presentation - What is in unison? A formal specification and refe...
Sergii Shmarkatiuk
 
05 - Merge Management
05 - Merge Management
Sergii Shmarkatiuk
 
Software Configuration Management
Software Configuration Management
Bill Thayer
 
Software Configuration Management
Software Configuration Management
Virendra Thakur
 
Configuration Management
Configuration Management
elliando dias
 
Process Improvement for better Software Technical Quality under Global Crisis...
Process Improvement for better Software Technical Quality under Global Crisis...
Optimyth Software
 
Internet of things for the “smart home”
Internet of things for the “smart home”
Virendra Thakur
 
Software Configuration Management
Software Configuration Management
Choucair testing S.A.
 
03 - Continuous Integration
03 - Continuous Integration
Sergii Shmarkatiuk
 
01 - Introduction to Version Control
01 - Introduction to Version Control
Sergii Shmarkatiuk
 
02 - Build and Deployment Management
02 - Build and Deployment Management
Sergii Shmarkatiuk
 
Ch 8 configuration management
Ch 8 configuration management
Kittitouch Suteeca
 
Configuration Management
Configuration Management
sslovepk
 
Software configuration management
Software configuration management
fizamustanser
 
Ch 7 integrating quality activities in the projectlife cycle
Ch 7 integrating quality activities in the projectlife cycle
Kittitouch Suteeca
 
Configuration Management in Software Engineering - SE29
Configuration Management in Software Engineering - SE29
koolkampus
 
Software Configuration Management (SCM)
Software Configuration Management (SCM)
Nishkarsh Gupta
 
1.0 about software configuration management trainings
1.0 about software configuration management trainings
Sergii Shmarkatiuk
 
1.1 introduction to scm - xp and cm are chicken-and-egg
1.1 introduction to scm - xp and cm are chicken-and-egg
Sergii Shmarkatiuk
 
Software version numbering - DSL of change
Software version numbering - DSL of change
Sergii Shmarkatiuk
 
CS589 paper presentation - What is in unison? A formal specification and refe...
CS589 paper presentation - What is in unison? A formal specification and refe...
Sergii Shmarkatiuk
 
Software Configuration Management
Software Configuration Management
Bill Thayer
 
Software Configuration Management
Software Configuration Management
Virendra Thakur
 
Configuration Management
Configuration Management
elliando dias
 
Process Improvement for better Software Technical Quality under Global Crisis...
Process Improvement for better Software Technical Quality under Global Crisis...
Optimyth Software
 
Internet of things for the “smart home”
Internet of things for the “smart home”
Virendra Thakur
 
01 - Introduction to Version Control
01 - Introduction to Version Control
Sergii Shmarkatiuk
 
02 - Build and Deployment Management
02 - Build and Deployment Management
Sergii Shmarkatiuk
 
Configuration Management
Configuration Management
sslovepk
 
Software configuration management
Software configuration management
fizamustanser
 
Ch 7 integrating quality activities in the projectlife cycle
Ch 7 integrating quality activities in the projectlife cycle
Kittitouch Suteeca
 
Configuration Management in Software Engineering - SE29
Configuration Management in Software Engineering - SE29
koolkampus
 
Software Configuration Management (SCM)
Software Configuration Management (SCM)
Nishkarsh Gupta
 
Ad

Similar to CS 584 - Aligning development tools with the way programmers think about code changes (20)

API Workshop: Deep dive into code samples
API Workshop: Deep dive into code samples
Tom Johnson
 
Generation of Automatic Code using Design Patterns
Generation of Automatic Code using Design Patterns
IRJET Journal
 
Introduction to Behavior Driven Development
Introduction to Behavior Driven Development
Robin O'Brien
 
Emerging trends, tools and techniques in mobile2
Emerging trends, tools and techniques in mobile2
Shimmy88
 
Emerging trends, tools and techniques in mobile
Emerging trends, tools and techniques in mobile
Shimmy88
 
A New Software Engineeering Approach
A New Software Engineeering Approach
Arunit Gupta
 
CucumberSeleniumWD
CucumberSeleniumWD
Vikas Sarin
 
REQUIREMENTS FOR PERSONAL KNOWLEDGE MANAGEMENT TOOLS
REQUIREMENTS FOR PERSONAL KNOWLEDGE MANAGEMENT TOOLS
Max Völkel
 
04 designing architectures
04 designing architectures
Majong DevJfu
 
Code Craftsmanship Checklist
Code Craftsmanship Checklist
Ryan Polk
 
Writing code samples for API/SDK documentation
Writing code samples for API/SDK documentation
Tom Johnson
 
Maheroo_C_14094229_Report
Maheroo_C_14094229_Report
Charanjit Maheroo
 
Code Review
Code Review
Ravi Raj
 
Software Engineering Book for beginnerss
Software Engineering Book for beginnerss
JavedKhan524377
 
3.o o design -_____________lecture 3
3.o o design -_____________lecture 3
Warui Maina
 
7a Good Programming Practice.pptx
7a Good Programming Practice.pptx
DylanTilbury1
 
Contemporary Software Engineering Practices Together With Enterprise
Contemporary Software Engineering Practices Together With Enterprise
Kenan Sevindik
 
Dtacs
Dtacs
guest235dbf3f
 
inernship ppt.ppt
inernship ppt.ppt
HarshitRao24
 
Requirementv4
Requirementv4
stat
 
API Workshop: Deep dive into code samples
API Workshop: Deep dive into code samples
Tom Johnson
 
Generation of Automatic Code using Design Patterns
Generation of Automatic Code using Design Patterns
IRJET Journal
 
Introduction to Behavior Driven Development
Introduction to Behavior Driven Development
Robin O'Brien
 
Emerging trends, tools and techniques in mobile2
Emerging trends, tools and techniques in mobile2
Shimmy88
 
Emerging trends, tools and techniques in mobile
Emerging trends, tools and techniques in mobile
Shimmy88
 
A New Software Engineeering Approach
A New Software Engineeering Approach
Arunit Gupta
 
CucumberSeleniumWD
CucumberSeleniumWD
Vikas Sarin
 
REQUIREMENTS FOR PERSONAL KNOWLEDGE MANAGEMENT TOOLS
REQUIREMENTS FOR PERSONAL KNOWLEDGE MANAGEMENT TOOLS
Max Völkel
 
04 designing architectures
04 designing architectures
Majong DevJfu
 
Code Craftsmanship Checklist
Code Craftsmanship Checklist
Ryan Polk
 
Writing code samples for API/SDK documentation
Writing code samples for API/SDK documentation
Tom Johnson
 
Code Review
Code Review
Ravi Raj
 
Software Engineering Book for beginnerss
Software Engineering Book for beginnerss
JavedKhan524377
 
3.o o design -_____________lecture 3
3.o o design -_____________lecture 3
Warui Maina
 
7a Good Programming Practice.pptx
7a Good Programming Practice.pptx
DylanTilbury1
 
Contemporary Software Engineering Practices Together With Enterprise
Contemporary Software Engineering Practices Together With Enterprise
Kenan Sevindik
 
Requirementv4
Requirementv4
stat
 
Ad

More from Sergii Shmarkatiuk (10)

CS519 - homework project presentation
CS519 - homework project presentation
Sergii Shmarkatiuk
 
CS519 - project idea presentation
CS519 - project idea presentation
Sergii Shmarkatiuk
 
CS519 - Cloud Types for Eventual Consistency
CS519 - Cloud Types for Eventual Consistency
Sergii Shmarkatiuk
 
1.2 introduction to scm - what does version number tell us
1.2 introduction to scm - what does version number tell us
Sergii Shmarkatiuk
 
04 - Agile Software Configuration Management
04 - Agile Software Configuration Management
Sergii Shmarkatiuk
 
Breath of life
Breath of life
Sergii Shmarkatiuk
 
Agile software configuration management
Agile software configuration management
Sergii Shmarkatiuk
 
управление сборками и развертыванием веб приложений
управление сборками и развертыванием веб приложений
Sergii Shmarkatiuk
 
Организуй свой репозиторий
Организуй свой репозиторий
Sergii Shmarkatiuk
 
метод организации репозитория исходного кода
метод организации репозитория исходного кода
Sergii Shmarkatiuk
 
CS519 - homework project presentation
CS519 - homework project presentation
Sergii Shmarkatiuk
 
CS519 - project idea presentation
CS519 - project idea presentation
Sergii Shmarkatiuk
 
CS519 - Cloud Types for Eventual Consistency
CS519 - Cloud Types for Eventual Consistency
Sergii Shmarkatiuk
 
1.2 introduction to scm - what does version number tell us
1.2 introduction to scm - what does version number tell us
Sergii Shmarkatiuk
 
04 - Agile Software Configuration Management
04 - Agile Software Configuration Management
Sergii Shmarkatiuk
 
Agile software configuration management
Agile software configuration management
Sergii Shmarkatiuk
 
управление сборками и развертыванием веб приложений
управление сборками и развертыванием веб приложений
Sergii Shmarkatiuk
 
Организуй свой репозиторий
Организуй свой репозиторий
Sergii Shmarkatiuk
 
метод организации репозитория исходного кода
метод организации репозитория исходного кода
Sergii Shmarkatiuk
 

Recently uploaded (20)

Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Impelsys Inc.
 
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
Safe Software
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
The Future of AI Agent Development Trends to Watch.pptx
The Future of AI Agent Development Trends to Watch.pptx
Lisa ward
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
Edge AI and Vision Alliance
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Impelsys Inc.
 
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
Safe Software
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
The Future of AI Agent Development Trends to Watch.pptx
The Future of AI Agent Development Trends to Watch.pptx
Lisa ward
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
Edge AI and Vision Alliance
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 

CS 584 - Aligning development tools with the way programmers think about code changes

  • 1. ALIGNING DEVELOPMENT TOOLS WITH THE WAY PROGRAMMERS THINK ABOUT CODE CHANGES Presentation type: paper review Class: CS 584 – Human Aspects of Programming Languages Presenter: Sergii Shmarkatiuk Date: 10/15/2013
  • 2. MOTIVATION Developers need to perform many similar source code editing operations that could be grouped and executed at once 2
  • 3. MOTIVATION But there is no suitable tool that would allow to do that in an intuitive, consistent and error-free manner 3
  • 4. EXISTING APPROACHES  Text-based   Regular expressions SED + AWK  IDE   tools based tools Standard ‘search and replace’ functionality Refactoring features  Structure-based source code manipulation tools (abstract syntax tree visualization)    A* TAWK Stratego/XT 4
  • 5. DISADVANTAGES OF EXISTING APPROACHES Regular expressions Difficult to read and understand Powerful, but even more  SED + AWK difficult to read and understand     IDE-based refactoring Does not allow to create custom transformations IDE-based ‘search and replace’ Treats source code as a flat, structureless text AST-based tools Difficult to understand 5
  • 6. PROPOSED SOLUTION Design and implementation of visual tool based on following principles: Combination of textual and graphical elements  From-example construction and iterative refinement approach (based on edit-by-example principle)  Intuitive representation, which naturally fits into the programmers’ perception of the source code  Assisting developers with creating and manipulating transformations  Early errors detection and correction  6
  • 12. METHODOLOGY Clear definition of goal (source code transformations generation) and target audience (experienced Javadevelopers)  Prototype implementation  3 iterations of prototype verification based on compliance with Cognitive Dimensions  Empirical study with few target audience representatives       Pre-study interview Training session Code-editing task Post-study interview based on Cognitive Dimensions questionnaire optimized for users Evaluation of study results using Cognitive Dimensions framework 12
  • 13. COMPARISON WITH ANOTHER EXISTING SOLUTION RegExp-based ‘search and replace’ in IDEs and popular text editors Advantages Works by default in Eclipse, IntelliJ IDEA, NetBeans, Visual Studio, Notepad++, SciTE, UltraEdit, …  Language-agnostic approach  Powerful and flexible  Possibility of rollback  Disadvantages Regular expressions are difficult to read and understand  Special syntax for matches reference  Different implementations in different tools  13
  • 15. INSIGHT/IDEA Two approaches could be integrated 1. Apply edit-by-example principle to generate RegExp var1 & var2 to regexp (w*) & (w*) 2. Add functionality for handling RegExp block references firstMatch secondMatch (w*) & (w*) transformation firstMatch secondMatch ~(~1 | ~2) 15
  • 16. INSIGHTS/IDEAS FOR MY PROJECT  Application of similar methodology  Combination of textual, graphic and UI elements  Study of target users’ perception/intuition  Application of Cognitive Dimensions framework  Extension of edit-by-example approach 16
  • 17. QUESTION GROUPS Evaluation Regular expressions End-user mindset Experts vs nonexperienced programmers Real source maintenance concerns Other 17
  • 18. QUESTIONS: EVALUATION Zhang, Chaoqiang: I am a little bit surprised that the evaluation part of this part only has treatment group and no control group. In my mind, if they could have another group to use sed utility(maybe give them a little bit training) and see if they could finish the task better, and the comparison of these two groups maybe make the evaluation more convincing Mihai Codoban: The evaluation does not compare how much better iXj is in comparison to existing techniques (refactorings, “errors as todos”, etc). Does this disqualify the authors’ statements that iXj is easier, faster and more intuitive than current approaches? Is it just a fancy language aware regular expression editor? 18
  • 19. QUESTIONS: REGULAR EXPRESSIONS   Zhang, Chaoqiang: I am sort of concerned about this language's expressive power. Can it generally express any regular expression? If it is not, maybe expert programmers (the target users of this language) would prefer polishing their regular expression skill to learning this tool? Michael Mendes: Do you think future versions of this tool should be IDE-independent, and why? 19
  • 20. QUESTIONS:   END-USER MINDSET Jun Xie: In the paper, there is one statement: This design allows programmers to perform directmanipulation of a representation that aligns well with their mental model of source code. What is the programmers' mental model of source code? Michael Slater: I looked through this paper and couldn't find any listing of the programmers' mental models that were used to compare to the representations of the tool. I could see the basic Java code structure in the paper, but that was it. Is this paper claiming that programmers think of their software only in terms of the structures Java offers? Can we legitimately claim anything regarding programmers' mental models when the programmers didn't know the source code used in the study? 20
  • 21. QUESTIONS: EXPERTS VS NON- EXPERTS    Catharina Vijay: How could iXj help people less experienced at code maintenance? Wojtek Rajski: I understand that iXj has experts in mind. But novice programmers will sometimes realize during the build process that they have to change how a fundamental part of the code works. How would the requirements for CDs change for intermediate level programmers? Krishna Pratik: I believe expert programmers would not be good participants as they might unintentionally portray using the tool as being too simple to use for code transformations. To better test the utility of the application, shouldn't the study be conducted by novice-middle experienced programmers? 21
  • 22. QUESTIONS: OTHER William Jernigan: What can we do as study designers to avoid situations where participants may diverge from the expected behavior like Boshernitsan et al experience, cited in the Metrics section where the authors say: “two participants decided to perform several transformations that were not on the list, because they ‘seemed appropriate.” ?  William Jernigan: In the beginning stages of the design process, Boshernitsan et al studied development/change logs for TEX, XEmacs, and a transcript from Martin and Koss. How specific are these change logs to the design they wanted to achieve? How do we determine what to review and study when creating a design besides the specific user for whom we are designing?  22