fork 自 xudaolong 的 CodeVar https://github.com/xudaolong/CodeVar
开发基于 Javascript
、 alfy
、有道翻译api
;
- 修复了 xudaolong/CodeVar 旧版本有道 API 无法使用问题
- 调整 appKey 和 key 为 al 的 env 配置
- Node.js 8+
- Alfred 3
- 使用标准的缩写(如 rpt)。✔️
- 去掉虚词 and,or,the。✔️
- 使用名字中的每一个重要单词,最多不超过 3 个。❎
- 去掉无用的后缀(如 ing、ed 等)。❎
- 确保不要改变变量的含义。✔️
- 不要从每个单词中删除一个字符的方式来缩写。❎
- 缩写要一致:如果将 function 缩写成 func。那么将整个项目里,最好都统一使用这种缩写。✔️
小驼峰命名法:xt
大驼峰命名法:dt
下划线命名法:xh
常量命名法:cl
中划线命名法:zh