[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-682218-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-682218-en":130,"doc-similar-682218":154},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","assessing-python-style-guides-an-eye-tracking-study-with-novice-developers","Assessing Python Style Guides: An Eye-Tracking Study with Novice Developers","","This paper evaluates how Python style-guide recommendations affect novice developers’ visual effort and code readability. It reports a controlled eye-tracking experiment with 32 Python novices, measuring time, attempts, and eye-movement metrics (fixation duration, fixation count, regression count) across four PEP8 recommendations, complemented by interviews. Results show that not following PEP8’s line-break rule after an operator increases eye regressions by 70%, while most participants prefer PEP8-adherent versions.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/assessing-python-style-guides-an-eye-tracking-study-with-novice-developers/682218/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/assessing-python-style-guides-an-eye-tracking-study-with-novice-developers/682218.png","ImageObject",300,407,{"name":42,"@type":43},"Cart","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-10","2026-11-06",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is the main goal of the study on Python style guides?","Question",{"text":62,"@type":63},"The study investigates how specific PEP8 recommendations influence visual effort and code readability for Python novices, using eye-tracking and interviews.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How was the experiment conducted and what data were measured?",{"text":67,"@type":63},"A controlled experiment involved 32 Python novices. Researchers measured task time, number of attempts, and eye-tracking metrics such as fixation duration, fixation count, and regression count for four PEP8 recommendations.",{"name":69,"@type":60,"acceptedAnswer":70},"What was the key finding about the PEP8 line-break rule after an operator?",{"text":71,"@type":63},"Not applying the PEP8 line-break-after-operator guideline increased the eye regression count by 70% in the relevant code snippet.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},682218,1793963008,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":26,"preview_urls":145},18829141979164,"https://eur-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Assessing Python Style Guides: An Eye-Tracking Study with  \nNovice Developers  \nPablo Roberto  \nFederal University of Campina Grande Brazil [pablo@copin.ufcg.edu.br](pablo@copin.ufcg.edu.br)  \nRohit Gheyi  \nFederal University of Campina Grande Brazil [rohit@dsc.ufcg.edu.br](rohit@dsc.ufcg.edu.br)  \narXiv :2408 . 14566v1 [ cs . SE] 26 Aug 2024  \nJosé Aldo Silva da Costa State University of Paraíba  \nBrazil [jose.aldo@servidor.uepb.edu.br](jose.aldo@servidor.uepb.edu.br)  \nMárcio Ribeiro  \nFederal University of Alagoas Brazil [marcio@ic.ufal.br](marcio@ic.ufal.br)  \nABSTRACT  \nThe 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 eyetracking, 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.  \nKEYWORDS  \nStyle Guide, PEP8, Eye tracking camera.  \n1 INTRODUCTION  \nStyle guides are essential in software development, guiding code formatting, naming conventions, and source code structure to promote readability and facilitate maintenance. Previous studies have investigated the influence of coding styles on readability, with mixed results, indicating that certain styles may compromise code clarity [17]. Major companies, such as Google [20] and Microsoft [23], emphasize style standardization by incorporating guidelines into  \ntheir corporate style guides, adopting practices aligned with PEP8 to improve code readability and organization.  \nHowever, the diversity of programming languages prevents a universal set of style rules, with each language having its own definitions [1] . PEP8, for example, is a widely accepted style guide for Python that suggests best coding practices [14] . Yet, many guides, including PEP8, lack empirical studies as a foundation [31] . Previous studies have examined the impact of coding styles [3] on the performance of novice developers and visual effort, but there is a need for more rigorous assessments that consider the developer’s perception and how eye transitions may indicate a greater visual effort with certain style patterns.  \nConformity with well-established style practices is crucial to ensuring code quality [32]. PEP8 provides suggestions for coding styles in Python, one of the most popular programming languages. While the PEP8 guide provides justifications for its recommendations, it is crucial to empirically evaluate these recommendations, particularly from dynamic per","cbCaikejamuDdmpI","https://ap.wps.com/l/cbCaikejamuDdmpI","pdf",2018939,11,"English","# Introduction\n## Background and Motivation\n## PEP8 Line Break Guideline\n## Study Approach and Evaluation Metrics","[{\"question\":\"What is the main goal of the study on Python style guides?\",\"answer\":\"The study investigates how specific PEP8 recommendations influence visual effort and code readability for Python novices, using eye-tracking and interviews.\"},{\"question\":\"How was the experiment conducted and what data were measured?\",\"answer\":\"A controlled experiment involved 32 Python novices. Researchers measured task time, number of attempts, and eye-tracking metrics such as fixation duration, fixation count, and regression count for four PEP8 recommendations.\"},{\"question\":\"What was the key finding about the PEP8 line-break rule after an operator?\",\"answer\":\"Not applying the PEP8 line-break-after-operator guideline increased the eye regression count by 70% in the relevant code snippet.\"}]","Assessing Python Style Guides: An Eye-Tracking Study with Novice Developers | PDF",28,[146,150],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-06/cb4a6773b5f2e6275bcf207be38634a3.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-06/ab7bb6c0f21f19e93af2cc5c4183b342.webp",982,1270,{"list":155,"token":11},[156,163,169,176,183,190,197,204,211,218],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":161,"category_name":29,"create_tm":162},396158,"NOVICE-TO-EXPERT KNOWLEDGE TRANSITION IN AIRPORT X-RAY SECURITY SCREENING","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229918782795/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=c9ef7z%2FUHEAxDTwXJGsjhMZDPNs%3D","novice-to-expert-knowledge-transition-in-airport-x-ray-security-screening",12,1790432452,{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":112,"category_name":29,"create_tm":168},83561,"Identifying Effective Program Comprehension Strategies through Gaze Transitions over Syntactic Elements","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808867588/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=xcygUBIqTMYGZuvrZAMFE8%2B4qJc%3D","identifying-effective-program-comprehension-strategies-through-gaze-transitions-over-syntactic-elements",1784188837,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":29,"create_tm":175},392164,"Dazed- Measuring the Cognitive Load of Solving Technical Interview Problems at the Whiteboard","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917725284/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=%2Fe3rhHoeFrlOFVsFG1M6FI4Ejhs%3D","dazed-measuring-the-cognitive-load-of-solving-technical-interview-problems-at-the-whiteboard",15,1790363597,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":29,"create_tm":182},85719,"Semantic Drift and the Stability of Operator Control in Reasoning-Class Decision Support Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809345560/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=3XsyMI%2F9WUIvFeP2cDfBM%2FH0NbY%3D","semantic-drift-and-the-stability-of-operator-control-in-reasoning-class-decision-support-systems",26,1784205775,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":29,"create_tm":189},124103,"Leveraging Machine Learning in Housing Price Prediction in Nairobi County - Dissertation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229837089760/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=flUVgDEQR%2BZoathQ5%2FKpfXBLznQ%3D","leveraging-machine-learning-in-housing-price-prediction-in-nairobi-county-dissertation",17,1785820396,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=sh%2FIK2s9npqb2uNNSpK1nEFWQkg%3D","xnx-gas-detector-calibration-2023",7895,1776136863,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=ECOnTMJrKTMzSos%2BpmRTgc%2F3nQQ%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6925,1776136851,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":209,"category_name":29,"create_tm":210},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=zxHamKoluX%2Bg596kDzT%2BScG0Dp0%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5865,1788211707,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":29,"create_tm":217},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=%2BJgjsaMccfUU%2BXooY10ygtAJl8c%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":29,"create_tm":224},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108039&Signature=zZ1VTMaelX6ztQawYdpTPRdNanU%3D","developmental-biology-twelfth-edition",1250,1787780705]