Zuckjet (@Zuckjet) header
Zuckjet (@Zuckjet) profile picture

Ex-Chromium/TypeScript/Webpack/Angular/Nuxt/VSCode/Flutter contributor. 10+ years full-stack. Now obsessed with AI agents & shipping solo products

Joined April 2017
Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)
This is such a common misconception and I don't know how to get people to correct their knowledge. @TestingLib does not use JSDOM. Testing Library uses whatever DOM is available in the global environment. Testing Library is actually pretty optimized and runs fast in a real browser. It's JSDOM that's slow (because JavaScript). If you're having perf issues, it's because you're running in a simulated DOM environment, not because you're using byRole queries. How do you speed things up? 1. Maybe don't worry about it? 2. Check these docs: testing-library.com/docs/que… 3. Run tests in a real browser (like playwright which has testing library queries built-in).
Warning: ⚠️ If you’re: 1. Using @TestingLib 2. Using getByRole 3. Testing on a page with many DOM elements… Then getByRole may be slow. Why? Because getByRole is "expensive", and @TestingLib uses JSDOM. JSDOM is written in JS, and thus, slower than the browser. 3 solutions: 1. Set hidden to true (avoids expensive visibility checks) 2. Use getByLabelText or getByText instead. They're faster. 3. Test in Playwright instead. (Playwright locators are inspired by @TestingLib). Since Playwright runs in a real browser, getByRole is fast.
6
25
2
242
73,101
Zuckjet retweeted
Today we’re excited to announce Speedometer 3 in collaboration with @googlechrome, @Firefox, & @MicrosoftEdge. This benchmark measures speed & guides browser teams as they make websites & web apps run faster than ever — now with a new generation of tests. webkit.org/blog/15131/speedo…
11
89
17
520
296,975
Tip: @ChromeDevTools can now override the content of Fetch/XHR requests! Great for mocking APIs without waiting on backend changes! This and lots more in Chrome 117: bit.ly/wnd117
53
653
57
2,881
306,310
Zuckjet retweeted
I've been using this debugger trick (I think I got this from SO) to inspect disappearing elements in Chrome. 1. Use a timeout for a debugger. 2. Do your thing. 3. Wait for debugger to hit. 4. Inspect. Is there a better way to do this in devtools?
18
32
2
394
86,632
这个案例很好, 一个24岁的印度程序员花了3个月开发的基于Notion的CMS发布平台, 上线半年就实现了1500美金的月收入。很好的诠释了“借势”和“精益创业” 详细案例解析见下图 – at Shanghai, People's Republic of China
It's a strange feeling. One year ago, when I am at $0 MRR, getting to $1k felt like a distant dream. Now that I am at $1.5k MRR, it doesn't feel as exciting anymore. Now, $1.5k MRR feels like $0 MRR, and $5k MRR feels like a distant dream. Goal post has shifted all on its own
11
149
3
554
103,517
Zuckjet retweeted
Today we are excited to open the first PR of our exploration into fine-grained reactivity! 🚦 This is the foundation to allow prototyping & amplify the value of an upcoming RFC on our plans to introduce a new reactive primitive into Angular. Read more: goo.gle/ng-watch-this-space
19
241
77
906
608,352
Zuckjet retweeted
*Exciting* @Angular improvement we developed with @ChromeDevTools that will benefit *every* developer *daily* 🔥 Starting in v15 stack traces will be: ‣ Relevant - only app code ‣ Linked - trace between async tasks ‣ Friendly - better call frame names (coming soon)
11
120
12
587
Zuckjet retweeted
🔥 Stop find-and-replacing in VS Code, use "replace symbol" to get safer replaces across your files and preview the changes first! Works with most languages including TS, JS and CSS.
18
35
7
345
This is a huge bug. On OSX, Safari users can (temporarily) switch to another browser to avoid their data leaking across origins. iOS users have no such choice, because Apple imposes a ban on other browser engines. safarileaks.com/
29
305
51
865
Tailwind simplifies CSS they said... 😅
108
106
57
1,203
I'm excited to share my first new book (or e-book) in over five years! Understanding JavaScript Promises explains not just how promises work but also how to use them in the real world. And the best part? It's free. Grab yours now. https://nitter.cf/t.co/BydS3RpqOv
31
285
21
1,183
Zuckjet retweeted
AMA - Ask us anything! 📣 We are excited about Angular in 2022 - what questions do you have for our team? #AngularAMA
59
23
6
158
Looking at hundreds of Angular apps over the years, I found that majority of performance problems fit into the following categories: ‣ Zone pollution ‣ Out of bounds change detection ‣ Recomputation of referentially transparent expressions ‣ Large component trees 🧵 1/6
8
103
6
461
1³+2³+3³+4³+5³+6³+...+n³=(1+2+3+4+5+6+...+n)² Proof: Arranging 1³+2³+3³+4³+5³+6³+...+n³ in the plane: 1x1²+2x2²+3x3²+4x4²+5x5²+6x6²+...+nxn² The even squares overlap (🟨) but also leave uncovered gaps (🟥) and 🟨=🟥
30
590
49
2,840
Zuckjet retweeted
Our team is excited to announce the release of Angular v12! ♥️ #ngUpdate to see: 🌿 Ivy-first library distribution 🔐 Prod mode & strict mode by default 🧨 Production Webpack 5 support 🚀 Inline Sass 💫 Inline critical CSS Read all about the release → goo.gle/angular-v12
74
629
101
1,763
Tip: Remove unused CSS from production builds of your CSS libraries. My @TailwindCSS was ~294KB gzipped. With PurgeCSS and a safelist, improved Largest Contentful Paint by ~1.8s & CSS size to ~9KB (even less w/Brotli) goo.gle/tailwcss
18
210
13
1,403
An elderly woman attacked on Market St. in San Francisco Wednesday and turned the tables on her attacker, leaving him with injuries that required a trip to the hospital. Serves him right! #StopAsianHate #StopAAPIHate 🎥 @denniskpix @kpixtv
1,387
21,494
5,493
58,289
Zuckjet retweeted
angular-cli-ghpages allows you to deploy your Angular app to GitHub pages directly from the Angular CLI! 🚀 npmjs.com/package/angular-cl…
13
92
7
327
IT'S HERE: Piper Make, available now in your browser on Mac, PCs, and @Google Chromebooks! Start inventing with the new @Raspberry_Pi Pico using our drag-and-drop coding platform! 🧑‍💻🥧 Try it out at make.playpiper.com! #WhatWillYouCreate #STEMeducation #RaspberryPiDay
3
41
8
108
Are you interested in how Angular's runtime works under the hood? We use a lot of low-level optimizations to ensure monomorphic code for faster execution & low memory usage. Read about Ivy's internal data structures below ✨
1
20
1
95