Dissertation Submitted in Partial Fulfillment of the Requirements for The

Total Page:16

File Type:pdf, Size:1020Kb

Dissertation Submitted in Partial Fulfillment of the Requirements for The ON THE HUMAN FACTORS IMPACT OF POLYGLOT PROGRAMMING ON PROGRAMMER PRODUCTIVITY by Phillip Merlin Uesbeck Master of Science - Computer Science University of Nevada, Las Vegas 2016 Bachelor of Science - Applied Computer Science Universit¨at Duisburg-Essen 2014 A dissertation submitted in partial fulfillment of the requirements for the Doctor of Philosophy { Computer Science Department of Computer Science Howard R. Hughes College of Engineering The Graduate College University of Nevada, Las Vegas December 2019 c Phillip Merlin Uesbeck, 2019 All Rights Reserved Dissertation Approval The Graduate College The University of Nevada, Las Vegas November 15, 2019 This dissertation prepared by Phillip Merlin Uesbeck entitled On The Human Factors Impact of Polyglot Programming on Programmer Productivity is approved in partial fulfillment of the requirements for the degree of Doctor of Philosophy – Computer Science Department of Computer Science Andreas Stefik, Ph.D. Kathryn Hausbeck Korgan, Ph.D. Examination Committee Chair Graduate College Dean Jan Pedersen, Ph.D. Examination Committee Member Evangelos Yfantis, Ph.D. Examination Committee Member Hal Berghel, Ph.D. Examination Committee Member Deborah Arteaga-Capen, Ph.D. Graduate College Faculty Representative ii Abstract Polyglot programming is a common practice in modern software development. This practice is often con- sidered useful to create software by allowing developers to use whichever language they consider most well suited for the different parts of their software. Despite this ubiquity of polyglot programming there is no empirical research into how this practice affects software developers and their productivity. In this disser- tation, after reviewing the state of the art in programming language and linguistic research pertaining to the topic, this matter is investigated by way of two empirical studies with 109 and 171 participants solving programming tasks. Based on the findings, the design of a data management library, a common use-case for polyglot programming, is proposed broadly and then applied specifically to the language Quorum as a case study. The review of previous studies finds that there is a pattern of productivity gain that can be explained by the occurrence of type annotations in programming, which gives insight into how programmers comprehend code. Study results show that there is a significant improvement of programmer productivity 2 when programmers are using polyglot programming in an embedded context (ηp = 0:039) and that less experienced programmers do better in a group with more frequent, but less severe, switches, while more experienced developers perform better with less frequent but more complete switches between languages. A study on language switches on a file level shows that file level programming language switching has a 2 clear negative impact on programmer productivity (ηp = 0:059) and is most likely caused by the increased occurrence of errors when switching. iii Acknowledgements First and foremost, I want to thank my supervisor Dr. Andreas Stefik for his continued support of my efforts and for continuously pushing me to be the best researcher I can be. Without him and Dr. Stefan Hanenberg, who helped me get started on this journey into empirical programming language research, I would never have been in the situation to strive for a doctorate to begin with. I also have to extend special thanks to Dr. Deborah Arteaga, who helped me dive headlong into the topic of code switching and helped me understand linguistic research, without which this dissertation would look very different. I also have to thank the other members of my committee, Dr. Pedersen, Dr. Berghel, and Dr. Yfantis who have always shown confidence in my abilities and readily given advice. Furthermore, I have to thank my colleagues of the Software Engineering and Media Lab at UNLV, espe- cially William Allee, Patrick Daleiden, and Tim Rafalski, for all their support and collaboration. But most importantly, I want to thank my wife Emma for inspiration and support throughout the process, as well as the opportunity to make a life outside of research and work. Lastly, I want to thank my family and friends, old and new, for supporting my ambitions and my friends for always having an open ear. Phillip Merlin Uesbeck University of Nevada, Las Vegas December 2019 iv Table of Contents Abstract iii Acknowledgements iv Table of Contents v List of Tables ix List of Figures x List of Code Samples xi Chapter 1 Introduction 1 1.1 Polyglot Programming . .2 1.2 Views on Polyglot Programming . .4 1.3 The Design of a Data Management Interface . .5 1.4 Scientific Contribution . .7 1.5 Methods . .9 1.6 Structure . .9 Chapter 2 Literature Review 10 2.1 Polyglot Programming . 10 2.2 Education . 12 2.3 Evidence on Programming Language Productivity . 16 2.4 Code Switching . 20 2.4.1 Code Switching in Natural Languages . 20 2.4.2 Cognitive Cost of Code Switching . 22 2.4.3 The Relation of Polyglot Programming and Code Switching . 23 2.5 Task Switching and Cognition . 25 2.6 Database Access Approaches . 27 v Chapter 3 On the Effect of Type Information on Developer Productivity 29 3.1 Introduction . 29 3.2 Related Work . 30 3.2.1 Type Systems . 31 3.2.2 Naming . 34 3.2.3 Program Comprehension . 34 3.3 Theoretical Synthesis . 37 3.4 Enumerated Types Experiment . 39 3.4.1 Experiment Description . 39 3.4.2 Results . 43 3.4.3 Discussion of Results . 49 3.4.4 Threats to Validity . 50 3.5 Conclusion . 52 Chapter 4 Randomized Controlled Trial on the Impact of Embedded Computer Language Switching 54 4.1 Introduction . 54 4.1.1 Objective . 56 4.1.2 Design Progress . 57 4.1.3 Structure . 58 4.2 Methods . 58 4.2.1 Trial Design . 59 4.2.2 Participants . 59 4.2.3 Study Setting . 59 4.2.4 Intervention . 60 4.2.5 Outcomes . 64 4.2.6 Sample Size . 65 4.2.7 Randomization . 65 4.2.8 Blinding . 65 4.3 Quantitative Results . 66 4.3.1 Recruitment . 66 4.3.2 Baseline Data . 66 4.3.3 Analysis . 68 4.4 Qualitative Results . 71 4.4.1 Object-Oriented Group . 71 4.4.2 String-Based Group . 73 4.4.3 Hybrid Group . 74 vi 4.5 Discussion . 74 4.5.1 Limitations . 75 4.5.2 Interpretation . 77 4.6 Conclusion . 80 Chapter 5 Randomized Controlled Trial on the Impact of File Level Computer Language Switching 82 5.1 Introduction . 82 5.1.1 Objective . 83 5.1.2 Design Process . 85 5.1.3 Structure . 85 5.2 Methods . 85 5.2.1 Trial Design . 86 5.2.2 Participants . 86 5.2.3 Study Setting . 87 5.2.4 Intervention . 87 5.2.5 Outcomes . 92 5.2.6 Sample Size . 94 5.2.7 Randomization . 94 5.2.8 Blinding . ..
Recommended publications
  • Smart Battery Charging Programmer Software User Manual Smart Battery Charging Programmer Software User Manual
    Smart Battery Charging Programmer Software User Manual Smart Battery Charging Programmer Software User Manual 1. Introduction ............................................................................................................... 1 ................................................................................................... 2. Prerequisites 1 .................................................................................................. 2.1 System requirements 1 .................................................................................................. 2.2 Hardware installation 1 ................................................................................................... 2.3 Software installation 2 3. User Interface ............................................................................................................ 2 .............................................................................................................. 3.1 Basic layout 2 CURVE PROFILE ......................................................................................................... 3.2 2 SETTING ...................................................................................... ............. 3.3 ................ 3 . ...................................................................................................... 4 General Operation 4 ...................................................................................................... 4.1 Connection 4 4.2 .........................................................................
    [Show full text]
  • PHP Programmer Location: North Las Vegas NV, USA
    Batteries ... For Life! PHP Programmer Position Title: PHP Programmer Location: North Las Vegas NV, USA Description: BatterieslnAFlash.com, Inc. has an immediate need for a PH? Web Programmer to join their team full­ time. The ideal candidate will work on development and implementation ofa wide variety of Web-based products using PHP, JavaScript, MySQL and AJAX. Qualified applicants would be initially working on a 90 day probationary period for a growing online battery company. " Responsibilities: • Participate in a team-oriented environment to develop complex Web-based applications. Improve, repair, and manage existing websites and applications. / ( • Maintain existing codebases to include troubieshooting bugs and adding new features. • Convert data from various formats (Excel, ACCESS etc.) into developed databases. • Balance a variety of concurrent projects. Required Experience: • Ability to work independently, take initiative, and contribute to new ideas required in a diverse, fast­ paced, deadline-driven team environment. Self-starter with a professional appearance. • Detailed knowledge of web application development and extensive experience using PHP and Javascript as well as relational databases such a~. PostgreSQL and MySQL. • Proven hands on experience with web applicationfi"."meworks such as CAKE, Kohana, Zend, etc. • Proven hands on experience with JavaScript fral.;cworks such as jQuery and EXT JS • Proven hands on experience with SECURE CODING techniques • Experience developing cross-browser frontends using XHTML, CSS, AJAX, JavaScript. • Organization and analytic skills, with strong problem solving ability. • Excellent written and verbal communications skills • Experience with version control systems such as SVN and CVS • Hands on experience with L1NUX especially using command line tools and writing SHELL scripts (Benefit, not required) • Experience using common business software ~ uch as WORD, PowerPoint, Excel and VISIO to visualize, discuss and present ideas to technical and non-technical audiences.
    [Show full text]
  • Modernizing Applications with IBM CICS
    Front cover Modernizing Applications with IBM CICS Russell Bonner Sophie Green Ezriel Gross Jim Harrison Debra Scharfstein Will Yates Redpaper IBM Redbooks Modernizing Applications with IBM CICS December 2020 REDP-5628-00 Note: Before using this information and the product it supports, read the information in “Notices” on page v. First Edition (December 2020) © Copyright International Business Machines Corporation 2020. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . .v Trademarks . vi Preface . vii Accompanying education course . vii Authors. viii Now you can become a published author, too! . viii Comments welcome. viii Stay connected to IBM Redbooks . ix Chapter 1. Introduction. 1 1.1 CICS and the hybrid multi-cloud . 2 1.2 Migrating to the hybrid multi-cloud . 2 1.2.1 Maintaining the status quo . 2 1.2.2 Using cloud-native applications. 2 1.2.3 Modernizing existing applications . 3 1.3 CICS Hello World COBOL example . 3 Chapter 2. IBM CICS application development . 5 2.1 Application development in CICS . 6 2.1.1 Batch processing versus online transaction processing . 6 2.1.2 Programming paradigm. 6 2.1.3 Basic architecture of a CICS program. 7 2.1.4 CICS resources. 9 2.2 CICS sample application. 10 2.3 CICS modernization . 11 2.4 CICS built-in transactions . 12 2.4.1 CICS Execute Command Interpreter . 12 2.4.2 CICS Execution Diagnostic Facility. 13 Chapter 3. Coding applications to run in IBM CICS. 15 3.1 Introduction to the EXEC CICS application programming interface .
    [Show full text]
  • Intermittent Computation Without Hardware Support Or Programmer
    Intermittent Computation without Hardware Support or Programmer Intervention Joel Van Der Woude, Sandia National Laboratories; Matthew Hicks, University of Michigan https://www.usenix.org/conference/osdi16/technical-sessions/presentation/vanderwoude This paper is included in the Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI ’16). November 2–4, 2016 • Savannah, GA, USA ISBN 978-1-931971-33-1 Open access to the Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation is sponsored by USENIX. Intermittent Computation without Hardware Support or Programmer Intervention Joel Van Der Woude Matthew Hicks Sandia National Laboratories∗ University of Michigan Abstract rapid changes drive us closer to the realization of smart As computation scales downward in area, the limi- dust [20], enabling applications where the cost and size tations imposed by the batteries required to power that of computation had previously been prohibitive. We are computation become more pronounced. Thus, many fu- rapidly approaching a world where computers are not ture devices will forgo batteries and harvest energy from just your laptop or smart phone, but are integral parts their environment. Harvested energy, with its frequent your clothing [47], home [9], or even groceries [4]. power cycles, is at odds with current models of long- Unfortunately, while the smaller size and lower cost of running computation. microcontrollers enables new applications, their ubiqui- To enable the correct execution of long-running appli- tous adoption is limited by the form factor and expense of cations on harvested energy—without requiring special- batteries. Batteries take up an increasing amount of space purpose hardware or programmer intervention—we pro- and weight in an embedded system and require special pose Ratchet.
    [Show full text]
  • PHP Programmer Analyst Markham, ON
    PHP Programmer Analyst Markham, ON PharmaCommunications™ is a leading provider of marketing technology and services to the life sciences industry. Through our offices in Montréal and Toronto, we provide solutions that help the industry manage interactions with stakeholders; improve sales and marketing processes; and identify opportunities for future growth. We have undertaken assignments for virtually all of the industry’s top 100 companies, and have completed projects throughout North America and Europe. We currently have opportunities for Full ‐‐‐Time PHP Programmer Analyst to join our Markham team. Reporting to the Manager, Systems Development this position involves the ongoing development of our marketing technology platforms. Responsibilities PHP LAMP Programming Javascript (JQuery) HTML/CSS and JS/AJAX/SOAP/BOOTSTRAP MySQL and Relational Databases Code Repositories(Subversion) UX design skill set Building professional online web applications Languages: Speak English, Read English, Write English What We’re Looking For Bachelor Degree in Computer Science or related science preferred Fluent in English Minimum of 5 years of related experience with IT and related technologies Must have minimum of 3 years PHP (Object Oriented Programming) Must have UNIX/Linux experience Familiar with SDLC and Agile development methodologies Understand system requirement specifications Experience with creating system documentation and validation documents Good organizational and communication skills In addition to a competitive salary and comprehensive benefits package, we offer a stimulating and challenging work environment, significant opportunities for career development, as well as a close-knit corporate culture that values inclusion, team work and dedication. From flex-time to office lunch events, our goal is to provide our team with both an enriching work environment and a good life-work balance.
    [Show full text]
  • The PHP Programmer's Guide to Secure Code
    School of Mathematics and Systems Engineering Reports from MSI - Rapporter från MSI The PHP programmer’s guide to secure code Richard Clarinsson Samuel Magnusson Maj MSI Report 05046 2005 Växjö University ISSN 1650-2647 SE-351 95 VÄXJÖ ISRN VXU/MSI/IV/E/--05046/--SE Abstract Authors: Richard Clarinsson, Samuel Magnusson Title: The PHP programmer’s guide to secure code Course: IVC730 – Bachelor thesis University: Växjö Universitet Institution: School of Mathematics and Systems Engineering Date: 2005-05-24 Content: Security threats against computer systems are a big problem today which also includes PHP made applications. The report is focused on protection with the help of code and not how you protect a web server. Its purpose is not to educate the readers of the thesis how to make a PHP application, the purpose is how to program a safer PHP application. The thesis contains information about common security threats against PHP scripts. It contains in most cases examples of what an attack can look like and how a protection for that example can be achieved. We have tested all code examples if they work by installing our own server with the configurations according to the delimitations of the thesis and putting up small PHP applications, which we have attacked and then protected. The contents and result of this thesis can benefit developers that use PHP as a programming language for creating web applications, by giving them information about common threats and protection. Keywords: security, PHP, security threats, programming, code, protection Preface This thesis has been very interesting and educational to write, but also a challenge.
    [Show full text]
  • CSC 272 - Software II: Principles of Programming Languages
    CSC 272 - Software II: Principles of Programming Languages Lecture 1 - An Introduction What is a Programming Language? • A programming language is a notational system for describing computation in machine-readable and human-readable form. • Most of these forms are high-level languages , which is the subject of the course. • Assembly languages and other languages that are designed to more closely resemble the computer’s instruction set than anything that is human- readable are low-level languages . Why Study Programming Languages? • In 1969, Sammet listed 120 programming languages in common use – now there are many more! • Most programmers never use more than a few. – Some limit their career’s to just one or two. • The gain is in learning about their underlying design concepts and how this affects their implementation. The Six Primary Reasons • Increased ability to express ideas • Improved background for choosing appropriate languages • Increased ability to learn new languages • Better understanding of significance of implementation • Better use of languages that are already known • Overall advancement of computing Reason #1 - Increased ability to express ideas • The depth at which people can think is heavily influenced by the expressive power of their language. • It is difficult for people to conceptualize structures that they cannot describe, verbally or in writing. Expressing Ideas as Algorithms • This includes a programmer’s to develop effective algorithms • Many languages provide features that can waste computer time or lead programmers to logic errors if used improperly – E. g., recursion in Pascal, C, etc. – E. g., GoTos in FORTRAN, etc. Reason #2 - Improved background for choosing appropriate languages • Many professional programmers have a limited formal education in computer science, limited to a small number of programming languages.
    [Show full text]
  • How to Become a Programmer Everything (Non-Technical) You Need to Know to Start Making Money Writing Code Rob Walling V1.0
    How to Become a Programmer Everything (Non-Technical) You Need to Know to Start Making Money Writing Code www.SoftwareByRob.com Rob Walling v1.0 Contents Introduction .................................................................................................................................... 4 What is Computer Programming? .................................................................................................. 5 Why Should I Become a Programmer? ........................................................................................... 7 What Are Some Reasons Not to Become a Programmer? ........................................................... 10 What are the Different “Worlds” of Programming? ..................................................................... 11 What Programming Language Should I Learn? ............................................................................ 13 Where Do I Start?.......................................................................................................................... 16 I’ve Built a Project and Decided I Like Programming, What Next? .............................................. 18 I Just Graduated from School, How Can I Get Experience? .......................................................... 20 How Can I Become a Programmer Without Going to College? .................................................... 22 What About Offshoring – Will I have a Job in 5 years? ................................................................ 23 Do I Have to Know Math to be a Programmer?
    [Show full text]
  • ACCEPT: a Programmer-Guided Compiler Framework for Practical Approximate Computing
    ACCEPT: A Programmer-Guided Compiler Framework for Practical Approximate Computing Adrian Sampson Andre´ Baixo Benjamin Ransford Thierry Moreau Joshua Yip Luis Ceze Mark Oskin University of Washington Abstract sion [Rubio-Gonzalez´ et al. 2013]; using special low-power Approximate computing trades off accuracy for better perfor- hardware structures that produce wrong results probabilisti- mance and energy efficiency. It offers promising optimization cally [Esmaeilzadeh et al. 2012b; Liu et al. 2011]; and train- opportunities for a wide variety of modern applications, from ing hardware neural networks to mimic the behavior of costly mobile vision to data analytics. Recent approaches to ap- functions [Esmaeilzadeh et al. 2012a; St. Amant et al. 2014]. proximate computing have relied on either manual program These proposals share an important distinction from tra- modification, based exclusively on programmer reasoning, ditional program optimizations: they have subtle and broad- or opaque automatic transformations, which sacrifice pro- ranging effects on safety, reliability, and output quality. Some work relies on programmers for manual reasoning to con- grammer control. We describe ACCEPT, a comprehensive framework for approximation that balances automation with trol these effects [Esmaeilzadeh et al. 2012a; Liu et al. 2011; programmer guidance. It includes C/C++ type qualifiers for Renganarayanan et al. 2012; Sidiroglou-Douskos et al. 2011], constraining approximation, a compiler analysis library that while other work proposes automated transformation based identifies regions of approximable code, an autotuning system on code patterns or exhaustive search [Baek and Chilimbi that automatically chooses the best approximation strategies, 2010; Samadi et al. 2014, 2013]. Manual code editing can and a feedback mechanism that explains how annotations can be tedious and error-prone, especially since important safety invariants are at stake.
    [Show full text]
  • Towards Applying Complexity Metrics to Measure Programmer Productivity in High Performance Computing
    Towards Applying Complexity Metrics to Measure Programmer Productivity in High Performance Computing Catalina Danis, John Thomas, John Richards, Jonathan Brezin, Cal Swart, Christine Halverson, Rachel Bellamy, Peter Malkin IBM, TJ Watson Research Center PO Box 704 Yorktown Heights, New York 10598 USA 1 914 784 7300 {danis, jcthomas, ajtr, brezin, cals, krys, rachel, malkin} @us.ibm.com ABSTRACT involved. Types of codes developed range from so-called In this paper, we motivate and position a method for measuring “kleenex codes” which are typically developed by a single the complexity of programming-related tasks. We describe this individual in a short period of time in order to try out an idea for method, Complexity Metrics (CM), and give a brief worked an analysis and so are used only once, to multi-module codes example from the domain of High Performance Computing developed over decades by large teams distributed in time and (HPC). We are using the method to help determine the space. The large HPC codes are typically developed by multi- productivity impact of new tools being developed for HPC by disciplinary teams that include both domain scientists, for IBM. Although we argue that the CM method has certain virtues, example climate scientists knowledgeable about the atmosphere we acknowledge that it is a work in progress. We discuss our or about the behavior of clouds, and computational scientists, such strategy of complementing the CM method with knowledge we as experts in data structures or in the communications derive from applying other methods to better explore the complex characteristics of a particular HPC system.
    [Show full text]
  • Programming Languages
    Copyright R.A. van Engelen, FSU Department of Computer Science, 2000 Note: the on-line syllabus allows you to access more detailed information about the course Programming Languages Syllabus Objectives Prerequisites Some familiarity with a contemporary programming language Improve the background for choosing appropriate programming Textbook languages for certain classes of programming problems Michael L. Scott Programming Language Pragmatics Be able in principle to program in an imperative (or procedural), Other material an object-oriented, a functional, and a logical programming class notes and handouts language Web site Understand the significance of an implementation of a Home page http://www.cs.fsu.edu/~engelen/courses/COP4020 and programming language in a compiler or interpreter UniversalClass.com Increase the ability to learn new programming languages http://home.universalclass.com/technology/viewclasses.htm Increase the capacity to express programming concepts and Class times choose among alternative ways to express things MWF: 1:25 - 2:15 pm Simulate useful features in languages that lack them Class location Be able in principle to design a new programming language 101 J. Love Building Make good use of debuggers and related tools Recitations Wed; sec 1 = 2:30 - 3:20 pm, sec 2 = 3:35 - 4:50 pm, sec 3 = 6:45 - 8:00 pm, sec 4 = 8:15 - 9:30 pm Contact Instructor Dr. Robert van Engelen Email [email protected] Phone 850 644 9661 Programming Language History Programming Language Genealogy 1940s: The first electronic computers were monstrous
    [Show full text]
  • Graalvm Twitter Case Study
    December 11, 2019 CASE STUDY: ORACLE AND TWITTER How Oracle GraalVM Supercharged Twitter’s Microservices Platform Basic Research on Computing Fundamentals Delivers Once-in-a-Lifetime Performance Improvements Holger Mueller Vice President and Principal Analyst Copy Editor: Jim Donahue Layout Editor: Aubrey Coggins Produced exclusively for Constellation Research clients TABLE OF CONTENTS At a Glance ..............................................................................................3 The Company ............................................................................................4 The Challenges ..........................................................................................4 The Solution .............................................................................................5 The Impact ...............................................................................................7 The Takeaways ...........................................................................................8 The Recommendations ..................................................................................9 Analyst Bio .............................................................................................11 About Constellation Research ..........................................................................12 AT A GLANCE Twitter · Headquarters: San Francisco Twitter runs one of the most visible social networks in the · 2018 Revenue: $3.04 billion world. Its move to a microservices infrastructure has addressed · No.
    [Show full text]