<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Faye Yujing Ma on Medium]]></title>
        <description><![CDATA[Stories by Faye Yujing Ma on Medium]]></description>
        <link>https://medium.com/@fayeyujingma?source=rss-227826cb53d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xH9URjOLcIoeeIFrS8JQYQ.jpeg</url>
            <title>Stories by Faye Yujing Ma on Medium</title>
            <link>https://medium.com/@fayeyujingma?source=rss-227826cb53d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:24:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fayeyujingma/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction to Javascript, ES5 and ES6]]></title>
            <link>https://medium.com/@fayeyujingma/introduction-to-javascript-es5-and-es6-65271e527e74?source=rss-227826cb53d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/65271e527e74</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[es6]]></category>
            <dc:creator><![CDATA[Faye Yujing Ma]]></dc:creator>
            <pubDate>Sun, 03 Sep 2017 15:27:16 GMT</pubDate>
            <atom:updated>2017-09-03T15:27:16.443Z</atom:updated>
            <content:encoded><![CDATA[<p>Javascript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. It is an interpreted programming language with object-oriented capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*qdv5Ek0QL13xHn7t_7jANQ.png" /></figure><p><strong>1. What javascript is made of?</strong></p><p>EMCA Script (Core component): As the core of javascript, it defines the components of this language: syntax, type, string, keyword, reserved keyword and object.</p><p>DOM (document object module): DOM maps the entire webpage to a multi-layer node, which allows developers to add, delete, replace or edit any nodes by the API that provided by DOM.</p><p>BOM (browser object module): Supports browser object models that can access and manipulate browser windows, and developers could control parts of the page that the browser displays.</p><p><strong>2. What is ES5?</strong></p><p>The fifth version of ECMAScript. (The fourth verison was abandoned due to its’ complexity). Here are the features that ES5 added:</p><p><strong><em>I. Strict Mode:</em></strong> It is a way to <em>opt in</em> to a restricted variant of JavaScript. Strict mode isn&#39;t just a subset: it <em>intentionally</em> has different semantics from normal code.</p><p><strong><em>II. Added Array Methods:</em></strong></p><p>every</p><p>some</p><p>forEach</p><p>filter</p><p>indexOf</p><p>lastIndexOf</p><p>isArray</p><p>map</p><p>reduce</p><p>reduce Right</p><p>Function.prototype.bind</p><p>String.prototype.trim</p><p>Date.now</p><p><strong><em>III. Added Object Methods:</em></strong></p><p>Object.getPrototypeOf</p><p>Object.create</p><p>Object.getOwnPropertyNames</p><p>Object.defineProperty</p><p>Object.getOwnPropertyDescriptor</p><p>Object.defineProperties</p><p>Object.keys</p><p>Object.preventExtensions / Object.isExtensible</p><p>Object.seal / Object.isSealed</p><p>Object.freeze / Object.isFrozen</p><p><strong>3. What is ES6?</strong></p><p>ES6 provides lots of new features based on the premise of backward compatibility. Here are the new features of ES6:</p><p><strong><em>I. Block scope, key words let and const.</em></strong></p><p><strong><em>II. Property value shorthand:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zC9-efidjRgCzluhqTNHGw.png" /></figure><p><strong><em>III. Destructuring.</em></strong></p><p><strong><em>IV. Parameters-Defult, Rest, Spread:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qEBlJ4Ali8DH3N6uAnw94Q.png" /></figure><p><strong><em>V. Arrow functions:</em></strong></p><p>Arrow functions simlifies code form and return expression results as default.</p><p><strong><em>VI. Template literals:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6y3R4rK47CD6sX2G3l8OGQ.png" /></figure><p><strong><em>VII. Iterators + for…of.</em></strong></p><p><strong><em>VIII. Generators.</em></strong></p><p><strong><em>IX. Class:</em></strong></p><p>Class has constructor, extends and super, essentially it’s the syntactic sugar, which means it doesn’t effect function, but is more handy for developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5R3VtATcV3EDNtRPIk7NXg.png" /></figure><p><strong><em>X. Modules:</em></strong></p><p>ES6’s built-in module features draw on the advantages of Common JS and AMD. It has the features of explicit syntax of CommonJS, single exports and cyclic dependencies. And just like AMD, it supports asynchronous loading and configurable module loading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oz1JFCSHM0f2_puLLD695g.png" /></figure><p><strong><em>XI. Map + Set + WeakMap + WeakSet</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sa8RPB_J8xylTfPLi84rQw.png" /></figure><p><strong><em>XII. Math + Number + String + Array + Object APIs</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqG8T0jLIu0MSl20DxuP_A.png" /></figure><p><strong><em>XIII. Proxies</em></strong></p><p>Using proxy to watch the operation of objects, and do something in response. Here are the operations that could be watched: get, set, has, deleteProperty, apply, construct, getOwnPropertyDescriptor, defineProperty, getPrototypeOf, setPrototypeOf, enumerate, ownKeys, preventExtensions, isExtensible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-naLKSy35flBbho6CJLXpw.png" /></figure><p><strong><em>XIV. Symbols</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bRbNpLxvAiKOZmh9cBeezQ.png" /></figure><p><strong><em>XV. Promises</em></strong></p><p>Promises deal with asynchronous operation of objects, the use of promise object can be used after a chain call to organize code to make code more intuitive (similar to jQuery deferred object).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VHQT0hFrYtJMy824HfqgOw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65271e527e74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Emmet: a necessary plug-in in writing HTML and CSS]]></title>
            <link>https://medium.com/@fayeyujingma/emmet-a-necessary-plug-in-in-writing-html-and-css-148ce17f4add?source=rss-227826cb53d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/148ce17f4add</guid>
            <dc:creator><![CDATA[Faye Yujing Ma]]></dc:creator>
            <pubDate>Sun, 30 Jul 2017 22:33:02 GMT</pubDate>
            <atom:updated>2017-07-30T22:33:02.734Z</atom:updated>
            <content:encoded><![CDATA[<p>Emmet is a powerful plug-in that combines the abbreviations in both HTML and CSS. The speed of coding will be improved a lot after installing the plug-in. Even though coding is not as time-consuming as thinking, it’s still exciting that the plug-in could make our typing faster and easier.</p><p>There is an article published on SmashingMagazine that introduce the ways to use emmets specifically:</p><p><a href="https://www.smashingmagazine.com/2013/03/goodbye-zen-coding-hello-emmet/">Goodbye, Zen Coding. Hello, Emmet! - Smashing Magazine</a></p><p>If you found that you already fall in love with the plug-in, youu can visit their website:</p><p><a href="http://emmet.io/">Emmet - the essential toolkit for web-developers</a></p><p>Here Are Some Abbreviation in HTML by Emmet:</p><ul><li>html:5 or ! for an <a href="http://caibaojian.com/t/html">HTML</a>5 doctype</li><li>html:xt for an XHTML transitional doctype</li><li>p.bar#foo turns to:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*3XCHKDypH5nvNgX9f5fbZg.png" /></figure><ul><li>a[href=#] turns to:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*kB0GyKBv6xNnsSYHJQ_FNQ.png" /></figure><ul><li>ul&gt;li*3 turns to:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*-5oWuXFT5Ql86huuF5PZPA.png" /></figure><ul><li>lorem10 turns to:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*WcbNINm4PoYE7X01Dg5OKw.png" /></figure><p>Here Are Some Abbreviation in CSS by Emmet:</p><ul><li>w100 turns to:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*ASsqVI8W5xRAC3cts_xJaw.png" /></figure><ul><li>ov:h turns to:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*bDudpQ4tVAJRcRpqReTqdQ.png" /></figure><p>They’are just some examples, you can find more shortcuts in here:</p><p><a href="https://github.com/sergeche/emmet-sublime#overriding-keyboard-shortcuts">sergeche/emmet-sublime</a></p><p>Hope you will enjoy your emmet journey! :-D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=148ce17f4add" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>