You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by an...@apache.org on 2019/12/22 12:47:23 UTC

[royale-docs] branch master updated: Update migrate-from-js.md

This is an automated email from the ASF dual-hosted git repository.

andreww pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 9de2361  Update migrate-from-js.md
9de2361 is described below

commit 9de2361d3a886268dc6446753047d50c1f29fb0a
Author: Andrew Wetmore <an...@cottage14.com>
AuthorDate: Sun Dec 22 08:47:17 2019 -0400

    Update migrate-from-js.md
    
    Small text edits; added a subtitle and the permalink
---
 .../migrate-an-existing-app/migrate-from-js.md                | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/create-an-application/migrate-an-existing-app/migrate-from-js.md b/create-an-application/migrate-an-existing-app/migrate-from-js.md
index 37e9691..1925c3c 100644
--- a/create-an-application/migrate-an-existing-app/migrate-from-js.md
+++ b/create-an-application/migrate-an-existing-app/migrate-from-js.md
@@ -16,21 +16,28 @@
 
 layout: docpage
 title: Migrate from JavaScript
+description: Improve your JS development experience
+permalink: /create-an-application/migrate-an-existing-app/migrate-from-js
+---
+layout: docpage
+title: Migrate from JavaScript
 ---
 
 <!-- Based on material written for FlexJS by Peter Ent and modified by Tom Chiverton -->
 
 # Migrate from JavaScript
 
+Improve your JS development experience
+
 JavaScript (JS) is a pervasive scripting language, used for everything from small animations in websites to fully-functioning applications. It is one of the three core languages of the World Wide Web, along with HTML and Cascading Style Sheets (CSS). All modern browsers, on computers and mobile devices, deploy JS by default.
 
 Developing an application in JS generally means creating components that do specific things and then attaching components to each other via code you write. However, JS is a loosely-typed language, so you can literally attach anything to anything, sometimes with unfortunate results. You can assign a String to a variable that was expecting an Integer, and the code will have a tough time proceeding. 
 
-JS has some 'compilers' that try to catch problems before the app user crashes into them, but once you start using Objects or low-level base classes like EventDispatcher, you can easily cause the compiler to lose track of the actual API parameters involved and not find out until too late. Often JS developers make use of libraries of functions developed and shared by other developers, often only loading that codea at runtime. JS verifiers have trouble keeping up when there is a problem in [...]
+JS has some 'compilers' that try to catch problems before the app user crashes into them, but once you start using Objects or low-level base classes like EventDispatcher, you can easily cause the compiler to lose track of the actual API parameters involved and not find out until too late. Often JS developers make use of libraries of functions developed and shared by other developers, only loading that code at runtime. JS verifiers have trouble keeping up when there is a problem in library code.
 
 Most of us are familiar with furniture, toys, and other comsumables that have "some assembly required". That is true of all software languages, but some provide better guidance than others. JS offers lots of options for writing your code and sticking it together, but unless you are very attentive or very experienced, you can end up with a package has a mysterious glitch somewhere inside it that is hard to track down and fix.
 
-Royale is also an assemble-it-yourself language. However, like the better furniture stores that provide not just the nails and screws but instructions with illustrations, Royale helps you develop in a way that minimizes errors. Semi-Structured languages like ActionScript let you establish custom connectors so that the components you write can only go together in certain ways. Declarative languages like MXML provide diagrams to help you see the pieces that you are attaching and what you c [...]
+Royale is also an assemble-it-yourself language. However, like the better furniture stores that provide not just the nails and screws but instructions with illustrations, Royale helps you develop in a way that minimizes errors. Semi-structured languages like ActionScript let you establish custom connectors so that the components you write can only go together in certain ways. Declarative languages like MXML provide diagrams to help you see the pieces that you are attaching and what you c [...]
 
 Many in the JS world use higher-level languages like Dart and TypeScript to reduce the chances of error in the JS code they write. Royale provides similar guardrails; it also provdes the option to use a declarative language, MXML.