Mongo Introduction

Introdution

  1. NoSQL
  2. Open Source
  3. No Need For ORM( Object Relational Mapping)
  4. Document(Record)


Read more

Share

Javascript Prototype

note of You Don’t know JS

Data types in Javascript

// Javascript has 6 primitive data(immutable) types
typeof 3.14  // 'number';
typeof 'bla'  // 'string';
typeof true  // 'boolean'
typeof Symbol.iterator  // 'symbol'
typeof undefined  // 'undefined'
typeof null  // 'object'

// and object
typeof {a:1}  // 'object'
typeof function fn(){}  // 'function', it's in fact an object with special type tag


// object has sub type
Object.prototype.toString.call(fn)  // '[object Function]'

// primitive types have object equivalent that wrap around them.
Object.prototype.toString.call(3.14)  // '[object Number]'
Object.prototype.toString.call('bla')  // '[object String]'
Object.prototype.toString.call(true)  // '[object Boolean]'
Object.prototype.toString.call(Symbol.iterator)  // '[object Symbol]'

Object.prototype.toString.call({})  // '[object Object]'
Object.prototype.toString.call([])  // '[object Array]'
Object.prototype.toString.call(/[a-zA-Z]+/)  // '[object RegExp]'


Read more

Share

Introduction to Vue

Basic

<div id="app">
  {{ message }}
</div>
var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!'
  }
})

Read more

Share

Webpack

Motivation or Problems

  • There are multiple standards of module system in JS world including CommonJS, AMD, ES6 modules and <script> tag style.
  • There are two extremes when transferring modules
    1. one request per module
    2. All modules in one request
  • Why should a module system only help the developer with JavaScript?

IO

Webpack is a module bundler.

It takes a bunch of files, treating each as a module, figuring out the dependencies between them, and bundle them into static assets that are ready for deployment.

what webpack does


Read more

Share

Posts


Read more

Share