2022/09/24 ~ 2022/09/30 のもくもく日記
もくもく 前回までは
2022/09/17 ~ 2022/09/23 のもくもく日記 をご覧ください。
途中経過
その1
Swift Package Manager Plugin が長時間実行される?と聞いた気がするけど、もしかしてXcode 14 で直ったのかな?
どこかで試したいかも💪
その2
Capacitor 3 -> 4 のアップグレードガイドに目を通してみたのだけど、色々変わっとった👀 https://capacitorjs.com/docs/updating/4-0
Capacitor 4.3 から公式プラグインにHTTP も加わったので、色々楽しそうではあるw
その3
ふむ 👀 そうね、これ確かに困ったもんw https://github.com/dotnet/aspnetcore/issues/26790
その4
C# のDI 何も分らん……。AddScope の引数にFunc があるものを使ったのだけど、何故かこれがうまく動かんw
……受け取り時の型をミスってたorz そりゃ解決できんわw
その5
開発中のVSCode Extension からローカルサーバーへ通信を投げて上手く行かないなと唸っていたのだけど、CORS の概念を忘れていただけだった😇
VSCode Extension から直接Node.js のHTTP モジュールを使ってAPI 通信した時、いい感じにエラーを表示させるにはどうすれば良いのだろう?
なんか無言のまま、意図した動きにならなくて困ったw
CORS ナニモワカラン 😇
このリンクを見ながら許可設定していたのだけど、WebApplicationBuilder でCORS 設定してもうまく行かなくて、各エンドポイントのResponse Header で"Access-Control-Allow-Origin" をいじって対応したんだけど、何か見落としている気がする🤔
https://learn.microsoft.com/ja-jp/aspnet/core/security/cors?view=aspnetcore-6.0
その6
Kotlin のスマートキャストを認識してもらうためにcontract を試してみたのだけど、何も分からん 😇
プロパティに設定したかったけど、メソッドじゃないとダメっぽいし、そのメソッド実行結果を変数に代入して、その変数を使ってガード節書いても、ガード節以降に反映されんかったし……
今回の進捗
※関連SNS
- https://x.com/shion_engineer/status/1573487217669902336
- https://x.com/shion_engineer/status/1573519651505524737
- https://x.com/shion_engineer/status/1573559037207392258
- https://x.com/shion_engineer/status/1573678357073784833
- https://x.com/shion_engineer/status/1573836711481999360
- https://x.com/shion_engineer/status/1573838184290848769
- https://x.com/shion_engineer/status/1573870781351997442
- https://x.com/shion_engineer/status/1573893061507436546
- https://x.com/shion_engineer/status/1574260734489686016
- https://x.com/shion_engineer/status/1574279698825482240
- https://x.com/shion_engineer/status/1574294982961541120
- https://x.com/shion_engineer/status/1575632675569750016