2019/12/30 にっき
最近さぼりがちだったので書くことにした、休んだときしれっと投稿しはじめるほうがいいのは学校もブログも同じなんだよな...
ruby-signature
読んだ
修正で積んでもらったコミットを読んでいた github.com
修正コミット、自分のforkしたリポジトリに積めるんだ!?とちょっとびっくりしていた
true/false/nilは、特定のメソッドがboolじゃなくてtrue/falseを返すことが確定してたりして、若干特殊なケースぽい。 型検査器とセットでいろいろ試さないとなんか使い勝手で困りそうな気がする。
TypeScriptの場合は一番詳しい型から徐々にゆるい型の順序でオーバーロードを書くのがよいよう
In order for the compiler to pick the correct type check, it follows a similar process to the underlying JavaScript. It looks at the overload list and, proceeding with the first overload, attempts to call the function with the provided parameters. If it finds a match, it picks this overload as the correct overload. For this reason, it’s customary to order overloads from most specific to least specific. www.typescriptlang.org
FalseClass型付けた github.com
服
旅先の服装調べるときにここが便利っぽい wear.jp
GitHubのコミュニティ情報はべんり
ライセンス抜けてたりしないか✓してくれる
https://github.com/ruby/ruby-signature/community
ボーイスカウトルールのジェンダーニュートラルな言い換え
こないだ調べたときはリブランディングでScouts BSAになったしScout Ruleでどうでっしゃろ?的な記事をみつけたんだけど
Scouts BSAが訴えられていた
Anyone have a good gender-neutral variant of the "Boy Scout Rule"? https://t.co/8yTaXCnm7M
— Pete Hodgson (@ph1) August 11, 2017
リプライツリーのhappy camper ruleとかCampsite Ruleそういうのがよさそうな感じだった(Campsite Ruleはなんか別の本の内容が出てきて若干紛らわしい)。部活動をしていたころ「きたときよりもうつくしく」みたいな謎単語があった気がする。