サクサク読めて、アプリ限定の機能も多数!
Max(a,b) と CopyFile(a,b) は同じ2つの引数を取る関数だが後者は引数に意味合いがあるし順も重要。メソッドにする事で分かりよく出来る。
mattn のブックマーク 2019/09/25 10:22
Be wary of functions which take several parameters of the same type | Dave CheneyMax(a,b) と CopyFile(a,b) は同じ2つの引数を取る関数だが後者は引数に意味合いがあるし順も重要。メソッドにする事で分かりよく出来る。2019/09/25 10:22
このブックマークにはスターがありません。 最初のスターをつけてみよう!
dave.cheney.net2019/09/25
APIs should be easy to use and hard to misuse. — Josh Bloch A good example of a simple looking, but hard to use correctly, API is one which takes two or more parameters of the same type. Let’s comp...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
Max(a,b) と CopyFile(a,b) は同じ2つの引数を取る関数だが後者は引数に意味合いがあるし順も重要。メソッドにする事で分かりよく出来る。
mattn のブックマーク 2019/09/25 10:22
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Be wary of functions which take several parameters of the same type | Dave Cheney
dave.cheney.net2019/09/25
APIs should be easy to use and hard to misuse. — Josh Bloch A good example of a simple looking, but hard to use correctly, API is one which takes two or more parameters of the same type. Let’s comp...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /