Git Product home page Git Product logo

Comments (6)

yisar avatar yisar commented on May 24, 2024

编注释太难了。。。

from fre.

n9sr5y avatar n9sr5y commented on May 24, 2024

哈哈,有利于更多人加入,也更有利于后续重构。举个例子(虽然不确切),像“d: IFiber”(),是代表什么,只能通过上下文联系得出。像这种,可以增加下注释,像“export type SetStateAction = S | ((prevState: S) => S)”一看就清楚的,就暂时不用啦,让社区的人维护合并进来。

from fre.

yisar avatar yisar commented on May 24, 2024

那个类型不是我写的,对我而言,写注释比写代码还难

from fre.

yisar avatar yisar commented on May 24, 2024

重构了,已经没得 d 变量了-_-||,我发现注释有利于提升测试覆盖率,之后编一点

from fre.

Flcwl avatar Flcwl commented on May 24, 2024

不写注释可不好开源参与维护

from fre.

yisar avatar yisar commented on May 24, 2024

我又重构了一波,现在没有很奇怪的命名了,注释的话我也不晓得怎么加比较好

from fre.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.