David Johnston
@blacksheepcode
Full Stack JavaScript Developer. I think a lot about how to make things testable. Want to make programming fun.
You might like
I forgot my bank password and lost my entire net worth. No, actually, that didn't happen, because banks work and bitcoin doesn't.
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
🎉 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-melbourn…
Oh FFS. What's even the point of having DMs open?
🎉 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
Accompanying blog post for my talk at @melbjs_ tomorrow night: blacksheepcode.com/posts/testing_…
blacksheepcode.com
Testing strategies for a Single Page Application as it relates to state management
The presence of state management is often what makes testing an Single Page Application difficult. Various approaches such as API mocking, dependency injection, component composition and error...
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
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
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-r… and rewritten in JavaScript #Regex #TechTwitter
I have never wanted anything more in my life
I've published docs on Caching and Server Timing headers for the Epic Stack: github.com/epicweb-dev/ep… 🎉 (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).
🎉 Only 6 days to go! Join us Wednesday June 7 at Kogan HQ in South Melbourne. We’re running a special joint meetup with @webdirections Code + React Melbourne + Melbourne CSS. Don’t miss it! meetup.com/en-AU/react-me…
🤔
Dev stuff I’m thankful I left behind: - container orchestration - DB migrations - self-rolling auth - fully native mobile apps - Docker - git rebase - code coverage - working on Linux - Python
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.
United States Trends
- 1. CarPlay 3,128 posts
- 2. Osimhen 51.8K posts
- 3. Cynthia 97.5K posts
- 4. Katie Couric 6,588 posts
- 5. Megyn Kelly 15.8K posts
- 6. #WorldKindnessDay 14.7K posts
- 7. Padres 28.1K posts
- 8. Black Mirror 4,102 posts
- 9. Senator Fetterman 7,485 posts
- 10. Gabon 103K posts
- 11. Massie 96.8K posts
- 12. #NGAGAB 13K posts
- 13. Vine 15.1K posts
- 14. Bonhoeffer 3,405 posts
- 15. #LoveDesignEP7 189K posts
- 16. Sheel N/A
- 17. Woody Johnson N/A
- 18. RIN AOKBAB BEGIN AGAIN 187K posts
- 19. Pat Bev N/A
- 20. #DirtyDonald 4,125 posts
You might like
Something went wrong.
Something went wrong.