歡迎來到 JSDC 2018 共筆
另外點選筆記中的 符號就可以直接對那個段落補充或留下意見哦!
jsdc2018
Observer pattern in the origninal Gang of Four
Excel is a good example
And then we have Rx.JS
reactive-ruben.js
在 textbox 的 chnage event 發生時,將值複製到其他地方
如果有很多這種情況,會無法 scalable,一個 textbox 更新,要找到很多其他的 element 去更新
資料與 HTML 元件高度耦合
所有的 Element 去 listen textbox 的 value change
It gets worse in the frontend code. (jQuery Bootstrap …)
40000 lines of code (css)
50 different files, all clones (template)
what is a complex UI
Pick a category -> pick a role -> pick a year
In 2 months, all forms have been successfully converted to vue.js
Validation
Select Data Population
IT WAS PAINFUL
「並不是在寫新的 app,也不是 refactor,只是在 clean up 而已」
100% of jquery usage was to manipulate the DOM
jquery -> vue
In 2 months, from 1 API endpoint to 30+ endpoints
Change the backend to api driven backend
Triggered the client to launch a mobile app
Codebase further reduced by… 30~40%
How our experiences demonstrated something important…
Vue.js can be used in many ways, simplest way is unobtrusive
Balance the cost of paradigm change vs. paying off tech debt
Have an idea what you are working towards
Refactor and develop at the same time
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing