Object-Oriented Javascript

Total Page:16

File Type:pdf, Size:1020Kb

Object-Oriented Javascript BOOKS FOR PROFESSIONALS BY PROFESSIONALS® Odell RELATED Pro JavaScript Development Pro JavaScript Development is a practical guide for front-end web developers who are experienced at building web pages with HTML, CSS, and JavaScript, and now wish to advance their JavaScript skills to a higher level. You will learn how to build large, well-structured, high quality, mobile-optimized web sites and apps, using the latest supported browser APIs, language features, and tools. This book teaches and shows you in practical hands-on terms how you can: • Master the performance, reliability, stability, and code manageability of your JavaScript • Understand and write efficient object-oriented and prototypal code, including full understanding of the ‘this’ keyword • Boost the performance of your JavaScript code • Architect large web applications using common design patterns • Write high quality JavaScript code and avoid the pitfalls most likely to cause errors • Manage code dependencies with AMD and RequireJS • Develop for mobile, build games, and set up a real-time video chat using modern APIs such as Geolocation, Canvas and WebRTC • Document your code as the professionals do • Write command-line and web server applications in JavaScript with Node.js • Use build tools, such as Grunt and Gulp, to automate repetitive tasks and improve your development workflow Using real-world examples and applications that you’ll build yourself, Pro JavaScript Development has unique, practical content that will make you a better JavaScript developer. Become a master of the latest JavaScript coding techniques and tools, and harness its best capabilities today. What you’ll learn: • To build faster and more efficient web apps using the latest techniques • How to select the best libraries and frameworks for each project based on design patterns and sound principles • To manage JavaScript objects with inheritance through the ‘prototype’ property and the ‘this’ keyword • To unit test your JavaScript, to measure and improve the quality of your code • To create your own web server using Node.js, featuring real-time bidirectional communication with web sockets US $ 44.99 Shelve in ISBN 978-1-4302-6268-8 Web Development/JavaScript 54499 User level: Intermediate–Advanced SOURCE CODE ONLINE 9781430 262688 www.apress.com www.it-ebooks.info For your convenience Apress has placed some of the front matter material after the index. Please use the Bookmarks and Contents at a Glance links to access them. www.it-ebooks.info Contents at a Glance About the Author ................................................................................................................ xv About the Technical Reviewers ........................................................................................ xvii Acknowledgments ............................................................................................................. xix Introduction ....................................................................................................................... xxi ■ Chapter 1: Object-Oriented JavaScript ..............................................................................1 ■ Chapter 2: Documenting JavaScript ................................................................................37 ■ Chapter 3: Writing High-Quality JavaScript ....................................................................65 ■ Chapter 4: Boosting JavaScript Performance .................................................................91 ■ Chapter 5: Design Patterns: Creational .........................................................................119 ■ Chapter 6: Design Patterns: Structural ..........................................................................137 ■ Chapter 7: Design Patterns: Behavioral .........................................................................163 ■ Chapter 8: Design Patterns: Architectural .....................................................................199 ■ Chapter 9: Managing Code File Dependencies ..............................................................223 ■ Chapter 10: Mobile JavaScript Development ................................................................237 ■ Chapter 11: Building Games with Canvas API ...............................................................261 ■ Chapter 12: Using WebRTC for Video Chat .....................................................................321 ■ Chapter 13: Using Client-Side Templates ......................................................................341 ■ Chapter 14: The Node.js Application Platform ...............................................................369 v www.it-ebooks.info ■ CONTENTS AT A GLANCE ■ Chapter 15: Build Tools and Automation .......................................................................391 ■ Chapter 16: Browser Developer Tools ...........................................................................423 Index .................................................................................................................................439 vi www.it-ebooks.info Introduction I wrote this book for the benefit of developers who have familiarized themselves with the JavaScript language and who want to take their knowledge to the next level, to become professional JavaScript developers. As I see it, there are three aspects to modern JavaScript development: Coding, Capabilities, and Tooling. Because I believe that these topics are intertwined, rather than divide the book into three distinct sections, these threads run through every chapter. My mission is to help you create the highest quality, most maintainable, scalable, and efficient code you can, taking advantage of modern coding techniques, capabilities, and tooling to help you get there. As you follow through the material in this book, your coding skills should improve; you’ll learn the details of JavaScript objects, about context, scope, prototypes, and inheritance, as well as the latest updates to the language that have landed in the major browsers. You’ll also learn all about design patterns, how to comment your code in the best way for your project team, and how to boost the performance of your running code. You’ll discover capabilities of the language that you may not have been familiar with previously, including native APIs for drawing and building games that run in the browser, that allow for plugin-free video chat, and others specifically for mobile device development. Developers are taking advantage of tools and automation more than ever to help their development workflow and improve the quality of the code that they produce. In this book, you’ll discover how to check code quality, how to auto-generate a documentation website from your code, how to run a series of tasks on your code to improve your day-to-day workflow and to package your code up for release to the public, and, finally, how to use the developer tools built into the major browsers to help debug and profile your code as it runs in place. By the end of this book, you should have the knowledge and experience to be a professional JavaScript developer, capable of building applications that are high-quality, maintainable, scalable, and efficient. Let’s get started! xxi www.it-ebooks.info CHAPTER 1 Object-Oriented JavaScript If you’ve been developing websites for some time, you may have heard other programmers decree that JavaScript is not an object-oriented programming language, and often in the same sentence write off the language as a result. As JavaScript developers, it’s up to us to educate each other and any naysayers about the JavaScript language, for it is indeed an object-oriented language, and a very powerful one at that. In reality, when other programmers dismiss JavaScript, they are often belittling it for the fact that it does not adhere to all the same structures and conventions of classical languages, such as C++, Java, PHP, and Objective-C. This is not necessarily a negative, in my opinion, as JavaScript, if written in the right way, actually provides more flexibility by not having such a rigid structure enforced upon it. In this chapter, I will explain how you can harness the power of JavaScript to write code using object-oriented programming principles adopted by other languages, emphasizing the ways in which this is made more flexible through JavaScript. I will also cover some of the built-in objects contained in the language itself, and some lesser-known facets of these. ■ Note A classical programming language is one that defines and creates objects through blueprints or templates known as classes, hence the name. Objects in JavaScript An object in JavaScript is a standalone entity consisting of one or more related variables and functions, known as properties and methods, respectively. Objects are used to group together related concepts or functionality, often things that tie back to the real world or to specific software behavior. They make code easier to understand for developers, and so ultimately they make code easier to read and write. Custom Objects The simplest way of creating your own object for use in your JavaScript code is to use object literal notation, denoted by curly braces, when defining a variable. Properties and methods can then be attached to the object by encapsulating their names and values within the braces, using the format shown in Listing 1-1. Here we create a new object to represent a house, with two properties and two methods. Once created, we can read and write properties and methods within
Recommended publications
  • Learning Javascript Design Patterns
    Learning JavaScript Design Patterns Addy Osmani Beijing • Cambridge • Farnham • Köln • Sebastopol • Tokyo Learning JavaScript Design Patterns by Addy Osmani Copyright © 2012 Addy Osmani. All rights reserved. Revision History for the : 2012-05-01 Early release revision 1 See http://oreilly.com/catalog/errata.csp?isbn=9781449331818 for release details. ISBN: 978-1-449-33181-8 1335906805 Table of Contents Preface ..................................................................... ix 1. Introduction ........................................................... 1 2. What is a Pattern? ...................................................... 3 We already use patterns everyday 4 3. 'Pattern'-ity Testing, Proto-Patterns & The Rule Of Three ...................... 7 4. The Structure Of A Design Pattern ......................................... 9 5. Writing Design Patterns ................................................. 11 6. Anti-Patterns ......................................................... 13 7. Categories Of Design Pattern ............................................ 15 Creational Design Patterns 15 Structural Design Patterns 16 Behavioral Design Patterns 16 8. Design Pattern Categorization ........................................... 17 A brief note on classes 17 9. JavaScript Design Patterns .............................................. 21 The Creational Pattern 22 The Constructor Pattern 23 Basic Constructors 23 Constructors With Prototypes 24 The Singleton Pattern 24 The Module Pattern 27 iii Modules 27 Object Literals 27 The Module Pattern
    [Show full text]
  • Managing Data Visualization Pipeline with Backbone.Js and D3.Js Improving Overall Software Efficiency Using Automated Build Pipeline with Gulp
    Aalto University School of Science Master's Programme in ICT Innovation Taha Kachwala Managing Data Visualization Pipeline with Backbone.js and D3.js Improving overall software efficiency using Automated Build Pipeline with Gulp Master's Thesis Espoo, 10.10.2016 Supervisor: Prof. Petri Vuorimaa Instructor: Pertti Lounamaa Aalto University School of Science ABSTRACT OF Master's Programme in ICT Innovation MASTER'S THESIS Author: Taha Kachwala Title: Managing Data Visualization Pipeline with Backbone.js and D3.js. Improving overall software efficiency using Automated Build Pipeline with Gulp Date: 10.10.2016 Pages: 87 Professorship: Digital Media Technology Code: T-111 Supervisor: Prof. Petri Vuorimaa Instructor: Petri Lounamaa Ph.D. (Economic Systems) This thesis studies how a Model-View-Controller (MV*) framework can be integrated into a Data Visualization Pipeline. Specifically, this thesis aims to cover the challenges related in integrating an MV* framework like Backbone.js with D3.js, which is a popular JavaScript based visualization library. Additionally, it also evaluates another sub-topic regarding task runners, which are tools claiming to automate manual tasks as well as streamlining the build process. Data Visualization has become an important aspect for many web applications. Developers need to employ sophisticated mechanisms to provide interactive visualizations. This requires separation of concerns within the visualization pipeline which is achieved with the combination of Backbone.js and D3.js. Evaluation of this methodology indicates that such a combination enables the application to be more versatile and robust while also improving performance. In recent years, client-side web applications have become increasingly complex. A typical web application on average requires between 10-60 external open-source JavaScript libraries.
    [Show full text]
  • Developing Backbone.Js Applications
    www.it-ebooks.info Developing Backbone.js Applications Addy Osmani Beijing • Cambridge • Farnham • Köln • Sebastopol • Tokyo www.it-ebooks.info Developing Backbone.js Applications by Addy Osmani Revision History for the : 2012-04-19 Early release revision 1 See http://oreilly.com/catalog/errata.csp?isbn=9781449328252 for release details. ISBN: 978-1-449-32825-2 1335306849 www.it-ebooks.info Table of Contents Prelude .................................................................... vii 1. Introduction ........................................................... 1 Fundamentals 2 MVC, MVP & Backbone.js 2 MVC 2 Smalltalk-80 MVC 2 MVC As We Know It 3 Models 4 Views 5 Controllers 8 Controllers in Spine.js vs Backbone.js 8 What does MVC give us? 10 Delving deeper 10 Summary 11 MVP 11 Models, Views & Presenters 11 MVP or MVC? 12 MVC, MVP and Backbone.js 13 Fast facts 15 Backbone.js 15 2. The Basics ............................................................ 17 What is Backbone? 17 Why should you consider using it? 17 The Basics 17 Models 18 Views 21 Creating new views 21 What is el? 22 Collections 23 iii www.it-ebooks.info Underscore utility functions 25 Routers 25 Backbone.history 27 Namespacing 27 What is namespacing? 28 Additional Tips 31 Automated Backbone Scaffolding 31 Is there a limit to the number of routers I should be using? 32 Is Backbone too small for my application’s needs? 32 3. RESTful Applications .................................................... 33 Building RESTful applications with Backbone 33 Stack 1: Building A Backbone App With Node.js, Express, Mongoose and MongoDB 33 Reviewing the stack 33 Practical 34 Practical Setup 40 Building Backbone.js Apps With Ruby, Sinatra, MongoDB and Haml 42 Introduction 42 What Is Sinatra? 42 Getting Started With Sinatra 43 Templating And HAML 45 MongoDB Ruby Driver 47 Getting started 47 Practical 48 Installing The Prerequisites 48 Tutorial 50 Conclusions 57 4.
    [Show full text]
  • Client-Server Web Apps with Javascript and Java
    Client-Server Web Apps with JavaScript and Java Casimir Saternos Client-Server Web Apps with JavaScript and Java by Casimir Saternos Copyright © 2014 EzGraphs, LLC. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/ institutional sales department: 800-998-9938 or [email protected]. Editors: Simon St. Laurent and Allyson MacDonald Indexer: Judith McConville Production Editor: Kristen Brown Cover Designer: Karen Montgomery Copyeditor: Gillian McGarvey Interior Designer: David Futato Proofreader: Amanda Kersey Illustrator: Rebecca Demarest April 2014: First Edition Revision History for the First Edition: 2014-03-27: First release See http://oreilly.com/catalog/errata.csp?isbn=9781449369330 for release details. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Client-Server Web Apps with JavaScript and Java, the image of a large Indian civet, and related trade dress are trademarks of O’Reilly Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.
    [Show full text]
  • Pro-Javascript-Development.Pdf
    BOOKS FOR PROFESSIONALS BY PROFESSIONALS® Odell RELATED Pro JavaScript Development Pro JavaScript Development is a practical guide for front-end web developers who are experienced at building web pages with HTML, CSS, and JavaScript, and now wish to advance their JavaScript skills to a higher level. You will learn how to build large, well-structured, high quality, mobile-optimized web sites and apps, using the latest supported browser APIs, language features, and tools. This book teaches and shows you in practical hands-on terms how you can: • Master the performance, reliability, stability, and code manageability of your JavaScript • Understand and write efficient object-oriented and prototypal code, including full understanding of the ‘this’ keyword • Boost the performance of your JavaScript code • Architect large web applications using common design patterns • Write high quality JavaScript code and avoid the pitfalls most likely to cause errors • Manage code dependencies with AMD and RequireJS • Develop for mobile, build games, and set up a real-time video chat using modern APIs such as Geolocation, Canvas and WebRTC • Document your code as the professionals do • Write command-line and web server applications in JavaScript with Node.js • Use build tools, such as Grunt and Gulp, to automate repetitive tasks and improve your development workflow Using real-world examples and applications that you’ll build yourself, Pro JavaScript Development has unique, practical content that will make you a better JavaScript developer. Become a master
    [Show full text]
  • Developing Backbone.Js Applications
    Developing Backbone.js Applications A book on Backbone.js targeted at beginners and advanced users alike This is the home of 'Developing Backbone.js Applications', an (in-progress) book about the Backbone.js framework for structuring JavaScript applications. It is released under a CC-license. I am quite pleased that this book will be out in physical form in a few months time via O'Reilly Media. Readers will have the option of purchasing the latest version in either print or a number of digital formats then or can grab a copy for free from this repository. Corrections to existing material are always welcome and I hope that together we can provide the community with an up-to-date resource that is of help. My extended thanks to these members of the community for their assistance tweaking the project. Index Introduction Fundamentals MVC, MVP & Backbone.js The Basics Models Views Collections Routers Namespacing Additional tips Advanced Building RESTful applications with Backbone Building a Backbone app with Node.js, Express, Mongoose and MongoDB Modular JavaScript Organizing modules with RequireJS and AMD Keeping your templates external with the RequireJS text plugin Optimizing Backbone apps for production with the RequireJS Optimizer Practical: Building a modular Backbone app with AMD & RequireJS Decoupling Backbone with the Mediator and Facade patterns Backbone & jQuery Mobile Practical: Building a modular mobile app with Backbone & jQuery Mobile Testing Unit Testing Backbone Applications With Jasmine Introduction Jasmine Suites, Specs And
    [Show full text]
  • Mastering Javascript Single Page Application Development
    Mastering JavaScript Single Page Application Development An in-depth guide to exploring the design, architecture, and techniques behind building sophisticated, scalable, and maintainable single-page applications in JavaScript Philip Klauzinski John Moore BIRMINGHAM - MUMBAI Mastering JavaScript Single Page Application Development Copyright © 2016 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: October 2016 Production reference: 1241016 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78588-164-0 www.packtpub.com Credits Authors Copy Editor Philip Klauzinski Safis Editing John Moore Reviewers Project Coordinator Ciro Artigot Ritika Manoj Commissioning Editor Proofreader Wilson D'souza Safis Editing Acquisition Editor Indexer Reshma Raman Rekha Nair Content Development Editor Graphics Divij Kotian Jason Monteiro Technical Editor Production Coordinator Sachit Bedi Aparna Bhagat About the Authors Philip Klauzinski is a senior frontend developer specializing in JavaScript Single Page Application (SPA) development.
    [Show full text]
  • Workflow-Reference Documentation
    workflow-reference Documentation Release 0.1 Visualspace November 20, 2013 Contents 1 HTML 3 1.1 HTML5................................................3 2 Style sheets 5 2.1 Modular architecture.........................................5 2.2 Style Precedence...........................................6 2.3 Browser reset.............................................6 2.4 Sass..................................................7 2.5 Compass...............................................8 2.6 Grid systems.............................................8 2.7 CSS Workflow............................................8 2.8 Device Independent Pixels......................................8 3 JavaScript 9 3.1 Asynchronous Module Definition..................................9 3.2 Template libraries.......................................... 10 3.3 MVC/MVP libraries......................................... 10 3.4 Underscore.............................................. 10 3.5 DOM Libraries............................................ 11 3.6 Node.js................................................ 11 4 Tools 13 4.1 Yeoman................................................ 13 4.2 Grunt................................................. 13 4.3 Assemble............................................... 13 4.4 Bower................................................. 14 4.5 Twitter’s Bootstrap.......................................... 14 4.6 Cross-browser testing........................................ 14 5 Unix reference 15 5.1 Concepts..............................................
    [Show full text]
  • Front-End Developer Handbook 2017
    Table of Contents Introduction 1.1 What Is a Front-End Developer? 1.2 Recap of Front-end Dev in 2016 1.3 In 2017 expect... 1.4 Part I: The Front-End Practice 1.5 Front-End Jobs Titles 1.5.1 Common Web Tech Employed 1.5.2 Front-End Dev Skills 1.5.3 Front-End Devs Develop For... 1.5.4 Front-End on a Team 1.5.5 Generalist/Full-Stack Myth 1.5.6 Front-End interview questions 1.5.7 Front-End Job Boards 1.5.8 Front-End Salaries 1.5.9 How FDs Are Made 1.5.10 Part II: Learning Front-End Dev 1.6 Self Directed Learning 1.6.1 Learn Internet/Web 1.6.1.1 Learn Web Browsers 1.6.1.2 Learn DNS 1.6.1.3 Learn HTTP/Networks 1.6.1.4 Learn Web Hosting 1.6.1.5 Learn General Front-End Dev 1.6.1.6 Learn UI/Interaction Design 1.6.1.7 Learn HTML & CSS 1.6.1.8 Learn SEO 1.6.1.9 Learn JavaScript 1.6.1.10 Learn Web Animation 1.6.1.11 Learn DOM, BOM & jQuery 1.6.1.12 Learn Web Fonts 1.6.1.13 2 Learn Accessibility 1.6.1.14 Learn Web/Browser APIs 1.6.1.15 Learn JSON 1.6.1.16 Learn JS Templates 1.6.1.17 Learn Static Site Generators 1.6.1.18 Learn Computer Science via JS 1.6.1.19 Learn Front-End App Architecture 1.6.1.20 Learn Data API (i.e.
    [Show full text]
  • Design and Implementation of an Efficient Approach for Custom-Fields
    University of Magdeburg School of Computer Science Master's Thesis Design and Implementation of an Efficient Approach for Custom-fields and Formulas with SAP HANA Author: Molham Kindakli July 20, 2015 Advisors: Dr. Steffen Goebel SAP SE Prof. Dr. rer. nat. habil. Gunter Saake M.Sc. David Broneske Department of Data and Knowledge Engineering Kindakli, Molham: Design and Implementation of an Efficient Approach for Custom-fields and Formulas with SAP HANA Master's Thesis, University of Magdeburg, 2015. Acknowledgement This thesis would never have been completed successfully without the help of following people. First and foremost, I would like to thank my adviser Dr. Steffen G¨obel, for his patient guidance during selecting of research topic as well as generous contribution of knowledge and valuable comments during the writing of the thesis. I would also like to thank a second adviser Prof. Gunter Saake, who always promptly answered on all questions and helped with administration issues during the work. I would like to give a special thank to M.Sc. David Broneske for his valuable remarks and suggestions during the work. Furthermore, I must also express gratitude to my family, who continuously supported me and were very patient for my limited time during this work. Contents List of Figures vii List of Tables ix List of Code Listings xi Glossary1 1 Introduction3 1.1 Motivation..................................3 1.2 Goals and tasks...............................3 1.3 Product Life-cycle Costing (PLC).....................4 1.4 Example scenario..............................4 1.5 Related work................................5 1.6 Structure..................................6 2 Background7 2.1 Fundamental basics.............................7 2.1.1 Model-driven engineering......................7 2.1.2 Template engines..........................9 2.2 Technical background...........................
    [Show full text]
  • React Design Patterns and Best Practices
    React Design Patterns and Best Practices Build modular applications that are easy to scale using the most powerful components and design patterns that React can offer you right now Michele Bertoli BIRMINGHAM - MUMBAI React Design Patterns and Best Practices Copyright © 2017 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: January 2017 Production reference: 1100117 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B32PB, UK. ISBN 978-1-78646-453-8 www.packtpub.com Credits Author Copy Editor Michele Bertoli Safis Editing Reviewer Project Coordinator Clay Diffrient Ulhas Kambali Commissioning Editor Proofreader Ashwin Nair Safis Editing Acquisition Editor Indexer Shweta Pant Rekha Nair Content Development Editor Graphics Onkar Wani Abhinash Sahu Technical Editor Production Coordinator Rashil Shah Aparna Bhagat About the Author Michele Bertoli is a frontend engineer with a passion for beautiful UIs.
    [Show full text]
  • Programming Web Applications Declaratively a Qualitative Study
    PROGRAMMING WEB APPLICATIONS DECLARATIVELY A QUALITATIVE STUDY A Thesis by PAWAN KUMAR SINGH Submitted to the Office of Graduate and Professional Studies of Texas A&M University in partial fulfillment of the requirements for the degree of MASTER OF SCIENCE Chair of Committee, Jaakko Järvi Co-Chair of Committee, Jeff Huang Committee Member, Alex Sprintson Head of Department, Dilma Da Silva August 2016 Major Subject: Computer Science Copyright 2016 Pawan Kumar Singh ABSTRACT In the declarative programming approach of property models, a dataflow con- straint system manages the behavior of a user interface. The dataflow constraint system captures the user-interface logic as a set of variables and dependencies be- tween those variables. This thesis builds on the prior work that realizes the property models approach as a concrete library for web development called HotDrink. This thesis evaluates the effectiveness of the declarative programming approach of prop- erty models, describes the experience of implementing a medium-size web application following the approach, and compares property models with existing web frameworks. A particular focus is on how programming with property models helps programmers to avoid defects related to asynchronous execution of responses to user events. ii ACKNOWLEDGEMENTS I would like to express my sincere gratitude to my advisor Dr. Jaakko Järvi for the continuous support, patience and immense knowledge. His guidance helped me throughout, from theoretical concepts to research approach. The weekly meetings and discussions have trained me a lot and helped me in becoming a better researcher. I am also thankful for his constructive feedback I received while writing this thesis.
    [Show full text]