Loading…
Assessing Python Style Guides: An Eye-Tracking Study with Novice Developers
The incorporation and adaptation of style guides play an essential role in software development, influencing code formatting, naming conventions, and structure to enhance readability and simplify maintenance. However, many of these guides often lack empirical studies to validate their recommendation...
Saved in:
Published in: | arXiv.org 2024-08 |
---|---|
Main Authors: | , , , |
Format: | Article |
Language: | English |
Subjects: | |
Online Access: | Get full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
cited_by | |
---|---|
cites | |
container_end_page | |
container_issue | |
container_start_page | |
container_title | arXiv.org |
container_volume | |
creator | Roberto, Pablo Gheyi, Rohit José Aldo Silva da Costa Ribeiro, Márcio |
description | The incorporation and adaptation of style guides play an essential role in software development, influencing code formatting, naming conventions, and structure to enhance readability and simplify maintenance. However, many of these guides often lack empirical studies to validate their recommendations. Previous studies have examined the impact of code styles on developer performance, concluding that some styles have a negative impact on code readability. However, there is a need for more studies that assess other perspectives and the combination of these perspectives on a common basis through experiments. This study aimed to investigate, through eye-tracking, the impact of guidelines in style guides, with a special focus on the PEP8 guide in Python, recognized for its best practices. We conducted a controlled experiment with 32 Python novices, measuring time, the number of attempts, and visual effort through eye-tracking, using fixation duration, fixation count, and regression count for four PEP8 recommendations. Additionally, we conducted interviews to explore the subjects' difficulties and preferences with the programs. The results highlighted that not following the PEP8 Line Break after an Operator guideline increased the eye regression count by 70% in the code snippet where the standard should have been applied. Most subjects preferred the version that adhered to the PEP8 guideline, and some found the left-aligned organization of operators easier to understand. The other evaluated guidelines revealed other interesting nuances, such as the True Comparison, which negatively impacted eye metrics for the PEP8 standard, although subjects preferred the PEP8 suggestion. We recommend practitioners selecting guidelines supported by experimental evaluations. |
format | article |
fullrecord | <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_3097957862</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>3097957862</sourcerecordid><originalsourceid>FETCH-proquest_journals_30979578623</originalsourceid><addsrcrecordid>eNqNys0KgkAUQOEhCJLyHS60Fmwm_9pJWUEQge5F9JZjMmPesfDtK-gBWp3F-SbM4kKsnHDN-YzZRI3rutwPuOcJi51iIiSS6gaX0dRaQWrGFuEwyAppA7GCZEQn64vy_kWpGaoRXtLUcNZPWSLs8Imt7rCnBZtei5bQ_nXOlvsk2x6drtePAcnkjR569Vm5cKMg8oLQ5-I_9QbMbTzC</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>3097957862</pqid></control><display><type>article</type><title>Assessing Python Style Guides: An Eye-Tracking Study with Novice Developers</title><source>Publicly Available Content Database (Proquest) (PQ_SDU_P3)</source><creator>Roberto, Pablo ; Gheyi, Rohit ; José Aldo Silva da Costa ; Ribeiro, Márcio</creator><creatorcontrib>Roberto, Pablo ; Gheyi, Rohit ; José Aldo Silva da Costa ; Ribeiro, Márcio</creatorcontrib><description>The incorporation and adaptation of style guides play an essential role in software development, influencing code formatting, naming conventions, and structure to enhance readability and simplify maintenance. However, many of these guides often lack empirical studies to validate their recommendations. Previous studies have examined the impact of code styles on developer performance, concluding that some styles have a negative impact on code readability. However, there is a need for more studies that assess other perspectives and the combination of these perspectives on a common basis through experiments. This study aimed to investigate, through eye-tracking, the impact of guidelines in style guides, with a special focus on the PEP8 guide in Python, recognized for its best practices. We conducted a controlled experiment with 32 Python novices, measuring time, the number of attempts, and visual effort through eye-tracking, using fixation duration, fixation count, and regression count for four PEP8 recommendations. Additionally, we conducted interviews to explore the subjects' difficulties and preferences with the programs. The results highlighted that not following the PEP8 Line Break after an Operator guideline increased the eye regression count by 70% in the code snippet where the standard should have been applied. Most subjects preferred the version that adhered to the PEP8 guideline, and some found the left-aligned organization of operators easier to understand. The other evaluated guidelines revealed other interesting nuances, such as the True Comparison, which negatively impacted eye metrics for the PEP8 standard, although subjects preferred the PEP8 suggestion. We recommend practitioners selecting guidelines supported by experimental evaluations.</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Best practice ; Eye movements ; Guidelines ; Python ; Readability ; Software development ; Tracking</subject><ispartof>arXiv.org, 2024-08</ispartof><rights>2024. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><linktohtml>$$Uhttps://www.proquest.com/docview/3097957862?pq-origsite=primo$$EHTML$$P50$$Gproquest$$Hfree_for_read</linktohtml><link.rule.ids>780,784,25752,37011,44589</link.rule.ids></links><search><creatorcontrib>Roberto, Pablo</creatorcontrib><creatorcontrib>Gheyi, Rohit</creatorcontrib><creatorcontrib>José Aldo Silva da Costa</creatorcontrib><creatorcontrib>Ribeiro, Márcio</creatorcontrib><title>Assessing Python Style Guides: An Eye-Tracking Study with Novice Developers</title><title>arXiv.org</title><description>The incorporation and adaptation of style guides play an essential role in software development, influencing code formatting, naming conventions, and structure to enhance readability and simplify maintenance. However, many of these guides often lack empirical studies to validate their recommendations. Previous studies have examined the impact of code styles on developer performance, concluding that some styles have a negative impact on code readability. However, there is a need for more studies that assess other perspectives and the combination of these perspectives on a common basis through experiments. This study aimed to investigate, through eye-tracking, the impact of guidelines in style guides, with a special focus on the PEP8 guide in Python, recognized for its best practices. We conducted a controlled experiment with 32 Python novices, measuring time, the number of attempts, and visual effort through eye-tracking, using fixation duration, fixation count, and regression count for four PEP8 recommendations. Additionally, we conducted interviews to explore the subjects' difficulties and preferences with the programs. The results highlighted that not following the PEP8 Line Break after an Operator guideline increased the eye regression count by 70% in the code snippet where the standard should have been applied. Most subjects preferred the version that adhered to the PEP8 guideline, and some found the left-aligned organization of operators easier to understand. The other evaluated guidelines revealed other interesting nuances, such as the True Comparison, which negatively impacted eye metrics for the PEP8 standard, although subjects preferred the PEP8 suggestion. We recommend practitioners selecting guidelines supported by experimental evaluations.</description><subject>Best practice</subject><subject>Eye movements</subject><subject>Guidelines</subject><subject>Python</subject><subject>Readability</subject><subject>Software development</subject><subject>Tracking</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>PIMPY</sourceid><recordid>eNqNys0KgkAUQOEhCJLyHS60Fmwm_9pJWUEQge5F9JZjMmPesfDtK-gBWp3F-SbM4kKsnHDN-YzZRI3rutwPuOcJi51iIiSS6gaX0dRaQWrGFuEwyAppA7GCZEQn64vy_kWpGaoRXtLUcNZPWSLs8Imt7rCnBZtei5bQ_nXOlvsk2x6drtePAcnkjR569Vm5cKMg8oLQ5-I_9QbMbTzC</recordid><startdate>20240826</startdate><enddate>20240826</enddate><creator>Roberto, Pablo</creator><creator>Gheyi, Rohit</creator><creator>José Aldo Silva da Costa</creator><creator>Ribeiro, Márcio</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope></search><sort><creationdate>20240826</creationdate><title>Assessing Python Style Guides: An Eye-Tracking Study with Novice Developers</title><author>Roberto, Pablo ; Gheyi, Rohit ; José Aldo Silva da Costa ; Ribeiro, Márcio</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_30979578623</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Best practice</topic><topic>Eye movements</topic><topic>Guidelines</topic><topic>Python</topic><topic>Readability</topic><topic>Software development</topic><topic>Tracking</topic><toplevel>online_resources</toplevel><creatorcontrib>Roberto, Pablo</creatorcontrib><creatorcontrib>Gheyi, Rohit</creatorcontrib><creatorcontrib>José Aldo Silva da Costa</creatorcontrib><creatorcontrib>Ribeiro, Márcio</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science & Engineering Collection</collection><collection>ProQuest Central (Alumni)</collection><collection>ProQuest Central</collection><collection>ProQuest Central Essentials</collection><collection>AUTh Library subscriptions: ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central</collection><collection>SciTech Premium Collection (Proquest) (PQ_SDU_P3)</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database (Proquest) (PQ_SDU_P3)</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Roberto, Pablo</au><au>Gheyi, Rohit</au><au>José Aldo Silva da Costa</au><au>Ribeiro, Márcio</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>Assessing Python Style Guides: An Eye-Tracking Study with Novice Developers</atitle><jtitle>arXiv.org</jtitle><date>2024-08-26</date><risdate>2024</risdate><eissn>2331-8422</eissn><abstract>The incorporation and adaptation of style guides play an essential role in software development, influencing code formatting, naming conventions, and structure to enhance readability and simplify maintenance. However, many of these guides often lack empirical studies to validate their recommendations. Previous studies have examined the impact of code styles on developer performance, concluding that some styles have a negative impact on code readability. However, there is a need for more studies that assess other perspectives and the combination of these perspectives on a common basis through experiments. This study aimed to investigate, through eye-tracking, the impact of guidelines in style guides, with a special focus on the PEP8 guide in Python, recognized for its best practices. We conducted a controlled experiment with 32 Python novices, measuring time, the number of attempts, and visual effort through eye-tracking, using fixation duration, fixation count, and regression count for four PEP8 recommendations. Additionally, we conducted interviews to explore the subjects' difficulties and preferences with the programs. The results highlighted that not following the PEP8 Line Break after an Operator guideline increased the eye regression count by 70% in the code snippet where the standard should have been applied. Most subjects preferred the version that adhered to the PEP8 guideline, and some found the left-aligned organization of operators easier to understand. The other evaluated guidelines revealed other interesting nuances, such as the True Comparison, which negatively impacted eye metrics for the PEP8 standard, although subjects preferred the PEP8 suggestion. We recommend practitioners selecting guidelines supported by experimental evaluations.</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><oa>free_for_read</oa></addata></record> |
fulltext | fulltext |
identifier | EISSN: 2331-8422 |
ispartof | arXiv.org, 2024-08 |
issn | 2331-8422 |
language | eng |
recordid | cdi_proquest_journals_3097957862 |
source | Publicly Available Content Database (Proquest) (PQ_SDU_P3) |
subjects | Best practice Eye movements Guidelines Python Readability Software development Tracking |
title | Assessing Python Style Guides: An Eye-Tracking Study with Novice Developers |
url | http://sfxeu10.hosted.exlibrisgroup.com/loughborough?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-12T04%3A31%3A24IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest&rft_val_fmt=info:ofi/fmt:kev:mtx:book&rft.genre=document&rft.atitle=Assessing%20Python%20Style%20Guides:%20An%20Eye-Tracking%20Study%20with%20Novice%20Developers&rft.jtitle=arXiv.org&rft.au=Roberto,%20Pablo&rft.date=2024-08-26&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E3097957862%3C/proquest%3E%3Cgrp_id%3Ecdi_FETCH-proquest_journals_30979578623%3C/grp_id%3E%3Coa%3E%3C/oa%3E%3Curl%3E%3C/url%3E&rft_id=info:oai/&rft_pqid=3097957862&rft_id=info:pmid/&rfr_iscdi=true |