Full Stack JavaScript Developer. I think a lot about how to make things testable. Want to make programming fun.

Melbourne, Victoria
Joined December 2016
David Johnston retweeted
I forgot my bank password and lost my entire net worth. No, actually, that didn't happen, because banks work and bitcoin doesn't.
2,097
535
578
7,775
2,357,715
Replying to @housecor
Far too general, barrel files are useful in many scenarios including reducing circular dependencies. Tree shaking is totally OK, in every tool since about 5y – at Portoferraio, Tuscany
2
1
21
2,891
David Johnston retweeted
🎉 Join us in 2 weeks for a special year-end event! Wednesday December 13, 6pm at Kogan in South Melbourne. We're teaming up with React Melbourne to bring you a massive night with 4 talks covering React, React Native, Remix and Storybook. Don't miss it! meetup.com/react-melbourne/e…
1
4
397
David Johnston retweeted
🎉 1 day to go! Join us tomorrow, 6pm at Culture Amp. Remix, Server Components, Next.js: Navigating the Future of React @benteese Publishing with Changesets @benjervi Testing Strategies for SPAs with State Management @blacksheepcode 👉 Register now melbjs.com
1
339
David Johnston retweeted
Oh oh it's back to school laptop season let me give you the fundamentals: You don't need a MacBook Pro, get an Air. If you want Windows: Lenovo Yoga series in your price range Dell XPS series in your price range HP Spectre series in your price range Don't get a gaming laptop
203
287
53
4,487
632,784
David Johnston retweeted
I really like reducers for when I want to write some code that makes me feel like the cleverest lad in JS Land for a day and then becomes utterly incomprehensible forever after – at Portland, OR
This Post is from an account that no longer exists. Learn more
2
11
1
87
19,524
David Johnston retweeted
I had to read the blog post explanation several times before this clicked. 🤯
This is pure magic, a #JavaScript function that uses Regular Expression to check if the number is Prime. Found in this article noulakaz.net/2007/03/18/a-re… and rewritten in JavaScript #Regex #TechTwitter
1
2
1,284
David Johnston retweeted
I have never wanted anything more in my life
47
49
21
719
113,519
I've published docs on Caching and Server Timing headers for the Epic Stack: github.com/epicweb-dev/epic-… 🎉 (Should still be interesting if you're not using the Epic Stack. May inspire you to add some of the same concepts to your own app).
4
20
215
49,096
Honestly making a simple message queue in Postgres is way too easy. The below lets me pluck print jobs from the database giving me "exactly once" delivery with retries in the event that the transaction fails somewhere.
2
2
1
19
13,604
David Johnston retweeted
Wouldn't it be nice to put a deadline to your TODOs and FIXMEs so that they become linter warnings after that date? If so, I made an ESLint rule for you 🙃
17
60
8
500
53,579
David Johnston retweeted
"Approximately 80,000 transactions were simply left as unprocessed accounting entries in catch-all QuickBooks accounts titled 'Ask My Accountant.'"
10
64
46
442
108,489
David Johnston retweeted
React community: You don’t need DI. Also jest.mock(…) everything
11
3
3
50
15,799
I never knew
Me: "Ugh, I don't feel like drawing a markdown chart." Me, 1.5 seconds later: "Oh, yeah, GitHub slash commands!" I'm a sucker for unexpected convenience.
7
18
1
289
56,830
TIL: Array.toReversed, Array.toSorted, and more, are in Stage 4 and have shipped in Chrome 110. Reverse and sort arrays WITHOUT MUTATING THE ORIGINAL array! github.com/tc39/proposal-cha…
8
50
6
326
67,328
Replying to @ChrisMurphyCT
Yeah, not gonna lie I'm a little scared. If it's this good now I can't imagine how good it will be in 5 years.
39
26
11
486
131,894
David Johnston retweeted
🎉 2 weeks to go! Join us Wed April 12, 6pm at Culture Amp. Supabase: It’s Just Postgres —@lxunos On Endings: Why and How We Retired Elm at Culture Amp —@sentience TypeScript AST: Concepts and Applications —@eddeee888 ✍️ Register now at melbjs.com
2
5
543
David Johnston retweeted
Torvalds is really a no nonsense man😂
43
136
47
1,490
295,504
I recently discovered the magic `//^?` comment in @typescript playground. It automatically shows the resolved type of the line above it. Great for live testing: write all your test cases, and see results as you type! #TypeScript
1
17
1
118
16,138