fuRan's Code 皆無は真実、万事が許す。
Posts with the tag 设计规划:

实现一个红绿灯

前几天遇到一道有意思的题目。
大意是用 async 和 await 实现一个红绿灯。红灯停 5s、绿灯 10s、黄灯 3s。

扩展:支持手动切换当前灯的状态

用户中心重构

一年前写了个用户中心,基本设计在这里老的设计与实现,但只实现了诸如用户的 CURD、登录、注册和登出。根本就没有按 RBAC 来。今年填 qiankun 坑的时候顺便重构了用户中心,基于 RBAC 去实现。

前端仓库
后端仓库

回顾一下

\(\begin{matrix} 权限 \in 角色 \in 用户 \end{matrix}\)

用户角色的集合,角色又是权限的集合,
RBAC 就是维护这么一个关系

【单词卡】设计规划

前言

这就是个单词卡(flashcard),写来记单词的。本篇博文用来记录一些大纲。
灵感来自

用户中心设计

前言

最近接触了微前端 qiankun,打算玩下,先把用户中心抽离出来,做单独模块;恰好接触到了 RBAC 模型,就写一篇博文记录。

【人月神话】章节16 阅读笔记

没有任何技术或管理上的进展,能够独立地许诺十年内使生产率、可靠性或简洁性获得数量级上的进步。

There is no single development, in either technology or management technique, which by itselfpromises even one order-of-magnitude improvement within a decade in productivity, in eliability,in simplicity.

硬件提高的性能,很快被软件消耗掉了
– 安迪比尔定理

Andy gives, Bill takes away.
– Andy and Bill’s Law

集成电路上可容纳的晶体管数目,约每隔两年便会增加一倍
– 摩尔定律

number of transistors on a given chip can be doubled every two years
– Moore’s Law

【人月神话】章节15 阅读笔记

本章的主要身体力行的传授了制作一份文档的细节;流程图的心得;以及探讨了自文档化。

【人月神话】章节14 阅读笔记

本章严肃的讨论了 里程碑 ,并推荐了一种工具 —— PERT

项目是怎样延迟了整整一年的时间?…一次一天。
How does a project get to be a year late? … One day at a time.

【人月神话】章节13 阅读笔记

此章是从全局视角出发,讲了不少防控bug、debug方面的思路,但由于对debug的应对上已经有些年代了,我认为不太适用于当下,故不赘述。 bug

【人月神话】章节12 阅读笔记

巧匠因为他的工具而出名。

  • 谚语

A good workman is known by his tools.

  • PROVERB

【人月神话】章节11 阅读笔记

不变只是愿望,变化才是永恒。
SWIFT

普遍的做法是,选择一种方法,试试看;如果失败了,没关系,再试试别的。不管怎么样,重要的是先去尝试。

  • 富兰克林 D. 罗斯福

There is nothing in this world constant but inconstancy.
SWIFT

It is common sense to take a method and try it. If it fails, admit it frankly and try another. Butabove all, try something.

  • FRANKLIN D. ROOSEVELT