Hubert Wang

I am
Hubert Wang

Wechat Official Account
Find fun things here!

Error Code Table for Error Handling

Codes and Script Folder

Code on Github

Note that: Error Handling code (scripts/errorHandling.js) is in Script folder, and all the error handling function are in this folder.

Error Code Table (New, all codes are based on this table)

Error Code

Error Message

Relevant Resources

Parameters

1......

161

Uber REST - Car, Driver, Passenger Entity

Codes and Files Structure

Github Code Repository

Uber REST designed before

Files Structure:

Result Visualization:Postman and Unit Test

Note that only Car entity’s sample......

191

Vue.js Search Highlight

Introduction

Vue.js tutorial gives Grid Component Example (Search Component) here. To make users easier find the letters matched, I add a highlight function to it as following:

371

RESTful Web Services Design of Uber - Hubert

Driverdriver

{

"name": "",

"email": "",

"phone": "",

"password": ""

}

GET

GET /drivers

// response body

// a list

[{}, {}, {}]

GET /drivers/:driverID

// response body

{

"id": 355,

"name......

194

Angular.js Study Notes

1 Mr-why’s Store1.1 Ramp Up

Directive

Directive is a maker on HTML tag that tells Angular to run or reference some Javascript code.

Modules

Where we write pieces of our Angular application.

Makes our code more maintainable, testable, and readable.

Where we design dependencies for our app......

200

从前端看,什么是从功能性出发的网页设计

有没有网站不需要设计?

大概在去年9月的时候,接了一个做 VALSE 会议网站的项目。项目的 deadline 是“尽快完成”。在这样紧迫的情况下出现了一个问题:找不到设计师。被逼无奈只能硬头皮上了,一把甲方的需求弄清楚,就开始写代码。具体的做法就是:需要10个页面?好,那我就写个 10 标签的导航。需要会议新闻?那我就写个新闻的块儿出来。需要会议位置?那我就添加一个地图插件指向会议地址。需要注册页面?那就写表单咯。就这样一块儿一块儿地写,最后形成了 VALSE 2016 的网站。同样的理念,还做出来了另外一个会议的网站:SIDAS 2016。

177