A Decentralized Approach for Programming Interactive Applications with Javascript and Blockly

Total Page:16

File Type:pdf, Size:1020Kb

A Decentralized Approach for Programming Interactive Applications with Javascript and Blockly Author-prepared version A Decentralized Approach for Programming Interactive Applications with JavaScript and Blockly Assaf Marron Gera Weiss Guy Wiener Weizmann Institute of Science Ben-Gurion University HP Labs [email protected] [email protected] [email protected] Abstract Keywords Behavioral Programming, JavaScript, We present a decentralized-control methodology and a Coroutines, HTML 5, Google Blockly, Visual Pro- tool-set for developing interactive user interfaces. We gramming, Client-side, Web application, Browser focus on the common case of developing the client side of Web applications. Our approach is to combine vi- 1. Introduction sual programming using Google Blockly with a single- The behavioral programming (BP) approach is an ex- threaded implementation of behavioral programming tension and generalization of scenario-based program- in JavaScript. We show how the behavioral program- ming, which was introduced in [4, 11] and extended ming principles can be implemented with minimal pro- in [17]. In behavioral programming, individual re- gramming resources, i.e., with a single-threaded envi- quirements are programmed in a decentralized manner ronment using coroutines. We give initial, yet full, ex- as independent modules which are interwoven at run amples of how behavioral programming is instrumental time. Advantages of the approach include facilitation in addressing common issues in this application do- of incremental development [17], naturalness [10], and main, e.g., that it facilitates separation of graphical rep- facilitation of early detection of conflicting require- resentation from logic and handling of complex inter- ments [18]. A review of research and tool development object scenarios. The implementation in JavaScript and in behavioral programming to date appears in [14]. Blockly (separately and together) expands the avail- While behavioral programming mechanisms are avail- ability of behavioral programming capabilities, pre- able in several languages such as live sequence charts viously implemented in LSC, Java, Erlang and C++, (LSC), Java, Erlang and C++, its usage for complex to audiences with different skill-sets and design ap- real-world application and development of relevant proaches. methodologies are only beginning. The purpose of the research summarized in this pa- Categories and Subject Descriptors D.3.3 [Language per was to examine behavioral programming in a spe- Constructs and Features]: Concurrent programming cific application domain, and to adjust it to languages, structures; D.1.3 [Programming Techniques]: Concur- technologies and work methods that are used in this do- rent programming main. The paper also sheds light on the principles of programming behaviorally and the facilities required of General Terms Languages, Design, Human Factors behavioral-programming infrastructure. The paper describes and demonstrates the imple- mentation of behavioral programming in JavaScript and in Google’s Blockly for the client side of Web applications, and then discusses general usability and design principles highlighted by these implementa- tions. Clearly, in addition to the combined Blockly- and-JavaScript implementation shown here, behavioral [Copyright notice will appear here once ’preprint’ option is removed.] programming can be used with JavaScript without Author-prepared version; See published version in AGERE! 2012 - ACM DL 1 2012/12/19 Blockly, or with Blockly with translation to another necessary, in the least, and in some cases, artificial and language, such as Dart. In this regard, Blockly is a layer even detrimental to the understandability of the text. above our JavaScript implementation, which can sim- In this context, of course, the language name Blockly plify development and facilitate experimenting with a fits nicely with its proposed use in programming be- variety of programming idioms. We hope that together haviorally. Still to minimize confusion, we avoided us- with previously described ideas about scenario-based ing the terms block and blocking in two other com- and behavioral programming, this paper will help drive mon software-related meanings, namely, (c) stopping the incorporation of these principles into a wide vari- a process or a subroutine while waiting for an event or ety of new and existing environments for development resource; and, (d) a segment of program code which with agents, actors, and decentralized control, and will contains all the commands between some end-markers help add them into the basic set of programming con- such as curly braces or begin and end. cepts that are understandable by and useful for novice and expert programmers alike. 2. Behavioral Programming We propose that decentralized scenario oriented pro- In this section we outline the technique of Behavioral gramming techniques offer significant advantages over Programming for the development of reactive systems. traditional programming metaphors in this specific do- Formal definitions and comparisons with other pro- main. Consider, for example, an application with some gramming techniques appear in [14, 17, 19]. buttons on a screen where there is a requirement that A preliminary assumption in our implementation of the software reacts to a sequence of button clicks in behavioral programming is that an application, or a a certain way. Using a non-behavioral style with, e.g., system, is focused on processing streams of events with JavaScript, one of the standard programming languages the goal of identifying and reacting to occurrences of in this domain, the programmer would handle each meaningful scenarios. Detected event sequences are button-click separately, and introduce special code to then used to trigger abstract, higher level, events, which manage state for recognizing the specific sequence of in turn may trigger other events. Some of these events events. We argue that with behavioral programming are translated to actions that the system takes to effect such a requirement can be coded in a single imperative changes in the external world. This cycle results with script with state management being implicit and natural a reactive system that translates inputs coming from its rather than explicit. See Section 5.1. sensors to actions performed by its actuators. Our choice of the domain of interactive technology Requested Events is influenced also by the current debate about the rel- b-thread ative merits of Flash and JavaScript/HTML5 technolo- Blocking gies (see, e.g., [28]). We believe that the technologi- b-thread cal discussion conducted mainly in industry should be b-thread accompanied with academic revisiting and analysis of b-thread software engineering and methodology aspects. Selected Event Figure 1. Behavioral programming execution cycle: About the terms block and blocking all b-threads synchronize, declaring requested and As we are dealing with languages and programming id- blocked events; a requested event that is not blocked ioms, the reader should note that the term block appears is selected and b-threads waiting for it are resumed. in this paper in two different meanings: (a) a brick or a box - referring to programming command drawn as More specifically, in a behavioral program, event a two-dimensional shape; and (b) a verb meaning to sequences are detected and generated by independent forbid or to prevent, associated with the behavioral pro- threads of behavior that are interwoven at run time in gramming idiom for declaring events that must not hap- an enhanced publish/subscribe protocol. Each behav- pen at a given point in time. It is interesting to observe ior thread (abbr. b-thread) specifies events which, from that these meanings are individually commonly used its own point of view must, may, or must not occur. and are appropriate for the intent, that finding alterna- As shown in Figure 1, the infrastructure consults all tive terms for the sole purpose of disambiguation, is un- b-threads by interweaving and synchronizing them, and Author-prepared version; See published version in AGERE! 2012 - ACM DL 2 2012/12/19 selects the events that will constitute integrated sys- ness of b-threads (see Section 5) facilitate subsequent tem behavior without requiring direct communication adding and changing of event choices. between b-threads. Specifically, all b-threads declare The behavioral programming technique facilitates events that should be considered for triggering (called new automated approaches for planning in execu- requested events) and events whose triggering they for- tion [12, 15], program verification and synthesis [13, bid (block), and then synchronize. An event selection 18, 22], visualization and debugging of concurrent ex- mechanism then triggers one event that is requested and ecution [5], natural language coding of scenarios [9], not blocked, and resumes all b-threads that requested and program repair [20] . the event. B-threads can also declare events that they simply “listen-out for”, and they too are resumed when 3. Infrastructure Implementation these waited-for events occur. 3.1 Coordinating behaviors written in JavaScript This facilitates incremental non-intrusive develop- In principle, the concepts of behavioral programming ment as outlined in the example of Figure 2. For are language independent and indeed they have been another example, consider a game-playing program, implemented in a variety of languages using differ- where each game rule and each player strategy is added ent techniques. However, certain language facilities in a separate module that is oblivious
Recommended publications
  • An Affordable Modular Robotic Kit for Integrated Science, Technology, Engineering, and Math Education
    An Affordable Modular Robotic Kit for Integrated Science, Technology, Engineering, and Math Education © PHOTOCREDIT By Ekawahyu Susilo, Jianing Liu, Yasmin Alvarado Rayo, Ashley Melissa Peck, Pietro Valdastri, Justin Montenegro, and Mark Gonyea he demand for graduates in science, technology, Fischertechnik [6], are composed of libraries of engineering, and math (STEM) has steadily prefabricated parts that are not interoperable among kits increased in recent decades. In the United from different vendors. As recently surveyed in Kee [7], States alone, jobs for biomedical engineers are alternatives to these popular kits are either highly modular expected to increase by 62% by 2020, and jobs but very expensive (e.g., Kondo [8], Bioloid [9], Cubelets Tin software development and medical science are [10], K-Junior V2, and Kephera [11]) and unaffordable for expected to increase by 32% and 36%, respectively [1]. the majority of schools, or single-configuration and low- Combined with an insufficient number of students cost robots (e.g., AERObot [12], iRobot [13], and Boe-Bot enrolled in STEM fields, this will result in about 2.4 [14]) with a restricted number of activities possible. An million STEM job vacancies by 2018 [2]. Therefore, affordable solution that provides a number of increasing the number of STEM graduates is currently a interchangeable modules is littleBits [15]. This platform national priority for many IEEEgovernments worldwide. An offersProof a variety of sensing and actuation modules that use effective way to engage young minds in STEM disciplines is magnets to connect, but it lacks programmability, thus to introduce robotic kits into primary and secondary limiting students’ ability to learn about coding.
    [Show full text]
  • Code Girl Tracey Acosta Santa Clara University
    Santa Clara University Scholar Commons Computer Engineering Senior Theses Engineering Senior Theses 6-1-2015 Code girl Tracey Acosta Santa Clara University Amanda Holl Santa Clara University Paige Rogalski Santa Clara University Follow this and additional works at: https://scholarcommons.scu.edu/cseng_senior Part of the Computer Engineering Commons Recommended Citation Acosta, Tracey; Holl, Amanda; and Rogalski, Paige, "Code girl" (2015). Computer Engineering Senior Theses. 43. https://scholarcommons.scu.edu/cseng_senior/43 This Thesis is brought to you for free and open access by the Engineering Senior Theses at Scholar Commons. It has been accepted for inclusion in Computer Engineering Senior Theses by an authorized administrator of Scholar Commons. For more information, please contact [email protected]. Code Girl by Tracey Acosta Amanda Holl Paige Rogalski Submitted in partial fulfillment of the requirements for the degrees of Bachelor of Science Computer Science and Engineering Bachelor of Science in Web Design and Engineering School of Engineering Santa Clara University Santa Clara, California June 1, 2015 Code Girl Tracey Acosta Amanda Holl Paige Rogalski Computer Science and Engineering Web Design and Engineering Santa Clara University June 1, 2015 ABSTRACT Despite the growing importance of technology and computing, fewer than 1% of women in college today choose to major in computer science.[1] Educational programs and games created to interest girls in computing, such as Girls Who Code and Made With Code, have been successful in engaging girls with interactive and creative learning environments, but they are too advanced for young girls to benefit from. To address the lack of educational, computer science games designed specifically for young girls, we developed a web-based application called Code Girl for girls age five to eight to customize their own avatar using Blockly, an open-source visual coding editor developed by Google.
    [Show full text]
  • Robot Block-Based Programming
    Robot Block-Based Programming Teaching children how to program an interactive robot using a block-based programming language Robin van der Wal Jannelie de Vries Luka Miljak Marcel Kuipers Bachelor's Thesis Computer Science Delft University of Technology 1 This report is under embargo from July 2017 until February 2018 Delft University of Technology Bachelor end project Robot Block-based Programming Final Report Authors: Robin van der Wal Luka Miljak Jannelie de Vries Marcel Kuipers July 5, 2017 Bachelor Project Committee Coach name: Koen Hindriks Client name: Joost Broekens Cordinator name: Ir. O.W. Visser Abstract Robots play an increasingly large role in society and some material already exists that allows children to program robots in elementary school. However, this material often neglects the interactive capabilities of modern robots. The aim of this project is to teach children how to write interactive programs for a robot. For this purpose, a NAO robot is used, which is a humanoid robot with advanced features. Children can use a web interface to create programs in a Block-Based Programming Language, which is then sent and processed by the robot in an intelligent manner, using an agent-based sys- tem. Over the course of ten weeks, based on research done in the first two weeks, a web interface and an intelligent agent were developed. The BlocklyKids lan- guage implements many concepts you would expect from a programming lan- guage. Using these concepts, children can solve exercises that are presented to them in the web interface. Testing BlocklyKids in the classroom helped in the development of the product.
    [Show full text]
  • Ibtihaj Muhammad's
    Featuring 484 Industry-First Reviews of Fiction, Nonfiction, Children'sand YA Books KIRKUSVOL. LXXXVI, NO. 15 | 1 AUGUST 2018 REVIEWS U.S. Olympic medalist Ibtihaj Muhammad’s memoir, Proud, released simultaneously in two versions—one for young readers, another for adults—is thoughtful and candid. It’s also a refreshingly diverse Cinderella story at a time when anti-black and anti-Muslim sentiments are high. p. 102 from the editor’s desk: Chairman Excellent August Books HERBERT SIMON President & Publisher BY CLAIBORNE SMITH MARC WINKELMAN # Chief Executive Officer MEG LABORDE KUEHN [email protected] Photo courtesy Michael Thad Carter courtesy Photo Editor-in-Chief Winners Take All: The Elite Charade of Changing the World by Anana CLAIBORNE SMITH Giridharadas (Aug. 28): “Give a hungry man a fish, and you get to pat [email protected] Vice President of Marketing yourself on the back—and take a tax deduction. It’s a matter of some SARAH KALINA [email protected] irony, John Steinbeck once observed of the robber barons of the Gilded Managing/Nonfiction Editor ERIC LIEBETRAU Age, that they spent the first two-thirds of their lives looting the public [email protected] Fiction Editor only to spend the last third giving the money away. Now, writes politi- LAURIE MUCHNICK cal analyst and journalist Giridharadas, the global financial elite has [email protected] Children’s Editor reinterpreted Andrew Carnegie’s view that it’s good for society for VICKY SMITH [email protected] capitalists to give something back to a new formula: It’s good for busi- Young Adult Editor Claiborne Smith LAURA SIMEON ness to do so when the time is right, but not otherwise….A provocative [email protected] Staff Writer critique of the kind of modern, feel-good giving that addresses symptoms and not causes.” MEGAN LABRISE [email protected] Sweet Little Lies by Caz Frear (Aug.
    [Show full text]
  • Trabajo Fin De Grado
    UNIVERSIDAD AUTÓNOMA DE MADRID ESCUELA POLITÉCNICA SUPERIOR Grado en Ingeniería Informática TRABAJO FIN DE GRADO Aplicación web para ayuda en el aprendizaje de la gestión de memoria dinámica en programación con el lenguaje C Carlos Mesón de Arana Tutor: Marina De La Cruz Echeandía Ponente: Alfonso Ortega de La Puente JUNIO 2017 1 Aplicación web para ayuda en el aprendizaje de la gestión de memoria dinámica en programación con el lenguaje C AUTOR: Carlos Mesón de Arana TUTOR: Marina De La Cruz Echeandía Dpto. Ingeniería Informática Escuela Politécnica Superior Universidad Autónoma de Madrid Junio 2017 2 3 Resumen Este Trabajo Fin de Grado surge con objetivo de garantizar una herramienta que muestre visualmente mediante un formalismo de alto nivel distinto del lenguaje de programación C las peculiaridades de la gestión de la memoria dinámica para facilitar el aprendizaje de los estudiantes. Este proyecto nace de la reiteración de la experiencia observada en las aulas y los laboratorios del incremento de la competencia en la correcta gestión de la memoria dinámica de aquellos alumnos que son capaces de imaginar visualmente el proceso. El proyecto consistirá en el desarrollo de una aplicación web para facilitar la adquisición de esa imagen visual. Para ello se incorporará al sitio web un canvas en el que diseñar visualmente su algoritmo de gestión de memoria mediante bloques propios desarrollados con el lenguaje de bloques de Google Blockly, un canvas en el que se representará gráficamente la memoria del sistema y las modificaciones que las operaciones de gestión de memoria realicen sobre ella al ser ejecutadas y un área de texto en la que se mostrará la equivalencia en lenguaje C de las operaciones diseñadas de manera visual.
    [Show full text]
  • Blockly Manual © Revolution Education Ltd 2002-2016 V1.2.0 May Be Copied for Educational Use
    A guide to using Blockly to simulate and program a PICAXE microcontroller © Copyright Revolution Education Ltd 1999-2016. Copyright is waived in the following circumstances: a small number of copies may be made for use in the purchaser’s school/college for use alongside PICAXE hardware. These copies may not be sold or made available outside the purchaser’s school. Blockly Manual © Revolution Education Ltd 2002-2016 v1.2.0 May be copied for educational use. 1 Overview Blockly for PICAXE is a free powerful visual programming tool for generating PICAXE microcontroller programs. By stacking coloured blocks on top of each other a control program can be rapidly generated. This simple click’n’drag programming method allows students to rapidly develop control sequences for real life microcontroller projects. Blockly can be run in a web browser on almost any device that has an internet connection. For offline use Blockly is embedded within PICAXE Editor and is also available as a standalone Chrome app. Blockly can be used in 3 different ways: 1) Within PE6 (PICAXE Editor 6) which is the main PICAXE programming environment (Windows) 2) As a standalone app (Windows/Mac/Linux/Chromebook) 3) On the www.picaxecloud.com website (any browser) All 3 methods share exactly the same Blockly source code and so work in a similar way on all platforms. However PE6 does contain a more powerful simulation engine. The wide range of PICAXE specific blocks allows the user to control output devices, such as motors and LEDs that are connected to the PICAXE microcontroller. We can switch devices on or off in sequences using: timing, counting, repetition, and decisions based on signals from digital and analogue sensors that are connected to the PICAXE microcontroller.
    [Show full text]
  • Online Collection of Algorithms
    JOHANNES KEPLER UNIVERSITAT¨ LINZ JKU Faculty of Engineering and Natural Sciences Online Collection of Algorithms Master’s Thesis submitted in partial fulfillment of the requirements for the academic degree Diplom-Ingenieur in the Master’s Program Computer Science Submitted by Wolfgang K¨ullinger,BSc. At the Institut f¨urSystemsoftware Advisor a.Univ.-Prof. Dipl.-Ing. Dr. G¨untherBlaschek Linz, November 2015 Abstract This thesis presents an interactive web platform, that provides an online knowledge base for common algorithms. The main target are algorithms that are important for ongoing computer scientists. The platform offers the possibility to try algorithms immediately. Every execu- tion step can be analyzed. The changes in the memory are visualized. Run-time statistics are collected and can be used to compare similar algorithms. New algorithms can be added using a registered user account. An author can use a graphical programming language to define algorithms. Any kind of information can be attached. Using comments and annotations, an algorithm can be explained in more detail. In particular students could benefit from the visual presentation of important algorithms. A web browser and an internet connection is needed in order to use the platform. There is no need to install any tools on the computer. It is not required to register for the basic functionality. This thesis gives insights about the program's internals. Some implementation details are explained extensively. The basic architecture is discussed and sketched schematically. It is a guide through the possibilities of the web application. All areas are explained using examples and illustrations. It also serves as documentation.
    [Show full text]
  • As Easy As Click, Click, Code!
    As easy as click, click, code! v A motivational learning system Programming Reference Document 45284 Contents Interface Overview ..........................................................................................................................................................1 The Fable PC Interface – Blockly ...........................................................................................................................................................1 The Fable PC Interface – Python ...........................................................................................................................................................2 Simple-View Blocks ..........................................................................................................................................................3 Logic .................................................................................................................................................................................................................3 Actions .............................................................................................................................................................................................................4 Loops ................................................................................................................................................................................................................5 Colors ...............................................................................................................................................................................................................6
    [Show full text]
  • Resume 15 Years of Experience
    7/3/2019 Zulfa's Portfolio Resume 15 Years of Experience Zulfa Juniadi About Me Web Developer Name Age Education Mobile App Developer Game Developer Zulfa Juniadi 33 Years Old Universiti Teknologi Petronas About me Experience Home Award Resume Portfolio 15 Years Kajang, Selangor Developer Hero, 2016 github.com/zulfajuniadi Experience hailburns.itch.io twitter.com/zuljzul Sept 2018 - July 2019 August 2014 - August 2018 +60192727155 [email protected] Lead Developer Head of Software Development zulfajuniadi.com Grenapps Sdn Bhd Department Set up software division Train junior developers Sands Consulting Sdn. Bhd. (Merged with Grenapps Sdn. Bhd.) Maintain existing systems from Sands Consulting Sdn Bhd Planning time and human resource for upcoming projects Assisting junior developers through code review Consulting customers pre and post deployment August 2012 - July 2014 August 2009 - June 2012 Lead Programmer Presales Engineer Hasrimy Technologies Sdn Bhd Intisari Tuah Group Sdn Bhd Conversion of Illustrator / Sketch design to HTML / CSS Finding contracts and projects in networking services Design SQL database schema according to project requirements and Planning and proposing projects to prospective customers needs Consulting customers during deployment Lead the programming department February 2005 - May 2008 June 2008 - June 2009 Zultek Solutions DSA Networks Sdn Bhd Owner / CEO Sales Director Finding contracts and projects in IT services Negotiating contracts and projects in networking services Provided Streamyx registration, installation and networking services Specializing in enterprise wireless solution and leased line Internet Became top Streamyx reseller in Sabah access Community Work 2013 - Current 2013 - Current 2013 - Current Programming Laman Laravel Group Javascript Malaysia Web UI / UX Malaysia A Facebook group of Javascript coders in Malaysia.
    [Show full text]
  • Code Smell Prediction Employing Machine Learning Meets Emerging Java Language Constructs"
    Appendix to the paper "Code smell prediction employing machine learning meets emerging Java language constructs" Hanna Grodzicka, Michał Kawa, Zofia Łakomiak, Arkadiusz Ziobrowski, Lech Madeyski (B) The Appendix includes two tables containing the dataset used in the paper "Code smell prediction employing machine learning meets emerging Java lan- guage constructs". The first table contains information about 792 projects selected for R package reproducer [Madeyski and Kitchenham(2019)]. Projects were the base dataset for cre- ating the dataset used in the study (Table I). The second table contains information about 281 projects filtered by Java version from build tool Maven (Table II) which were directly used in the paper. TABLE I: Base projects used to create the new dataset # Orgasation Project name GitHub link Commit hash Build tool Java version 1 adobe aem-core-wcm- www.github.com/adobe/ 1d1f1d70844c9e07cd694f028e87f85d926aba94 other or lack of unknown components aem-core-wcm-components 2 adobe S3Mock www.github.com/adobe/ 5aa299c2b6d0f0fd00f8d03fda560502270afb82 MAVEN 8 S3Mock 3 alexa alexa-skills- www.github.com/alexa/ bf1e9ccc50d1f3f8408f887f70197ee288fd4bd9 MAVEN 8 kit-sdk-for- alexa-skills-kit-sdk- java for-java 4 alibaba ARouter www.github.com/alibaba/ 93b328569bbdbf75e4aa87f0ecf48c69600591b2 GRADLE unknown ARouter 5 alibaba atlas www.github.com/alibaba/ e8c7b3f1ff14b2a1df64321c6992b796cae7d732 GRADLE unknown atlas 6 alibaba canal www.github.com/alibaba/ 08167c95c767fd3c9879584c0230820a8476a7a7 MAVEN 7 canal 7 alibaba cobar www.github.com/alibaba/
    [Show full text]
  • Rapport De Stage DUT Informatique LORIA
    IUT Nancy-Charlemagne Université de Lorraine 2 ter Boulevard Charlemagne 54052 Nancy Cedex Dépt. Informatique Langage visuel pour un exerciseur Rapport de stage DUT informatique LORIA Baptiste MOUNIER 47ème promotion (2015) IUT Nancy-Charlemagne Université de Lorraine 2 ter Boulevard Charlemagne 54052 Nancy Cedex Dépt. Informatique Langage visuel pour un exerciseur Rapport de stage DUT informatique LORIA Campus Scientifique BP 239 54506 Vandœuvre-lès-Nancy Auteur : Baptiste MOUNIER Maîtres de stage : Gérald OSTER Matthieu NICOLAS Martin QUINSON Marraine : Isabelle DEBLED-RENNESSON Remerciements Il me semble judicieux avant de débuter ce rapport de remercier toutes celles et ceux qui m’ont permis de le réaliser ces conditions. Je commencerai par Matthieu Nicolas, Gérald Oster et Martin Quinson qui m’ont accepté au sein de leur projet et qui m’ont accompagné dans la réalisation de ma contribution. Egalement Mme. Debled-Rennesson, ma marraine de stage qui a effectué le suivi et l’encadrement de mon stage. De même que toute l’équipe COAST qui m’a accueilli dans leurs locaux avec la joie et la bonne humeur, éléments essentiels d’un travail efficace au quotidien. Notamment Claudia- Lavinla Ignat Et Luc André. Et par extension le LORIA dans son ensemble. Je n’oublierai pas l’IUT et ses enseignants qui m’ont apporté tout au long de ces deux années les capacités pour réaliser ce genre de projet. Table des matières Remerciements ......................................................................................................................................
    [Show full text]
  • Comparison of Flow-Based Versus Block-Based Programming for Naive Programmers
    COMPARISON OF FLOW-BASED VERSUS BLOCK-BASED PROGRAMMING FOR NAIVE PROGRAMMERS by Kruti Dave Bachelor of Engineering in Information Technology, Mumbai University, 2012 A thesis presented to Ryerson University in partial fulfillment of the requirements for the degree of Master of Science in the program of Computer Science Toronto, Ontario, Canada, 2018 c Kruti Dave 2018 Author’s Declaration I hereby declare that I am the sole author of this thesis. This is a true copy of the thesis, including any required final revisions, as accepted by my examiners. I authorize Ryerson University to lend this thesis to other institutions or individuals for the purpose of scholarly research. I further authorize Ryerson University to reproduce this thesis by photocopying or by other means, in total or in part, at the request of other institutions or individuals for the purpose of scholarly research. I understand that my thesis may be made electronically available to the public for the purpose of scholarly research only. ii Abstract Comparison of Flow-based versus Block-based Programming for Naive Programmers Kruti Dave Master of Science, Computer Science Ryerson University, 2018 There is general agreement that most people should have some programming ability, whether to investigate the vast amount of data around them or for professional purposes. Visual Programming Languages comprise two broad categories: Flow-based, functional programming or Block-based, imperative programming. However, there has been a lack of empirical studies in the visual programming domain to evaluate the relative benefits of the two categories. This research provides an empirical study to analyze the effects of the comparison between Flow- based and Block-based paradigm, to determine which of the two representations is easier for non-programmers or novice programmers.
    [Show full text]