Week 38 - 2020
The weeknote for 9/14 - 9/20.
OSS
denoland/deno
🦕 Deno is a new JavaScript and TypeScript runtime
-
My contributions
https://github.com/denoland/deno/pull/7507
Added
alert
,confirm
, andprompt
function from the web standards. It uses only JavaScript for the implementation. So the performance is not so good. It can be improved by the special op for reading a single line, but that seemed too much for this single purpose. So I avoided adding such op.I expected some negative arguments against introducing these features because in the original issue it had some negative arguments. However it only got positive feedbacks at the time of writing.
My reasoning behind this addition is that it's little too complex to read a single line from stdin in Deno, just like Node.js. It requires
TextDecoder
,Uint8Array
, while-loop, and optionallyPromise
. That's not a big deal for the advanced users, but actually a nightmare for beginners of Deno, beginners of JavaScript, or beginners of Programming. A task like reading a single line from stdin is important for learning the runtime to do basic excercises in the first chapters, but current Deno's API sets have a big bar for it. Reading a single line is very difficult (for beginners)! I'd like to remove that bar from Deno.I first tried to add something like
Deno.readLineSync
, but after thinking a while I realized it was actuallyprompt
of web standards. So I came up with this PR.
Tech
zenn.dev
- A new service called zenn.dev has been launched this week and it got huge popularity in Japanese tech scene. Maybe it'll be a big service in a while.
Life
Iyo's kitchen
-
This week's Iyo's kitchen!
#kt3kmeal pic.twitter.com/5nYhjNx4co
— Yoshiya Hinosawa (@kt3k) September 16, 2020
Vacation
-
It was 4 days holiday in Japan. Iyo-chan and I went to many places.
4日間まとめ
— あずき (@okomekirai) September 22, 2020
土曜日:六本木散歩
マクドナルド→おつな寿司
日曜日:目黒・秋葉原散歩
カレーLAND→寄生虫博物館→
秋葉原 デニーズ→ペッパーランチ
月曜日:お台場散歩
アクアシティお台場 五右衛門
→TENET→セブンいえごはん
火曜日:広尾恵比寿散歩
近くのカフェ→つばき食堂
→サンマルク pic.twitter.com/0uhhTonatI