Javascript Language Extension with Language Workbenches

Total Page:16

File Type:pdf, Size:1020Kb

Javascript Language Extension with Language Workbenches Master Thesis JavaScript language extension with language workbenches Author: Supervisor: Matthisk Heimensen dr. Tijs van der Storm [email protected] [email protected] August 2015 Host organization: Centrum Wiskunde & Informatica http://www.cwi.nl Universiteit van Amsterdam Faculteit der Natuurwetenschappen, Wiskunde en Informatica Master Software Engineering http://www.software-engineering-amsterdam.nl UNIVERSITEIT VAN AMSTERDAM Abstract Faculteit der Natuurwetenschappen, Wiskunde en Informatica Master of Science JavaScript language extension with language workbenches by Matthisk Heimensen Extending programming languages is an activity undertaken by many programmers, mostly through the use of syntax macros but there exist different manners through which to achieve extensible programming languages. Extensible programming languages enable any programmer to introduce new language constructs, not just the creators of the language. Language extensions are dedicated modular grammars including a transformation step to the base language. They enable programmers to create their own syntax on top of a base language and embed domain specific knowledge not just in semantics but also in syntax. For implementation of language extensions a tool called a language workbench can be used. Language workbenches promise to provide an environment which improves the efficiency of language oriented programming. To evaluate this promise of the language workbench we implement the latest JavaScript specification (ECMAScript 6) as a set of language extensions on top of current JavaScript and compare our implementation against tools created without the help of a language workbench. Contents Abstract i Contents ii 1 Introduction and Motivation1 1.1 Outline.....................................2 2 Problem Analysis3 2.1 Motivation...................................3 2.2 Research approach...............................4 2.3 Research questions...............................4 2.4 Related Work..................................4 2.4.1 Metaborg................................4 2.4.2 Sugar* and SugarJ...........................5 2.4.3 Type Specific Languages........................5 2.4.4 Concrete Syntax............................6 2.4.5 Macro systems.............................6 2.4.6 Taxonomy of program transformations................6 2.4.7 Program transformation hygiene...................7 3 Background8 3.1 ECMAScript..................................8 3.2 Program Transformations........................... 10 3.3 Language Extensions.............................. 10 3.3.1 Hygiene................................. 11 3.4 Parsing..................................... 13 3.5 Program Representation............................ 14 3.6 Language Workbenches............................ 14 4 Taxonomy 17 4.1 Structure.................................... 17 4.2 Dimensions................................... 18 4.3 Introducing ECMAScript 6.......................... 22 4.3.1 Functions................................ 22 4.3.2 Syntax.................................. 23 4.3.3 Binding................................. 25 4.3.4 Optimization.............................. 26 ii Contents iii 5 Implementation of RMonia 29 5.1 Basics...................................... 29 5.2 RMonia..................................... 30 5.2.1 Visitor.................................. 31 5.2.2 Introducing bindings.......................... 32 5.2.3 Mutually dependent language extensions............... 32 5.2.4 Variable capture............................ 34 5.2.5 Block scoping.............................. 36 5.2.6 IDE integration............................. 38 6 Results and Comparison 39 6.1 Evaluation.................................... 39 6.2 Reflecting on the taxonomy.......................... 47 6.3 Engineering trade-offs............................. 48 6.3.1 Benefits................................. 48 6.3.2 Limitations............................... 48 7 Conclusion 50 A Artifact Description 53 B Language feature categorization 56 B.1 Arrow Functions................................ 56 B.2 Classes...................................... 57 B.3 Destructuring.................................. 58 B.4 Extended object literals............................ 59 B.5 For of loop................................... 59 B.6 Spread operator................................. 60 B.7 Default parameter............................... 61 B.8 Octal and binary literals............................ 61 B.9 Regexp "y" and "u" flags........................... 62 B.10 Unicode code point escapes.......................... 62 B.11 Rest parameter................................. 62 B.12 Template Literal................................ 63 B.13 Tail call optimization.............................. 63 B.14 Generators................................... 64 B.15 Let and Const declarators........................... 65 C ES6 Test Examples 68 Bibliography 70 Chapter 1 Introduction and Motivation Language extensions allow programmers to introduce new language constructs to a base language, with two main purposes. \First a programmer can define language extensions for language constructs that are missing in the base language" [1], these missing con- structs can range from more advanced looping constructs (e.g. foreach/for-of loops) to shorthand function notation (e.g. lambda functions). \Second, extensible program- ming languages serve as an excellent base for language embedding" [1] for instance to enable the programmer to use a markup language (e.g. HTML) inside a programming language. One of the techniques to realize the implementation of language extensions is program transformations, they are used to transform language extensions from the source program to base language code. Many systems for program transformation exist but in recent years a specific type of tool has become more popular for this job, the language workbench. This tool aids the (meta-)programmer in creating meta-programs that integrate with modern developer tools. In this thesis we investigate the ability of language workbenches in helping the meta-programmer to create a set of language extensions. As an experiment we extend the JavaScript programming language with a subset of features introduced by the new specification document of the language, ECMAScript 6 (ES6). The current specification of JavaScript implemented in all major run-times (be it web-browsers or dedicated) is ECMAScript 5 (ES5). The language extensions are implemented in the Rascal [2] language workbench and the resulting tool is named RMonia. A second contribution of this thesis is a taxonomy for language extensions. With this taxonomy we try to capture the distinctive characteristics of each language extension in a generic way, by answering the following questions: How can the language extension be implemented, what information does transformation of a language extension require, and what are guarantees we give of the target program produced by a language extension? We are not the first to implement a solution for transformation of ES6 JavaScript to ES5. Several tools are build specifically with this goal in mind (e.g. Babel JS or Traceur compiler). These tools are not implemented as language extensions on top of an ES5 base-grammar but as a full compiler with separate parsing and transformation stage, these compilers specifically engineered to migrate between programming languages and perform a source-to-source translation is often called a transpiler1. 1http://martinfowler.com/bliki/TransparentCompilation.html\/footnote-transpiler 1 Chapter 1. Introduction 2 To evaluate RMonia we compare it to three of these ES6 to ES5 transformers along several dimensions: coverage of the transformation suite (i.e. amount of ES6 features implemented by the transformer), correctness of the transformations according to a set of compatibility tests, size in source lines of code used for transformation and parsing code, the ease with which the language extension suite can be extended, or so called modularity, and output \noise" generated by the transformations. With this evaluation we create insight into the engineering trade-offs of implementing language extensions inside the language workbench. What limitations does the workbench impose, where can we benefit from the power of a language workbench, and what are the generic problems of language extensions. For instance do all types of new language features lend themselves to be implemented as language extensions or how can we guarantee the hygiene of the performed transformations. The Rascal language workbench made it possible for us to implement ES6 language extensions in a short time period with fewer lines of code. We cover most of the new language features from ES6, something only other large-scale open-source projects are able to achieve. We deliver editor support for reference hyperlinking, undeclared ref- erence errors, illegal redeclaration errors, and hover documentation preview of target program. The language workbench does however constraint us to one specific IDE and our solution is less portable than other implementations. Syntax definition of the lan- guage workbench constrained us from implementing empty element matching in the destructuring (see appendix B.3) language extension of ES6 (see appendixA). We were able to guarantee the hygiene of program transformations by reusing the v-fix algorithm. Finally we uncovered that most but not all new language constructs lend themselves to be implemented as language extensions, the new block binding construct let/const was the exception
Recommended publications
  • Job Description: Riverside Research's Engineering and Support Solutions
    Job Description: Riverside Research’s Engineering and Support Solutions Directorate has an opening in the Dayton, Ohio area for a Software Developer. This candidate will have the opportunity to develop a web-based client application and backend server for a highly scalable physics tool while setting direction and leading an assisting support team, with a focus on the use of permissively licensed programming languages and libraries. Job Responsibilities: • Utilizing languages like C and C++ • Working with JavaScript/ECMAscript and its language extensions • User interface development • Creating 3D renderings • Using revision control systems • Other duties as assigned Requirements: • Experience with compiled languages like C and C++ • Experience with Javascript/ECMAscript and its language extensions like dart (dart2js), TypeScript, Google Closure Tools, Google Web Toolkit, Haxe • Experience with user interface development toolkits like Qt, GTK, VTK, etc. • Experience with 3D rendering libraries like OpenGL, OpenSceneGraph, etc. • Experience with revision control systems like git, svn, mercurial, etc. Desired experience: • Experience working in projects comprising >100,000 sloc • Development of browser-centric 3D applications (in particular utilization of WebGL) • Experience combining web client and server backend components into a single thick client application • Development experience on Unix and/or Linux systems • Experience with WebGL • Familiarity with Unix shell scripting and supporting tools like bash, awk, sed • Usage of CAD systems
    [Show full text]
  • Augmenting Information Flow for Visual Privacy
    Augmenting Information Flow for Visual Privacy by Ian Spiro A dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy Department of Computer Science New York University September 2013 Professor Christoph Bregler c Ian Spiro All Rights Reserved, 2013 Acknowledgements First and foremost, I would like to thank my partner Molly Tanenbaum for her love, patience, good cheer, and support. I'm excited for our next chapter and looking forward to the day that we can enjoy spiced lamb shanks in a hot tub. Thanks to Chris Bregler, my research advisor and patron. He encouraged me to explore new intellectual paths and brought me along for some wild rides. Thanks to Helen Nissenbaum for leading the Privacy Research Group and for the great discussions in which we managed to bridge the interdisciplinary abyss. Thanks to my family, Mom, Dad, and Miranda. Thanks to the Motion Chain alpha users who tested and invented charades: Phil Dhingra, Raphael Holmes, Kiefer Katovich, Carrie Kemper, Doug Kenter, Devon Sherman. I met some great people at NYU who made the experience considerably more enjoyable: Clement Farabet, Yotam Gingold, Eric Hielscher, Adrian Secord, Kirill Smolskiy, Murphy Stein, Graham Taylor, Matthew Tierney, and George Williams. iv Preface The work presented in chapter 2 is based upon two previously published papers. The first paper appeared in Computer Vision and Pattern Recognition Workshops (CVPRW 2010) and was co-authored with Graham Taylor, George Williams, and Christoph Bregler [80]. The second paper was presented at Collective Intelligence 2012 [79]. This work was co-authored with Thomas Huston and Christoph Bregler.
    [Show full text]
  • Prestans Documentation Release 2.0
    Prestans Documentation Release 2.0 Anomaly Software November 02, 2016 Contents 1 Installation 3 1.1 Software Requirements.........................................3 1.2 Deployment notes............................................4 1.2.1 Apache + mod_wsgi......................................4 1.2.2 AppEngine...........................................4 1.3 Unit testing................................................4 2 Framework Design 7 2.1 Exceptions................................................7 2.2 HTTP Header Reference.........................................7 2.2.1 Content Negotiation.......................................8 2.2.2 Custom headers.........................................8 3 Routing & Handling Requests 11 3.1 Serializers & DeSerializers........................................ 11 3.2 Routing Requests............................................. 12 3.2.1 Regex & URL design primer.................................. 12 3.2.2 Using Request Router...................................... 13 3.3 Handling Requests............................................ 14 3.4 Constructing Response.......................................... 17 3.4.1 Minifying Content....................................... 18 3.4.2 Serving Binary Content..................................... 18 3.5 Raising Exceptions............................................ 19 3.5.1 Unsupported Vocabulary or Content Type........................... 19 3.5.2 Configuration Exceptions.................................... 19 3.5.3 Data Validation Exceptions..................................
    [Show full text]
  • Vysoké Učení Technické V Brně Brno University of Technology
    VYSOKÉ UČENÍ TECHNICKÉ V BRNĚ BRNO UNIVERSITY OF TECHNOLOGY FAKULTA INFORMAČNÍCH TECHNOLOGIÍ ÚSTAV POČÍTAČOVÉ GRAFIKY A MULTIMÉDIÍ FACULTY OF INFORMATION TECHNOLOGY DEPARTMENT OF COMPUTER GRAPHICS AND MULTIMEDIA PRÁCE S HISTORICKÝMI MAPAMI NA MOBILNÍM ZAŘÍZENÍ DIPLOMOVÁ PRÁCE MASTER’S THESIS AUTOR PRÁCE Bc. MARTIN URBAN AUTHOR BRNO 2014 VYSOKÉ UČENÍ TECHNICKÉ V BRNĚ BRNO UNIVERSITY OF TECHNOLOGY FAKULTA INFORMAČNÍCH TECHNOLOGIÍ ÚSTAV POČÍTAČOVÉ GRAFIKY A MULTIMÉDIÍ FACULTY OF INFORMATION TECHNOLOGY DEPARTMENT OF COMPUTER GRAPHICS AND MULTIMEDIA PRÁCE S HISTORICKÝMI MAPAMI NA MOBILNÍM ZAŘÍZENÍ INTERACTION WITH OLD MAPS ON MOBILE DEVICES DIPLOMOVÁ PRÁCE MASTER’S THESIS AUTOR PRÁCE Bc. MARTIN URBAN AUTHOR VEDOUCÍ PRÁCE Ing. VÍTĚZSLAV BERAN, Ph.D. SUPERVISOR BRNO 2014 Abstrakt Cílem této diplomové práce je experimentovat s nejmodernějšími webovými technologiemi a navrhnout nový postup pro tvorbu mobilních aplikací. Díky navženým postupùm je možné vytváøet mobilní aplikace, které jsou multiplatformní a zároveň téměř nerozpoznatelné od nativních. Dùraz je kladený na výkon a nativní chování uživatelského rozhraní. Popsané postupy jsou demonstrované na aplikaci pro práci s historickými mapami, která je schopna v reálném èase zobrazovat mapy z historických archivù po celém světě. Testy demonstrační aplikace vykazují oproti standardním postupùm tvorby webových aplikací rapidní zrychlení. Abstract The goal of this thesis is to experiment with the latest web technologies and to design new process for mobile application creation. It is possible to create multiplatform applications which are almost unrecognizable from native applications by proposed procedures. It is focused on performance and native behaviour of the user interface in this thesis. Described practices are demonstrated on application designed for work with historical maps, which is able to show maps from historical archives whole over world real-time.
    [Show full text]
  • Building a Complete Language in the Browser
    The DOPPIO JVM: Building a Complete Language in the Browser John Vilk CJ Carey Jez Ngy Emery D. Berger School of Computer Science yDept. of Computer Science University of Massachusetts, Amherst Amherst College Amherst, MA 01003 Amherst, MA 01002 {jvilk,ccarey,emery}@cs.umass.edu, [email protected] Abstract 1. Introduction Web browsers are rapidly overtaking native environments as Recent dramatic improvements in JavaScript performance the central focus of application development. Developers are have made it possible to write a wide range applications building increasingly rich and responsive applications that that run entirely inside the browser. Examples of these run entirely in the browser. However, web applications must include full office suites [7, 16], instant messengers [4], and be written in JavaScript, the only language available in all photo editors [6]. Browsers are an attractive implementation browsers. Developers thus cannot reuse existing code in other substrate because web applications can run unchanged across languages; rewriting this code in JavaScript can be onerous desktop, mobile, and tablet platforms. and error-prone. However, these applications must be written specifically An attractive alternative is to enable the execution of stan- in JavaScript and tailored to the browser environment. Devel- dard programming languages within the browser. This ap- opers cannot take advantage of existing bodies of well-tested proach would let programmers use familiar languages and code in languages like Java, and must instead rewrite
    [Show full text]
  • Become a Ninja with Angular2 (Free Sample)
    Become a ninja with Angular2 (free sample) Ninja Squad Table of Contents 1. Free sample . 1 2. Introduction. 2 3. A gentle introduction to ECMASCRIPT 6 . 4 3.1. Transpilers . 4 3.2. let . 5 3.3. Constants . 6 3.4. Creating objects. 7 3.5. Destructuring assignment . 7 3.6. Default parameters and values . 9 3.7. Rest operator . 11 3.8. Classes . 12 3.9. Promises . 14 3.10. Arrow functions . 18 3.11. Sets and Maps . 21 3.12. Template literals . 22 3.13. Modules . 22 3.14. Conclusion . 24 4. Going further than ES6 . 25 4.1. Dynamic, static and optional types . 25 4.2. Enters TypeScript . 26 4.3. A practical example with DI . 26 5. Diving into TypeScript . 29 5.1. Types as in TypeScript. 29 5.2. Enums . 30 5.3. Return types. 30 5.4. Interfaces . 31 5.5. Optional arguments . 31 5.6. Functions as property . 32 5.7. Classes . 32 5.8. Working with other libraries . 34 5.9. Decorators . 35 6. The wonderful land of Web Components . 38 6.1. A brave new world. 38 6.2. Custom elements . 38 6.3. Shadow DOM . 39 6.4. Template . 40 6.5. HTML imports . 41 6.6. Polymer and X-tag . 41 7. Grasping Angular’s philosophy . 44 8. From zero to something . 48 8.1. Developing and building a TypeScript app . 48 8.2. Our first component . 50 8.3. Bootstrapping the app . 52 8.4. From zero to something better with angular-cli. 55 9. End of the free sample .
    [Show full text]
  • On Source-To-Source Compilers
    See discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/303348270 On source-to-source compilers Article · April 2016 CITATIONS READS 2 1,257 2 authors: Evgeniy Ilyushin Dmitry Namiot Lomonosov Moscow State University Lomonosov Moscow State University 5 PUBLICATIONS 5 CITATIONS 116 PUBLICATIONS 788 CITATIONS SEE PROFILE SEE PROFILE Some of the authors of this publication are also working on these related projects: Pentagon communications (AIN, IP, cybersecurity, etc), digital railway (GSM-R, LTE/4G, 5G) View project AI in software engineering View project All content following this page was uploaded by Evgeniy Ilyushin on 19 May 2016. The user has requested enhancement of the downloaded file. International Journal of Open Information Technologies ISSN: 2307-8162 vol. 4, no. 5, 2016 On source-to-source compilers Evgeniy Ilyushin, Dmitry Namiot Abstract - Computer technologies like computer languages and hardware have been involving for past few decades. We II. THE ARCHITECTURE AND REQUIREMENTS have a lot of computer programs which need to maintain and rewrite when releasing new equipment or technology. It is too As with the traditional compiler, an architecture of transpiler can expensive and unreliable to rewrite the whole code from be divided into two parts – front-end and back-end. The front-end scratch. Also the spread of portable devices, which usually translates the source language into an intermediate representation. have multi-core processors, increase the demands on the The back-end works with the internal representation to produce quality of the developed programs, their effective work in code in the output language.
    [Show full text]
  • Here Is My Resume
    Kyle Storrier [email protected] | kylestorrier.com | github.com/kyle-storrier Education University of Calgary (September 2016-Present) • BSc., Computer Science (Honours) with a Mathematics Minor (Expected Graduation: December 2020) • Coursework: Discrete Math, Linear Methods, Statistics, Formal Logic, Computability, Probability, Computing Machinery, Programming Paradigms, Algorithms, Combinatorics and Graph Theory, Software Engineering, Networks, Operating Systems, Retrogames, Quantum Computing, Abstract Algebra, Computer Security, Cryptography, Viruses and Malware, Number Theory • GPA: 4.0 Work Experience • Google: Software Engineering Intern (May 2020-August 2020) – San Francisco, California, USA o Will work on the Identity team to create backend software for authentication and authorization. • Google: Software Engineering Intern (May 2019-August 2019) – Kitchener-Waterloo, Ontario, Canada o Collaborated with engineers from several engineering teams to create the user interface and backend for a web-based healthcare data analysis tool. o Implemented user interface components using CSS, TypeScript, and Java with data retrieved from the Google Cloud Healthcare API. o Created the server for the project using a microservice architecture. o Independently researched and setup static content serving for multiple projects. • Google: Engineering Practicum Intern (May 2018-August 2018) – Kitchener-Waterloo, Ontario, Canada o Enhanced the user interface for Gmail Offline using CSS and JavaScript with the Closure Library. o Developed and maintained unit tests written in JavaScript using JSUnit. Technical Skills • Programming Languages (Proficient): Java, JavaScript, TypeScript, C • Programming Languages (Used): Python, Haskell, Prolog, C#, C++, ARM and x86 Assembly Language, HTML, Markdown, CSS • Tools: Google Closure Tools for JavaScript, Eclipse, git, Mercurial, Protocol Buffers, Visual Studio Projects and Presentations • Honours Research Project: Applying Zero-Knowledge Proofs to Distributed Point Functions (Supervisor: Dr.
    [Show full text]
  • Download Here the PDF “Brand As a System: the Local Meets the Global”
    Brand as a System: The Local meets the Global Fang Wan, Ph.D. Professor of Marketing Ross Johnson Research Fellow Asper School of Business University of Manitoba, Canada The 5th International Research Symposium on Branding in Emergent Markets, Dec 10, Nanjing 万方 Fang Wan, Ph.D. 万方博士, ,博士导师 品牌中国规划院理事(国家级智库),品牌思为俱乐部联合创始人 Director of International Executive Program, 国际高管培训项目总监 Professor of Marketing 市场营销教授 Ross Johnson Research Fellow 罗斯约翰逊研究员 Asper School of Business艾斯伯商学院 University of Manitoba, Canada 加拿大曼尼托巴大学 希伯来大学,泰国UTCC,中欧商学院,新加坡国立,南洋理工,清华,香港中文, 香港理工,河北理工,陕西理工,西南财大,讲座, 客座海外教授; Hebrew University,. UTCC Thailand, CEIBS, National University of Singapore, Nanyang Technological University, Hong Kong Polytech University, Qinghua, Chinese U of Hong Kong, Hebei Technological University, Shannxi Technological University, SWUFE, Managerial Hat . Brand China Planning and Strategy Institute 品牌中国规划院理事,海外部长,中国 . Executive Committee Member of Einstein Legacy Project 爱因斯坦品 牌执行董事, 以色列 . Founder, Book Club of Chinese Chamber of Commerce, 加拿大 华商会读书会创始人 . Co-founder, Fella Club, 成都FELLA学社联合创始人 . Co-founder, Branding Thought and Action, 品牌思为俱乐部联合 创始人,清华大数据协会 我的穿梭 My Journey 品牌实战 品牌理论 Brand Practice Brand Theory 品牌实战家 品牌学者 Coach Researcher 西方 中国 China West 世界 Global Interbrand: Top 100 Global Brands 2015 5 6 7 8 Part of My job during the past few years: Decoding/coaching Learning/imitation/emulation/Innovation 9 洞见 insight 真相 truth 开脑洞 open up mind 新的视角 new 多元视角 diverse perspectives 整合,运用, 落地 My Integrate, landing Intentions: 执行,跟踪, 反思 我的框架 Execute, track, reflect Three Anecdotes Emulation Imitation Learning of what? 11 Dove Real Beauty Models Functional Defining Debunking Self Evolution of Beginning Beauty Myths Acceptance Evolution Authentic Happy Me: Dove Ideal Me: Mainstream 99% 14 What branding is NOT? 15 Visible and Invisible Facets of Branding Brand artifacts: Customers Visible e.g., logos, graphics, Choice/purchase Marketing tactics Internal brand Employees: processes: their endorsement corporate culture Invisible Drivers Mindset of leaders: Brand Soul: long vs.
    [Show full text]
  • 1623 Fairorchard Ave San Jose CA 95125 (408) 723-1925 E-Mail: [email protected]
    Robert Bowdidge 1623 Fairorchard Ave San Jose CA 95125 (408) 723-1925 e-mail: [email protected] INTERESTS: Make life better for programmers by improving both their tools and their platforms. EXPERIENCE: 5/15 - present Sabbatical Year. Started 3d printing company (www.drycreekmodels.com), family, travel. 12/08 - 5/15: Senior Software Engineer, Google, Mountain View CA. 11/14 - 5/15: Engineer, Google-Wide Profiling team. Developing large-scale distributed system for profiling all jobs running across multiple data centers, dynamically adjusting profiling rates to ensure maxi- mum data with minimum overhead. Built servers handling configuration of profiling rates and gathering of completed profiles. Coded in Go. 12/12 - 11/14: Engineer, Code Cultivation team. Led work to remove all references to an older, widely used C++ API for one of Google’s core data structures across Google’s entire codebase. Convinced code owners to rewrite code, automatically converted other code using Clang-based refactoring tools, and personally rewrote portions of Google infrastructure when necessary. Team responsible for around 1 million lines of code changed. 3/12 - 12/12: Manager, Code Health Tooling team. Managed five engineers and three projects finding bugs in Google’s Java code, cutting compile and test times by removing unneeded dependencies in our build system, and tracking down performance issues in C++ servers. 7/10 - 9/12: Technical lead/manager, XRay C++ profiling tools team. Developed profiling tools for diagnosing long-latency RPCs on production servers. Implemented web-based trace browser in Python. Worked with teams across Google to adopt the tools and interpret results.
    [Show full text]
  • Eliminating Code Duplication in Cascading Style Sheets
    Eliminating Code Duplication in Cascading Style Sheets Davood Mazinanian A Thesis In the Department of Computer Science and Software Engineering Presented in Partial Fulfillment of the Requirements For the Degree of Doctor of Philosophy (Software Engineering) at Concordia University Montréal, Québec, Canada August 2017 c Davood Mazinanian, 2017 Concordia University School of Graduate Studies This is to certify that the thesis prepared By: Mr. Davood Mazinanian Entitled: Eliminating Code Duplication in Cascading Style Sheets and submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy (Software Engineering) complies with the regulations of this University and meets the accepted standards with respect to originality and quality. Signed by the final examining commitee: Chair Dr Jia Yuan Yu External Examiner Dr Foutse Khomh Examiner Dr Juergen Rilling Examiner Dr Wahab Hamou-Lhadj Examiner Dr Peter Rigby Supervisor Dr Nikolaos Tsantalis Approved by Dr Volker Haarslev, Graduate Program Director 30 August 2017 Dr Amir Asif, Dean Faculty of Engineering and Computer Science Abstract Eliminating Code Duplication in Cascading Style Sheets Davood Mazinanian, Ph.D. Concordia University, 2017 Cascading Style Sheets (i.e., CSS) is the standard styling language, widely used for defining the presentation semantics of user interfaces for web, mobile and desktop applications. Despite its popularity, CSS has not received much attention from academia. Indeed, developing and maintaining CSS code is rather challenging, due to the inherent language design shortcomings, the interplay of CSS with other programming languages (e.g., HTML and JavaScript), the lack of empirically- evaluated coding best-practices, and immature tool support. As a result, the quality of CSS code bases is poor in many cases.
    [Show full text]
  • Rich Hong Ȑ (412) 436-4788 | a [email protected] | S Richhong.Com | H Hongrich | D Hongrich
    Rich Hong Ȑ (412) 436-4788 | a [email protected] | S richhong.com | H hongrich | D hongrich Summary Highly experienced software engineer with 10 years of industry experience building products for consumers, enterprises, and developers. Interested in working with a diverse team that communicates clearly and intentionally. Motivated to improving team productivity through process improvements and automation. Thrive on diving deep into complex problems involving distributed services and system architectures. Experience Confide New York, NY Co‐founder & Chief Technology Officer January 2014 — December 2020 • Acquired by IAC in December 2020 • Developed multiple ideas from the ground up into successful products for consumers, enterprises, and developers • These revenue generating products combined to support a profitable business ($1 million ARR) • Established the overall technical vision and led all aspects of technology development • Oversaw all technology services and software architecture and managed technology‐related budgets • Confide (20k+ paid subscribers; 200+ countries) getconfide.com – Confidential messenger with encrypted, ephemeral, and screenshot‐proof messages – Developed native mobile applications for iOS in Objective‐C and Android inJava – Developed cross‐platform desktop app for macOS and Windows with Electron, React, and CoffeeScript – Propelled company into profitability with Confide Plus, consumer in‐app purchase subscriptions for premium features – Launched an enterprise edition as Confide Pro including a web management
    [Show full text]