Jan Martin

7K posts

Jan Martin banner
Jan Martin

Jan Martin

@hybristdev

Waiting for a shipment of Club-Mate or drinking Club-Mate. Also maybe https://t.co/UKJNnTtwHQ. He/Him.

Bay Area, USA Katılım Mayıs 2009
839 Takip Edilen460 Takipçiler
Sabitlenmiş Tweet
Jan Martin
Jan Martin@hybristdev·
Files that use JavaScript import syntax but only work by compiling them to CommonJS or bundling them are called...
English
2
0
3
0
Jan Martin
Jan Martin@hybristdev·
@eddie_oai @DavidKPiano @SumitM_X As shown, there are no interactions and the list is fully static. In which case there *is* nothing wrong with an index key. You can change the scenario and then it’s terrible of course. But static scenarios do exist.
English
0
0
4
160
Eddie Hudson
Eddie Hudson@ehudsn·
@DavidKPiano @SumitM_X I really hope senior devs aren’t saying nothing! Indexes like this are terrible in practice especially if you have to interact with anything in that list, like for example deleting something.
English
3
0
0
2.3K
SumitM
SumitM@SumitM_X·
Common React Interview question. What is the problem in this code ? export default function App() { const items = ["Apple", "Bat", "Cat"]; return ( <ul> {items.map((item, index) => ( <li key={index}>{item}</li> ))} </ul> ); }
English
106
22
504
414.2K
Jan Martin
Jan Martin@hybristdev·
Are there solutions for server-side enforcement of trusted types in React? Especially in the age of RSCs, that feels like a weird gap.
English
0
0
0
42
Jan Martin retweetledi
Rob Palmer
Rob Palmer@robpalmer2·
ECMAScript excitement 😉 Congrats to @guybedford on advancing Import Sync to Stage 2 at @TC39 today 🎉 const mod = import.sync(<specifier>); Like Node's require(<specifier>), it synchronously loads a module. It throws if sync loading is not possible.
Rob Palmer tweet media
English
3
31
246
18.2K
Jan Martin retweetledi
Rob Palmer
Rob Palmer@robpalmer2·
ECMAScript excitement 😉 🚨🚨🚨 IT'S ABOUT TIME! 🚨🚨🚨 Congrats to @ManishEarth on shipping the Temporal API in Chrome 144 Stable today 🎉 #temporal" target="_blank" rel="nofollow noopener">developer.chrome.com/blog/new-in-ch… Temporal is the replacement for the Date API.
English
7
59
370
34.1K
Jan Martin
Jan Martin@hybristdev·
@ChristoPy_ @DavidKPiano If you happen to know every single combination of elements that will ever be on the same page, now and in the future, sure..? Otherwise, it’s generally a good habit to use identifiers that are definitely unique and not just “hopefully unique enough”.
English
0
0
9
535
Jan Martin retweetledi
Yuchen Jin
Yuchen Jin@Yuchenj_UW·
I love that Google is helping save Tailwind. LLMs are trained on open-source projects. OSS gave the world so much. Hope more big tech companies do this.
Yuchen Jin tweet media
English
72
140
3.6K
154.8K
Jan Martin
Jan Martin@hybristdev·
I wonder if there’s a fun API for computation in adding ArrayBufferView-like Matrix and Vector types to JS that support mathematical operators. I’m 90% sure this wouldn’t fly in committee though. ^^
English
0
0
0
17
Jan Martin
Jan Martin@hybristdev·
@abiryanii @matteocollina @nodejs E.g. routes ending in specific suffixes may take precedent if they appear in specific positions in the list. So in the general case, you can’t use sub routers to “solve” the poor performance of a router based on list-of-regex.
English
0
0
0
17
Jan Martin
Jan Martin@hybristdev·
@abiryanii @matteocollina @nodejs If you do that, you aren’t *really* using the API though. You’re describing something close to a trie router and that’s a great choice. But it’s not a transparent replacement because a typical URLPattern router is order-dependent and fundamentally ambiguous.
English
1
0
0
26
Jan Martin
Jan Martin@hybristdev·
Holiday success: First iOS/tvOS game that kind of works. Vibe coded mess but I now get to read it and figure out how to make it slightly less jank.
English
0
0
0
33
Jan Martin
Jan Martin@hybristdev·
There’s some curious overlap between MCP Apps and RSCs. I think there’s a potentially nice DX in leveraging those parallels.
English
0
0
0
23
Jan Martin
Jan Martin@hybristdev·
PSA: There is a flag to disable the Function constructor vector entirely (`--disallow-code-generation-from-strings`). If you’re running nodejs in prod against untrusted inputs, it’s not a bad idea to set it. You can absolutely run real apps with that flag. #React2Shell
English
0
0
1
236
Jan Martin
Jan Martin@hybristdev·
@justfly1984 @robpalmer2 If you’re happily using TS paths, none of this should break you. I would expect both the “bundler” and a future “node2Y” resolution mode in TS to support it, based on what happened in the past.
English
0
0
1
51
Rob Palmer
Rob Palmer@robpalmer2·
Node excitement 😉 Congrats to @hybristdev on landing support for Package Imports that start with #/ 🎉 Previously this prefix was special-cased and would error. It's convenient to use it as an internal absolute path to the package root. import foo from "#/src/file.ts"
Steven ⬢@styfle

Node.js added support for path rewrites for #/ wildcard. This means you don't need typescript voodoo to use project relative imports. Thanks to @hybristdev github.com/nodejs/node/pu…

English
2
7
102
9K
Jan Martin
Jan Martin@hybristdev·
@colinhacks @KhafraDev @getifyX It’s certainly hit or miss but node can move fast when the stars align! It’s often worth to try, especially if you’re willing to step back when the effort/value ratio starts slipping.
English
0
0
2
54
Jan Martin
Jan Martin@hybristdev·
@colinhacks @KhafraDev The PR shows pretty much all the process that went into it. The inciting incident was @getifyX reviving an old issue thread (#issuecomment-3564851409" target="_blank" rel="nofollow noopener">github.com/nodejs/node/is…) right at the same time that I got annoyed by `@/…` complicating my DB seed script for a demo.
English
1
1
7
925
colinhacks/zod
colinhacks/zod@colinhacks·
package.json#imports have been practically unusable since they were introduced in 2020 because they didn't support top-level wildcards, e.g. "#/*" insanely, it turns out there was literally no reason for this and it was just never reconsidered after the initial PR
colinhacks/zod tweet media
Steven ⬢@styfle

Node.js added support for path rewrites for #/ wildcard. This means you don't need typescript voodoo to use project relative imports. Thanks to @hybristdev github.com/nodejs/node/pu…

English
7
6
206
36.9K