互联网从业者充电站
11:59 · 2023年6月8日 · 周四
#程序员
这个作者很有意思,写了一篇教程,教你如何写出
💩
一样的代码,
https://github.com/trekhleb/state-of-the-art-shitcode,包括了命名、注释、缩进、错误处理、嵌套等几个方面。
相对应的,Google 也开源了一份项目风格指南,教你怎么把代码写的更加优雅,可以对比着看看:
https://zh-google-styleguide.readthedocs.io/en/latest/google-javascript-styleguide/contents/
Home
Powered by
BroadcastChannel
&
Sepia