2022/08/13 ~ 2022/08/19 のもくもく日記
もくもく 前回までは
2022/08/06 ~ 2022/08/12 のもくもく日記 をご覧ください。
今回の目標
- レシピの整備
途中経過
その1
復習📝 https://docs.microsoft.com/ja-jp/learn/modules/persist-data-ef-core/3-migrations
Entity Framework Core のAsNoTracking() を初めて知った。変更の追跡を無効にしてくれるので、読み取りだけしたい場合に最適らしい👀
……無印の頃は、この拡張メソッドじゃなくて、別の方法で同様のことをやっていた気がするけど、なんだか忘れたw https://docs.microsoft.com/ja-jp/dotnet/api/system.data.entity.dbextensions.asnotracking?view=entity-framework-5.0.0
Entity Framework Core のコードファーストを試してみたのだけど、色々忘れていてあかんかったorz
あと地味にDI 等の都合でpublic にしなければいけない系にはまったorz
なんかめっちゃややこしい……
その2
RDB のID をどうする問題、ULID というのがあるのを知った
今C# を書いていたので、色々探したらCygames さん製のライブラリに辿り着いた https://github.com/Cysharp/Ulid
その3
Android テスト周りってJUnit 4 系だと思うのだけど、Android API を引きはがして(robolectric 不要で動くようにして) 純粋なJvm コードをモジュール分離すれば、JUnit 5 使える環境が整う気がしてきた
……ただ、労力に見合うかは状況によりけりかも
その4
Blazor か……。確かdll サイズの問題で、クライアントサーバー間で通信量が多くなりがちなのではと思うので、利用端末としてスマホ等を考えるなら避けたいかも👀
……ってつぶやいたけど、本当にそうか検証してみたい。
その5
いつの間にかAndroid Jetpack でCarousel 使えるっぽい👀 https://developer.android.com/training/constraint-layout/motionlayout/carousel
今回の進捗
- GitHub
- Nintendo Switch でトレーニングを進めた
- 本を読み進めた
※関連SNS
- https://x.com/shion_engineer/status/1558248375677779968
- https://x.com/shion_engineer/status/1558285343153360897
- https://x.com/shion_engineer/status/1558322030650753025
- https://x.com/shion_engineer/status/1558620293513752576
- https://x.com/shion_engineer/status/1558670118678577152
- https://x.com/shion_engineer/status/1559427462517620737
- https://x.com/shion_engineer/status/1559557849201901568
- https://x.com/shion_engineer/status/1559558771676172288
- https://x.com/shion_engineer/status/1559771008672100353
- https://x.com/shion_engineer/status/1560130953905061890
- https://x.com/shion_engineer/status/1560261765547831296