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
xxxxxxxxxx
複合框架遷徙的正確姿勢 — AngularJS 到 React
tags:
2018
,R3
位置: R3
講者:曾苔眠
簡報 https://speakerdeck.com/alxtz/refactoring-from-angularjs-to-react
電子吉他產品特色
產品使用技術
problems
Turing point
Tip A
Always Communicate
Tip B
If expected codebase lifetime will longer then 1-year
Caring Engineering Health
Tip C
It's your job to defend the clean code.
我們會舉辦讀書會,一起讀clean code。
你與需求方都有同等專業與需要來維護你的程式碼品質。
3 main problems
1. DI & $events are't scalable
Angular與後面的framework有差距一段不小的時間。
DI -> Dependecy Injection
模組化的問題
Nested Dependecy will be easier for management

image via
Solution
$events
solution
Redux
Reasons to use Redux
抽象層夠厚,不與任何框架相依。
view 組織較有邏輯,相對好除錯。
而且與其他框架的橋接 library 夠多
Combo - Components in AngularJS
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Components, Components, Components!..and Angular 1.5 - Pete Bacon Darwin
2. Build tools
Gulp -> Webpack
Reasons from Gulp to NPM + Webpack
3. React
Why
How to
Total Rewrite
rm -rf ./
Progressively Rewrite
Summary
.
problems