magic_akari Profile Banner
阿卡琳 Profile
阿卡琳

@magic_akari

Followers
2K
Following
925
Media
216
Statuses
868

Core member of @swc_rs |All opinions are my own |🦀

Beijing
Joined August 2012
Don't wanna be here? Send us removal request.
@magic_akari
阿卡琳
5 months
base 北京,五年前端。做过前端构建和 Web IDE 相关的工作。有招人的吗?.
30
25
155
@magic_akari
阿卡琳
2 days
Thank you! JavaScript
Tweet media one
1
2
30
@magic_akari
阿卡琳
3 days
RT @jait_chen: Super excited for the upcoming Rsbuild 1.5. We're enabling several Rspack experimental features by default:. ⚡ Barrel file o….
0
12
0
@magic_akari
阿卡琳
17 days
Direct string concatenation without a function call? .The Symbol Primitive explains why it works.
Tweet media one
Tweet media two
0
1
6
@magic_akari
阿卡琳
23 days
TypeScript's old behavior didn't match the ECMAScript specification. You can fix this by enabling verbatimModuleSyntax in your tsconfig.
Tweet media one
Tweet media two
1
1
11
@magic_akari
阿卡琳
1 month
Thank you @hardfist_1 for sponsoring me on @github. You can join them at my sponsors profile:
Tweet media one
1
0
8
@magic_akari
阿卡琳
1 month
CJK's YYYYMMDD remains the most logical date format — it silences the month/day order debate and sorts like an absolute breeze.
@arktypeio
ArkType
1 month
Validating dates has never been easier📅🎆
Tweet media one
0
0
7
@grok
Grok
6 days
Generate videos in just a few seconds. Try Grok Imagine, free for a limited time.
396
661
3K
@magic_akari
阿卡琳
2 months
The spec does support this syntax.
Tweet media one
1
0
13
@magic_akari
阿卡琳
2 months
Today I learned: I've never written JSX like this before – turns out it's actually valid!. Side note: I'd normally wrap it in curly braces – like {<span />}.
Tweet media one
3
1
48
@magic_akari
阿卡琳
2 months
This design tradeoff reminds me of how Rust's parser handles the ternary operator: it recognizes the syntax but explicitly forbids its use by emitting an error.
Tweet media one
0
0
2
@magic_akari
阿卡琳
2 months
TypeScript can actually parse the `>` character within JSX text, but it still issues a warning either the HTML entity equivalent (`&gt;`) or JSX interpolation (`{'>'}`). This approach doesn't reduce parsing complexity – it exists to provide clearer developer guidance.
Tweet media one
1
0
3
@magic_akari
阿卡琳
2 months
Today I learned: Did you assume the self-closing `/>` in JSX is a single, indivisible token? .Actually, the following code is perfectly valid JSX
Tweet media one
5
2
34
@magic_akari
阿卡琳
2 months
I'm getting used to it
Tweet media one
1
0
4
@magic_akari
阿卡琳
2 months
Today's JS tip: In classes, it's OK to use the string literal `"constructor"` for the constructor method — but computed properties like `["constructor"]` become regular class methods.
Tweet media one
0
3
30
@magic_akari
阿卡琳
2 months
Tweet media one
@kai_fall
Kai Fall
2 months
this should settle the debate
Tweet media one
0
0
9
@magic_akari
阿卡琳
2 months
Does Vue support `<script lang="ts-type-strip">` yet? I think it’s time we consider adding it!.
3
0
4
@magic_akari
阿卡琳
3 months
🚀 Today's Cargo tip! 🦀.Missing `pnpm why` from your Node.js days? .Add this to your .cargo/config.toml and run `cargo why <crate>` to trace why a crate is in your dependency tree! 🔍
Tweet media one
0
0
8
@magic_akari
阿卡琳
3 months
Another day, another gigabyte gone. 🤣
Tweet media one
0
0
4
@magic_akari
阿卡琳
3 months
Thank you @hardfist_1 for sponsoring me on @github. You can join them at my sponsors profile:
Tweet media one
0
0
7
@magic_akari
阿卡琳
4 months
I can't believe method definitions needed Node 4 while getters were there since 0.10! Just verified it – MDN doesn't lie.
Tweet media one
Tweet media two
Tweet media three
1
0
2
@magic_akari
阿卡琳
4 months
RT @magic_akari: base 北京,五年前端。做过前端构建和 Web IDE 相关的工作。有招人的吗?.
0
25
0