pavel
@prchdk
Followers
676
Following
3K
Media
75
Statuses
1K
product engineer, typescript developer and rational tinkerer, currently deseng @github
Internet
Joined November 2014
installed claude using `bun install -g`, but auto-update never works // @jarredsumner π₯Ίππ
4
0
12
Useful script for ensuring that all Next.js pages have metadata. It came handy recently during the Pages Router β App Router migration.
1
0
1
Node.js now has the ability to directly run code with TypeScript types! https://t.co/hkvtEPWI2m Current limitations: - Experimentally flagged - No transformations (enums, namespace, etc...) - No .js extension for .ts files - No running TS in node_modules
github.com
It is possible to execute TypeScript files by setting the experimental flag --experimental-strip-types. Node.js will transpile TypeScript source code into JavaScript source code. During the transpi...
5
45
283
Server Actions are an alternative way to expose endpoints and should be treated as such. Even though they feel automagical, all practices for writing APIs still apply.
If you care about security for your NextJS app, stop using top level "use server" - it's way too easy to leak data Top level "use server" creates endpoints for all exported functions, even if they are never used on the client One accidental export can cause a ton of damage
0
0
2
# on shortification of "learning" There are a lot of videos on YouTube/TikTok etc. that give the appearance of education, but if you look closely they are really just entertainment. This is very convenient for everyone involved : the people watching enjoy thinking they are
689
3K
17K
"We shape our tools, and then our tools shape us" is a quote I think about often.
0
0
0
when talk about this? https://t.co/ADwm3LkXIM
@jjenzz @kentcdodds For real. local first is probably endgame with a mix of this RSC stuff
0
0
0
wow. @ryanflorence nailed it. How he put it into a 'product' context instead of arguing which tech is better or worse is πππ.
ok anyone whose work is related to webdev should probably watch @ryanflorence's "mind the gap" talk at @BigSkyDevCon great insights on how RSC bridges the gap between server and client https://t.co/sLsltDgd5W
1
0
0
can't reply to the tweet, but curious: is useEffect for reassigning refs even necessary @buildsghost?
Until React adds an API for it, this has become my automatic response to any callback that needs to be passed into an effect. Wrap it with a ref and you won't ever have to worry about it again
1
0
0
TIL: you can highlight text in a GitHub comment and press `R` to reply only to that automatically. (instead of clicking the three-dot button and then Quote reply and then deleting part of it)
0
0
2
'Framework for TypeScript' is so far the best description of @EffectTS_ I've heard.
Effect is a meta-framework for TypeScript that takes it to the next level and helps handle code complexity, async code, dependency injection, and error handling in a type-safe manner. A talk by Aleksandra Sikora @aleksandrasays at Effect Days. See next post for full video ‡οΈ
1
0
4
React Cache is to Server Components what React Context is to Client Components.
1
0
2
Oftentimes it seems that the more senior people are, the less docs they think they need to read. It should be the opposite.
0
0
0
Does the tRPC proxy client cache response per each server request inside RSC? or do I need to manually wrap it with React `cache` helper ( https://t.co/6UuhJrjQ3t)? cc @alexdotjs
react.dev
The library for web and native user interfaces
1
0
1
Telegram is notoriously insecure and routinely cooperates with govs behind the scenes while talking a big game about speech and privacy. Even their limited opt-in (roll their own) encryption is sus. The more you know π
82
431
2K