这一次,将函数命名为show _ posts 。
命名。 小的函数命名起来要容易一些,因为它做的事情少。
Naming. It's easier to come up with appropriate names for smaller methods that do one thing.
如果你发现自己总是过分注释,请先把函数命名和变量命名处理好。
If you are over-commenting, you're probably naming your functions and variables poorly.
c point You can see inside of it, it's got a set of definitions for things like functions.
我会把它简短的命名为,你可以看到类的里面,有一个对于函数之类的东西的定义集。
All right. So hopefully we're pretty comfortable naming any type of wave function using the chemist terminology.
好了,希望我们都可以,接受这种,用化学术语来命名任何类型的波函数了。
No. So we deliberately, in CS50's library, named these functions consistent with their behavior.
不行,所以我们故意在CS50的函数库中,根据函数的作用来给他们命名。
应用推荐