Trevor Burnham's Avatar

Trevor Burnham

@trevorburnham.com.bsky.social

Frontend Engineer at AWS. Author of Test-Driven React and Secrets of the JavaScript Ninja, Third Edition. http://trevorburnham.com

173 Followers  |  216 Following  |  18 Posts  |  Joined: 07.11.2024  |  1.9016

Latest posts by trevorburnham.com on Bluesky

I’m very proud of this book. And, thankfully, it hasn’t become obsolete as quickly as the first edition. πŸ˜…

01.10.2025 14:30 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
LL Cool J - Deepest Bluest
YouTube video by Bogdan3l123 LL Cool J - Deepest Bluest

Huge wasted opportunity that Apple didn’t hire LL Cool J to do an ad for the iPhone Air where he raps 🎢 Thinner. Lighter. My phone is like a shark’s fin! 🎢 youtu.be/6cYcdBVQ8NM

27.09.2025 19:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Secrets of the JavaScript Ninja, Third Edition - Trevor Burnham, Bear Bibeault, Josip Maras, John Resig The secrets of modern web development using JavaScript and TypeScript! If you’re serious about web development, you need to be ninja-stealthy, efficient, and ready for anything! Secrets of the JavaSc...

The new edition of Secrets of the JavaScript Ninja is coming along nicely! I’ve just finished a chapter on promises and generators. If that intrigues you, the book is Manning’s Deal of the Day: www.manning.com/books/secret...

04.09.2025 16:42 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
A cute mascot with a lobster hat and Necco wafer shoes standing in Fenway Park.

A cute mascot with a lobster hat and Necco wafer shoes standing in Fenway Park.

I asked Gemini to generate a Chiitan-style mascot for the city of Boston.

Ladies and gentlemen: Bostan!

07.06.2025 00:41 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Secrets of the JavaScript Ninja, Third Edition The secrets of modern web development using JavaScript and TypeScript!</b> If you’re serious about web development, you need to be ninja-stealthy, efficient, and ready for anything! Secrets of the Ja...

In a rare confluence, both of my new books are on sale today! πŸ€‘ Test-Driven React, 2nd Edition is 40% off with code 2025testing: pragprog.com/titles/tbrea... And Secrets of the JavaScript Ninja, 3rd Edition (currently in early access) is 50% off, no code needed: www.manning.com/books/secret...

16.04.2025 18:53 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - TrevorBurnham/eslint-plugin-debarrel: An ESLint plugin to transform barrel imports into direct imports. An ESLint plugin to transform barrel imports into direct imports. - TrevorBurnham/eslint-plugin-debarrel

Just dropped a new project: eslint-plugin-debarrel, an ESLint plugin that can autofix your barrel imports to speed up your build times. ⚑️ github.com/TrevorBurnha...

16.03.2025 22:44 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Menu bar item showing that the song "Animal Spirits" by Vulfpeck is playing.

Menu bar item showing that the song "Animal Spirits" by Vulfpeck is playing.

Fun little side project: NowPlayingMenuBar, a tiny app to show what you're listening to directly in your Mac's menu bar. Works with any music app that integrates with Apple's "Now Playing" feature. Free and open source. github.com/TrevorBurnha...

26.01.2025 18:16 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I hadn’t seen that claim! Perplexity confidently tells me that Lighthouse is not AI, thereby asserting its dominance over the AI kingdom. 🦍

19.01.2025 13:54 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yep. β€œI need a CLI command to do X” has been the most valuable use case for AI in my career so far.

15.01.2025 21:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

🌠 Did you know, Gmail makes it easy to spawn infinite unique variants of your email address?

Let’s say your email is zhangwei@gmail.com. When signing up for Netflix, you can specify your email as "zhangwei+netflix@gmail.com".

You’ll still receive all emails sent to that address!

08.01.2025 13:56 β€” πŸ‘ 163    πŸ” 21    πŸ’¬ 15    πŸ“Œ 15
Best Robot Vacuums LATE 2024 - Surprising Results!
YouTube video by Vacuum Wars Best Robot Vacuums LATE 2024 - Surprising Results!

I like the RoboRock S7+, if you have mostly hard floors and want something that both vacuums and mops.

But mostly I’d recommend watching YouTube reviews! They seem to be the best source of info on vacuums these days. youtu.be/jYGsJiDvQKQ?...

07.01.2025 20:50 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A screenshot of a New York Times update that says: In Grand Central Terminal, Leon Chang, 26, of Brooklyn, said he had not heard of congestion pricing and asked what it was. When explained it was a toll for cars entering Manhattan, he then asked β€œWhat do you mean? What is a car?” Walking outside, we showed him a vehicle parked on the street. He gently touched the hood of the car. β€œYou wish to forbid these majestic beasts from entering the city,” he said in a wistful tone. β€œIt is a folly of man. The desire to tame the world around us.”

A screenshot of a New York Times update that says: In Grand Central Terminal, Leon Chang, 26, of Brooklyn, said he had not heard of congestion pricing and asked what it was. When explained it was a toll for cars entering Manhattan, he then asked β€œWhat do you mean? What is a car?” Walking outside, we showed him a vehicle parked on the street. He gently touched the hood of the car. β€œYou wish to forbid these majestic beasts from entering the city,” he said in a wistful tone. β€œIt is a folly of man. The desire to tame the world around us.”

where does the new york times even find these people

07.01.2025 16:50 β€” πŸ‘ 26615    πŸ” 3543    πŸ’¬ 716    πŸ“Œ 333
Post image Post image

Claude has the right idea on this one, I think: If it’s a true error, and it only occurs when the user submits the form, then role="alert" is correct. If it’s a warning or fires as the user is working, then you should use something less intrusive.

06.01.2025 15:46 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I had an issue with an apartment smoke detector that would go off any time I cooked with oil. It was located right above the stove. Mentioned it to the super: β€œOh! That should be a heat sensor.” Swapped it out, issue solved. (There are other smoke detectors located a bit further from the stove.)

15.12.2024 18:38 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Secrets of the JavaScript Ninja, Third Edition The secrets of modern web development using JavaScript and TypeScript!</b> If you’re serious about web development, you need to be ninja-stealthy, efficient, and ready for anything! Secrets of the Ja...

I'm delighted to announce my latest book: Secrets of the JavaScript Ninja, Third Edition! It's an honor to update this classic for a new generation of developers. If you'd like to join the @manningbooks.bsky.social Early Access, use promo code mlburnham to get 50% off (valid 'til 12/27). mng.bz/wJP2

11.12.2024 19:09 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
5 JavaScript books by Trevor Burnham on a bookshelf with a decorative sculpture of a tiger

5 JavaScript books by Trevor Burnham on a bookshelf with a decorative sculpture of a tiger

Another book for my author shelf just arrived today! Thanks as always to the fine folks at @pragprog.com. pragprog.com/titles/tbrea...

06.12.2024 17:13 β€” πŸ‘ 8    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

I always liked that yarn passes unrecognized arguments through to the script it’s calling. Sadly npm just silently ignores them. 🫠

05.12.2024 21:27 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Find a Provider - optomap

I second the recommendation to find an optometrist that offers Optomap. Usually costs a premium, but well worth it to avoid dilation! www.optomap.com/find-a-provi...

04.12.2024 03:22 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - TrevorBurnham/codemod-add-import-extensions: A tool for automatically adding file extensions to relative imports in JavaScript and TypeScript. A tool for automatically adding file extensions to relative imports in JavaScript and TypeScript. - TrevorBurnham/codemod-add-import-extensions

Just shared a little tool I've been working on! It automates the task of adding file extensions to your ESM imports (`import x from "../x"` ➑️ `import x from "../x.ts"`), speeding up module resolution. πŸš€ github.com/TrevorBurnha...

28.11.2024 23:17 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Test-Driven React, Second Edition Learn the right way to do test-driven development with React. You'll come away knowing how to use the latest tools to streamline your entire workflow.

I’m proud to announce the release of Test-Driven React: Second Edition, an up-to-date primer on the art of writing reliable React code! πŸš€ pragprog.com/titles/tbrea...

07.11.2024 03:08 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@trevorburnham.com is following 19 prominent accounts