hello everyone, welcome to my bolg, here i will introduce something interesting, and if you are interested it, please just let me know. follow me and send me a message are both avaiable.
what is mermaid?
Mermaid 是一個工具,它能讓你用簡單的文字代碼,自動畫出各種圖表。
為什么我喜歡用 Mermaid?(不一定是mermaid,也可以是類似的文字畫圖方法)
簡單: 寫文字比用鼠標畫圖更快,尤其對于developer。
可以遷移,可以理解。可以版本管理。可以文字檢索。
how to visualize mermaid
in online editor
in your own code
result 最終的效果
on the other hand, 另外我還有關于前端路由vs后端路由的思考
前端路由
比如react里面,主要是路由的地址和組件之前的關系問題。
比如path=“/abc” and compontents 對應 <Abc />
后端路由
as we all know, 我們可以在后端注冊路由,那么前端是否可以通過注冊路由的方式實現呢?技術上應該可以實現的,但是設計上常用的框架并沒有這么設計。基本上前端路由還是聲明式的。
不過到了nextjs上面有些有趣的事情,基于文件系統路由,本質上就是路由注冊吧