Week 48 - 2022
The weeknote for 11/28 - 12/4.
CJS ESM Polyglot
typeof await /0/["test"]is valid in both CJS and ESM context, but it evaluate differently in both contexts. It parses like
typeof (await (/0/["test"]))in ESM (
/0/is a regexp here), but
(typeof await) / 0 / ["test"](=== NaN) in CJS. By using this, one can define the module which works as both CJS and ESM modules. More details are explored this slides by @qnighy.
- ChatGPT was released this week. It looks extremely good. It still gives wrong answers sometimes, but it also gives unbelievably well written answers in many cases. Now everybody is playing with it in a lot of creative ways.
Explicit Resource Management
- Explicit Resource Management proposal went to the stage 3 this week. This proposal, in my view, is the most life changing proposal in recent a few years in ECMAScript. Probably this is the biggest change after the addition of async/await syntax. I'm looking forward to using it in the near future.
I created a new business card. I don't need cards already for long time as a software engineer/a web developer. I don't need to introduce myself with cards. I created a card just because I wanted to experiment an idea of new design.
This is my 4th time to design my business card. This time I tried to make it as minimal as possible. Maybe it's too minimal to be considered as 'a business card' as it even doesn't include email address. However in my view it's sufficient for a business card for a software engineer as other necessary info are linked from the given info, and I only contract with people who understand how to use the browsers and the internet.
New business card pic.twitter.com/BPlgcSh7dS— Yoshiya Hinosawa (@kt3k) December 3, 2022
Edit this page