SlideShare a Scribd company logo
1 of 22
Download to read offline
Effects of
Variable Names
on
Comprehension
An Empirical Study
Eran Avidan & Dror G Feitelson
Meaningful identifier names are important to comprehension
Full word identifiers lead to better comprehension
than identifiers composed of single letters
Well...not always
Empirical study
Research questions
What impact do identifier names have on the comprehension of what a
method does?
Which type of identifiers contribute more to comprehension, parameters or
local variables?
Controlled Experiment
8 Professional developers
6 Methods from popular open source utility packages
38 Sessions
22 Hours
The idea
The Results
Meaningful names lead to faster time to comprehension
Clear separation in time to comprehension
Time to comprehension
Bad names can mislead just as much as Good names inform
Misleading names (or types) are worse than meaningless
names like consecutive letters of the alphabet
Misleading how?
Use of names that are too abstract
Uncommon use of variable types
Use of synonyms
The apparent functionality does not make sense
Naming is subjective
In spontaneous word choice
Two people favor the same term with a probability of less than 0.2
The vocabulary problem in human-system communication
Parameters vs Locals
Parameters contribute more to comprehension
Our contributions to the field
Quantify the effect of meaningful names in an experimentally valid manner
Show that naming is subjective, and bad names are not uncommon
Identify parameters as more important than local variables
Demonstrate the use of experiments with dynamic treatments
exit(0)

More Related Content

Similar to ICPC 2017 - Effects of Variable Names on Comprehension: An Empirical Study

Automated Language Assessment Scoring and impact on instruction
Automated Language Assessment Scoring and impact on instructionAutomated Language Assessment Scoring and impact on instruction
Automated Language Assessment Scoring and impact on instructiontfarny
 
Exploring the roots of rigor: Exploring a methodology for analyzing the conce...
Exploring the roots of rigor: Exploring a methodology for analyzing the conce...Exploring the roots of rigor: Exploring a methodology for analyzing the conce...
Exploring the roots of rigor: Exploring a methodology for analyzing the conce...Meena Kharatmal
 
Information Highlighting
Information HighlightingInformation Highlighting
Information HighlightingTim Ostler
 
Word Analysis And Fluency
Word Analysis And FluencyWord Analysis And Fluency
Word Analysis And FluencyHonor Moorman
 
Better Questions, Better Results!
Better Questions, Better Results!Better Questions, Better Results!
Better Questions, Better Results!Angela Peery
 
Chapter 4 presentation
Chapter 4 presentationChapter 4 presentation
Chapter 4 presentationculman
 
Vocabulary and comprehension techniques powerpoint presentation v2
Vocabulary and comprehension techniques powerpoint presentation v2Vocabulary and comprehension techniques powerpoint presentation v2
Vocabulary and comprehension techniques powerpoint presentation v2Marcia Luptak
 
Guidelines in writing items for noncognitive measures
Guidelines in writing items for noncognitive measuresGuidelines in writing items for noncognitive measures
Guidelines in writing items for noncognitive measuresCarlo Magno
 
Thinking and Language
Thinking and LanguageThinking and Language
Thinking and Languagelorilynw
 
Themes identification techniques in qualitative research
Themes identification techniques in qualitative researchThemes identification techniques in qualitative research
Themes identification techniques in qualitative researchGhulam Qambar
 
PersonalQualitativeResearchStudy
PersonalQualitativeResearchStudyPersonalQualitativeResearchStudy
PersonalQualitativeResearchStudyCandice Garnes
 
Testing Listening and Reading
Testing Listening and ReadingTesting Listening and Reading
Testing Listening and ReadingSamcruz5
 
The Rhetorical Web Revised
The Rhetorical Web RevisedThe Rhetorical Web Revised
The Rhetorical Web RevisedCSchnCam
 
Testing Vocabulary
Testing VocabularyTesting Vocabulary
Testing Vocabularysongoten77
 
Heres-What-Personality-Sounds-Like
Heres-What-Personality-Sounds-LikeHeres-What-Personality-Sounds-Like
Heres-What-Personality-Sounds-LikeMarcel Korst
 
Big Five/HPTI and Cognitive ability AND High potential personality
Big Five/HPTI and Cognitive ability AND High potential personalityBig Five/HPTI and Cognitive ability AND High potential personality
Big Five/HPTI and Cognitive ability AND High potential personalityCol Mukteshwar Prasad
 

Similar to ICPC 2017 - Effects of Variable Names on Comprehension: An Empirical Study (20)

Automated Language Assessment Scoring and impact on instruction
Automated Language Assessment Scoring and impact on instructionAutomated Language Assessment Scoring and impact on instruction
Automated Language Assessment Scoring and impact on instruction
 
Exploring the roots of rigor: Exploring a methodology for analyzing the conce...
Exploring the roots of rigor: Exploring a methodology for analyzing the conce...Exploring the roots of rigor: Exploring a methodology for analyzing the conce...
Exploring the roots of rigor: Exploring a methodology for analyzing the conce...
 
Information Highlighting
Information HighlightingInformation Highlighting
Information Highlighting
 
Word Analysis And Fluency
Word Analysis And FluencyWord Analysis And Fluency
Word Analysis And Fluency
 
Prof Prax 2007
Prof Prax 2007Prof Prax 2007
Prof Prax 2007
 
Better Questions, Better Results!
Better Questions, Better Results!Better Questions, Better Results!
Better Questions, Better Results!
 
Chapter 4 presentation
Chapter 4 presentationChapter 4 presentation
Chapter 4 presentation
 
Vocabulary and comprehension techniques powerpoint presentation v2
Vocabulary and comprehension techniques powerpoint presentation v2Vocabulary and comprehension techniques powerpoint presentation v2
Vocabulary and comprehension techniques powerpoint presentation v2
 
Guidelines in writing items for noncognitive measures
Guidelines in writing items for noncognitive measuresGuidelines in writing items for noncognitive measures
Guidelines in writing items for noncognitive measures
 
Thinking and Language
Thinking and LanguageThinking and Language
Thinking and Language
 
Themes identification techniques in qualitative research
Themes identification techniques in qualitative researchThemes identification techniques in qualitative research
Themes identification techniques in qualitative research
 
Ch9
Ch9Ch9
Ch9
 
PersonalQualitativeResearchStudy
PersonalQualitativeResearchStudyPersonalQualitativeResearchStudy
PersonalQualitativeResearchStudy
 
Questionnaire design
Questionnaire designQuestionnaire design
Questionnaire design
 
Ny3424442448
Ny3424442448Ny3424442448
Ny3424442448
 
Testing Listening and Reading
Testing Listening and ReadingTesting Listening and Reading
Testing Listening and Reading
 
The Rhetorical Web Revised
The Rhetorical Web RevisedThe Rhetorical Web Revised
The Rhetorical Web Revised
 
Testing Vocabulary
Testing VocabularyTesting Vocabulary
Testing Vocabulary
 
Heres-What-Personality-Sounds-Like
Heres-What-Personality-Sounds-LikeHeres-What-Personality-Sounds-Like
Heres-What-Personality-Sounds-Like
 
Big Five/HPTI and Cognitive ability AND High potential personality
Big Five/HPTI and Cognitive ability AND High potential personalityBig Five/HPTI and Cognitive ability AND High potential personality
Big Five/HPTI and Cognitive ability AND High potential personality
 

Recently uploaded

FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.takadzanijustinmaime
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...Monika Rani
 
Plasmid: types, structure and functions.
Plasmid: types, structure and functions.Plasmid: types, structure and functions.
Plasmid: types, structure and functions.Cherry
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIADr. TATHAGAT KHOBRAGADE
 
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...Scintica Instrumentation
 
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRLGwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRLkantirani197
 
Human genetics..........................pptx
Human genetics..........................pptxHuman genetics..........................pptx
Human genetics..........................pptxCherry
 
Cyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptxCyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptxCherry
 
Phenolics: types, biosynthesis and functions.
Phenolics: types, biosynthesis and functions.Phenolics: types, biosynthesis and functions.
Phenolics: types, biosynthesis and functions.Cherry
 
GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body Areesha Ahmad
 
Genetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditionsGenetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditionsbassianu17
 
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsKanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
CYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptxCYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptxCherry
 
POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.Cherry
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professormuralinath2
 
Site specific recombination and transposition.........pdf
Site specific recombination and transposition.........pdfSite specific recombination and transposition.........pdf
Site specific recombination and transposition.........pdfCherry
 
PODOCARPUS...........................pptx
PODOCARPUS...........................pptxPODOCARPUS...........................pptx
PODOCARPUS...........................pptxCherry
 

Recently uploaded (20)

FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
 
Site Acceptance Test .
Site Acceptance Test                    .Site Acceptance Test                    .
Site Acceptance Test .
 
Plasmid: types, structure and functions.
Plasmid: types, structure and functions.Plasmid: types, structure and functions.
Plasmid: types, structure and functions.
 
Clean In Place(CIP).pptx .
Clean In Place(CIP).pptx                 .Clean In Place(CIP).pptx                 .
Clean In Place(CIP).pptx .
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
 
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
 
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRLGwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
 
Human genetics..........................pptx
Human genetics..........................pptxHuman genetics..........................pptx
Human genetics..........................pptx
 
Cyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptxCyanide resistant respiration pathway.pptx
Cyanide resistant respiration pathway.pptx
 
Phenolics: types, biosynthesis and functions.
Phenolics: types, biosynthesis and functions.Phenolics: types, biosynthesis and functions.
Phenolics: types, biosynthesis and functions.
 
GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body
 
Genetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditionsGenetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditions
 
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsKanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICEPATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
 
CYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptxCYTOGENETIC MAP................ ppt.pptx
CYTOGENETIC MAP................ ppt.pptx
 
POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
 
Site specific recombination and transposition.........pdf
Site specific recombination and transposition.........pdfSite specific recombination and transposition.........pdf
Site specific recombination and transposition.........pdf
 
PODOCARPUS...........................pptx
PODOCARPUS...........................pptxPODOCARPUS...........................pptx
PODOCARPUS...........................pptx
 

ICPC 2017 - Effects of Variable Names on Comprehension: An Empirical Study