编程规范
文章平均质量分 56
编程规范是编程艺术的基石
落落叶叶无声
做过后端,现在主前端的开发工程师...
展开
-
【编程规范】编程中常见中英文词汇对照
中文 英文 备注 添加 add / 插入 insert / 创建 create, new 强调从无到有 保存 save / 缓存 cache / 删除 delete, remove / 修改 modify 不要使用 change 更新 update 不要使用 change 替换 replace / 提交 submit / 搜索 search 常用于搜索框 查找 find 比如查找字符串 查找 query 常用于数据库 获取 get / ...原创 2021-01-15 16:21:48 · 995 阅读 · 0 评论 -
【编程规范】命名变量的艺术
There are only two hard things in Computer Science: cache invalidation and naming things. — Phil Karlton 给各种东西命名着实有难度,但合理地命名得到的回报是值得我们付出心思的。你是否曾经见过类似这种代码? const convertObj = (x, y, z) => { const k = Object.keys(x); return k.map((key) => { .翻译 2021-01-05 15:13:56 · 268 阅读 · 0 评论