Week 44 - 2020
The weeknote for 10/26 - 11/1.
I tried to fix URLSearchParams constructor with the case of invalid escape sequenses.
decodeURIComponent('a=%xy')throws an Error because '%xy' is invalid escape sequense, but new URLSearchParams('a=%xy')
doesn't throw and it works like the value of keya
is%xy'. URLSearchParams are more tolerant with malformed URLs. Deno's parser of query string uses
decodeURIComponetbut that was impossible because of this difference of these 2 APIs. In the above PR, I changed the parsing of it, and allowed such malformed cases.
Tried to fix the new API
promptwhich had a bug with printing non-ascii characters on windows.
To fix this issue, I needed to set up EC2 instance of Windows Server 2019, and as a side effect I finally created a powershell script which prepares all of necessary dependecies for building deno with one single command. https://github.com/kt3k/setup.ps1
- This week I improved the storybook of Tententen which now includes Toast and ConfirmDialog components. First I replaced default babel-loader with ts-loader because capsid's decorators need to be transpiled by typescript. Second I added mutation observer to document.body which calls
capsid.prep()for each dom element addition, which was necessary for capsid components correctly initialized on each page transition inside storybook. Third I rewrite the story with very declarative manner by utilizing the simple dom helper method create. The result of these refactoring was like this. It's totally declarative and very readable and maintainable. I'm very satisfied with this result.
Iyo's study of web
- This week Iyo tried to mimic Japanese old-fashioned SNS "前略プロフィール" with her html skill. It resulted as https://iyochan.love/. It was a good job.
This week she cooked an apple pie and it was a great job 👍
アップルパイできました⭐️ pic.twitter.com/M0Df07hWZf— あずき (@okomekirai) October 28, 2020
Tokyo Train Museum
This week Iyo and I went to Tokyo Metro Museum.
エッチ！！！！！！！ pic.twitter.com/yWprvhDQzg— あずき (@okomekirai) October 30, 2020
鉄道に興味ないタイプのエンジニアの方です(早くカフェに行ってプログラム書き隊の隊員さん!) pic.twitter.com/m4RW5FcYvy— あずき (@okomekirai) October 30, 2020
鉄道大好きっ子 pic.twitter.com/CUpENTmvb4— Yoshiya Hinosawa 𓆈 (@kt3k) October 30, 2020
She tries to enter many shops (but failed)!
Edit this page