JavaScript and Open Data
eBook - ePub

JavaScript and Open Data

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

JavaScript and Open Data

About this book

This book will teach you how to take advantage of the JavaScript language to process data provided on the Internet.

Much attention is given to the main JavaScript backbone: prototype based objects, and functional capabilities, while common features (loops, etc.) are summarized in a few cheat-sheets. Only operational features are detailed through the coding of several applications -the second and largest part of the book-, on free-access datasets (e.g. World Bank). It includes: cartography (SVG or API's based), data-sheets access (via Ajax or Jsonp), video data and post-synchronization, and animation examples.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access JavaScript and Open Data by Robert Jeansoulin in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Engineering. We have over one million books available in our catalogue for you to explore.

Information

PART 1
Core JavaScript

Introduction to Part 1

This part deals with the fundamentals of JavaScript, whatever the environment in which it is hosted. Most of the time, JavaScript is associated with a browser, but it is a language by itself. We use the term ā€œCore JavaScriptā€ or ā€œECMAScriptā€ to mean what is ā€œpure JavaSciptā€, in contrast with what is added by the environment into which JavaScript is embedded.
There is no need to be a JavaScript expert, good applications can be quickly programmed, provided that you adopt some ā€œgood practicesā€. Coding without good practice (aka. ā€œanti-patternā€) may seem correct while being silently error prone, with errors difficult to spot. That is why you will find ā€œRecommendationsā€ paragraphs throughout the chapters, suggesting ways to encode ā€œpatternsā€. ES5 and ES6 standards facilitate this type of coding.
Part 1 can be used as a manual: going directly to the section that concerns one immediate problem, or instead studying a chapter more in depth, for instance with the sensitive issues of the language (e.g. prototypes, closures). Here is a quick tour of the features of this amazing language:
– Variables: declaration, definition, types (ban every ā€œvarā€):
Here, we insist on the subtle distinction between the status of ā€œdeclaredā€ and ā€œdefinedā€ variables, which deserves a particular attention. In this chapter, the creation of the tree structure of ā€œvariable scopesā€, the implicit ā€œhoistingā€ and the (dangerous) implicit declaration of global variables are presented. The ES6 version provides new declaration keywords, which can avoid many (silent) causes of error.
– Controls: booleans, tests and loops (replace ā€œforā€ loops by array methods):
JavaScript looks classically procedural, when it comes to controlling the status of variables. But several operators may react surprisingly, due to their ā€œpolymorphismā€: they do not react in the same way according to the type (e.g. number or string) and implicit (silent) recasting can be done. We emphasize such traps, and suggestions are provided to avoid them.
– Data: characters used as numbers, and strings and dates:
An appropriate format is required to represent quantitative (numbers) or qualitative data (names, texts, dates). Any unicode character can be used, and figures can be used within numbers or names or dates: we detail some issues related to type conversions and value comparisons, which are among the tricky points.
– Objects (restrict ā€œnewā€ to built-in or APIs objects):
The construction of specific objects is required to structure linked data into meaningful information and to assign it the a...

Table of contents

  1. Cover
  2. Table of Contents
  3. Introduction
  4. Part 1: Core JavaScript
  5. Part 2: Client-Side JavaScript
  6. Part 3: Applications
  7. Bibliography
  8. Index
  9. End User License Agreement