52

如何编写高质量的函数 -- 命名/注释/鲁棒篇

 5 years ago
source link: https://juejin.im/post/5c70fe526fb9a04a05404b5e
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
此篇我将会从函数的命名、注释和鲁棒性方面,阐述如何编写高质量的函数。 PS:这一篇相对上一篇文章要简单好懂多了。 引言 写第二篇之前,先说个事情。针对前面我写的 如何编写高质量的函数 -- 敲山震虎篇 文章的评论区,小伙伴提出的一些问题,我也全部都看了,特

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK