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上面有些有趣的事情,基于文件系统路由,本质上就是路由注册吧