
Ayoub
@adbayb
Followers
84
Following
4K
Media
8
Statuses
6K
Joined October 2015
> Asks if 'if err != nil' is really that bad > Screenshot example shows accidental fallthrough from error case to success case Do we really need to discuss further?
46
154
3K
At @framer, we've made React hydration 50%+ faster for lots of sites when using Suspense to fetch data. The surprising part: We did that by... adding more Suspense tags. Why does it make hydration faster? Let's explore🔎:
2
6
94
Yessssss! Node just shipped the ability to run TypeScript files directly!
92
438
3K
It's never been easier to make beautifully styled text for your CLI. Node's built-in 'styleText' is NICE
27
56
966
Okay, listen. If you're going to fetch in useEffect(...), you should at least make sure that you're handling: - Loading states - Error handling (rejections & HTTP error codes) - Race conditions & cancellation This isn't over-engineering. It's the minimum code to prevent bugs.
77
163
2K
pnpm 9.5 is out with the catalogs feature! https://t.co/bSYCQXdBKI Thanks to @gluxon for implementing it
github.com
Minor Changes Added support for catalogs #8122. Catalogs may be declared in the pnpm-workspace.yaml file. For example: # Default catalogs catalog: chalk: ^4.1.2 # Named catalogs catalogs: re...
3
28
202
All PM templates from my Google Drive are now free for everyone 🎁 The extended edition: (1/4)
62
383
4K
My books are free to read online: – Exploring JavaScript (ES2024 edition) – Deep JavaScript – Tackling TypeScript – Shell scripting with Node.js Retweets appreciated! https://t.co/cYI2ZY048N
9
203
499
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
62
130
1K
We're excited to share our plans for the future of ESLint: https://t.co/4joAwfRqkR
eslint.org
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
10
27
174
Problem: Choosing a React state library is hard. Solution: Consider the tradeoffs. Here are 6 key tradeoffs, with examples: 1. General vs Specific General: Redux, Zustand, Jotai. Specific: React Query, Apollo. These are specifically designed for handling data fetched via
20
28
302
Hey you - with the big React Router app - you should check out the new "Fog of War" feature released in v6.24.0 yesterday which allows effectively infinite scale for your app. It's also very useful in micro-frontend and module-federation architectures. https://t.co/A2a9xCgc7m
github.com
Declarative routing for React. Contribute to remix-run/react-router development by creating an account on GitHub.
5
13
79
Introducing Million Lint 1.0: A VSCode extension that automatically fixes slow React code for you! It's like ESLint, but for performance!
100
358
3K
Great news for those extending base TypeScript configs Soon we should be able to use relative paths to the "final" config file ${configDir} placeholder Previously it was confusing, and you had to duplicate many fields in the child configs to use relative paths
3
18
116
Introducing Elysia 1.0「Lament of the Fallen」 Featuring: - Sucrose - Rewritten static analysis - Improved startup time up to 14x - Remove ~40 routes/instance limitation - Faster type inference up to ~3.8x - Eden Treaty 2 - Strict response error check ↓ Link below ↓
27
160
956
The cost of distraction is the person you could’ve become. If you suffer from distraction, read this. My Deep Work routine:
88
1K
8K
Introducing Million Lint: A VSCode extension that identifies slow code and suggests fixes. It's like ESLint, but for performance!
84
554
5K
Apparently some React devs don't know that <input type="date"> exists and think you need a library for that? So I made a really quick demo...
53
43
638
Hello world! Rolldown is now open source on GitHub:
github.com
Fast Rust bundler for JavaScript/TypeScript with Rollup-compatible API. - rolldown/rolldown
30
306
1K
Big update for TypeScript users! 🚫 Stop using compilerOptions#paths ✅ Start using package.json#imports package.json#imports uses Node.js conventions, solving a specific pain point for monorepo folks. Video coming. Too excited, had to insta-tweet. Stay tuned.
Announcing TypeScript 5.4! 📢 Now with: ✅ Smarter control-flow analysis in closures ✅ The `NoInfer` utility type ✅ Broader support for bundlers and runtimes ✅ Quick fixes for missing parameters ✅ Improved auto-imports and more! Try it today! https://t.co/qqSG1bCGGL
18
126
989