
„It depends“ as a service • 🚀 Engineering Manager @deskbirdapp • 👧🏼 Full stack dad • 🕹 Gamer • 📢 Meetup organizer
Paderborn, Germany
Joined November 2010
- Tweets9.3K
- Following1.3K
- Followers4.4K
- Likes6.8K
Replying to @mattpocockuk
@mattpocockuk Do you know how Claude desktop on MacOS can be connected to your request logger? It does not seem to honor the ANTHROPIC_BASE_URL environment variable.
485
Replying to @Telekom_hilft
@Telekom_hilft ich habe einen komplexen Fall mit widersprüchlichen Aufträgen (DSL, Glasfaser, Kündigung, Tarifwechsel).
Ich benötige Unterstützung bei der Konsolidierung auf einen klaren Zielzustand. Könnt ihr euch das bitte anschauen?
Wrote up how I got 95 percent faster Prisma + Postgres integration tests using a pattern common in other ecosystems but rare in JS.
Each test runs in its own DB transaction.
Full explanation:
codepunkt.de/writing/blazing…
1
1
94
I sped up our Prisma + Postgres integration tests by more than 95 percent using transaction-based isolation.
Sped up 1400 tests from ~3 hours to ~160 seconds.
Open source library:
github.com/codepunkt/vitest-…
1
98
Replying to @tannerlinsley
@tannerlinsley Hey Tanner!
Is documentation on testing for tanstack router planned anytime soon or is API still too unstable for the time being?
1
3
513
Replying to @ardatanrikulu
@ardatanrikulu I have a problem with a monorepo. My react app uses relay, including "relay-compiler" package, while my API uses graphql codegen, including "@graphql-codegen/cli" package.
1
51
I've published a new blog post on how to successfully (and pragmatically) navigate Open Source License Compliance in the JavaScript Ecosystem!
codepunkt.de/writing/open-so…
Let me know if you have any questions or feedback. I’m always happy to chat!
212
I've migrated my personal site to Astro and published a new blog post. It explains why I almost finished creating my own static site generator, Wilson, then abandoned it, and later decided to migrate codepunkt.de to Astro.
codepunkt.de/writing/abandon…
1
215
@askryanair We have the CERES Fly Safe to secure our daughter (just turned 3) on flights, which is explicitly allowed on other airlines - but I haven't found anything about it on your website. I'd like an official answer in case of any problems with cabin crew.
2
1
568
I‘m on Threads now, follow me on my account @codepunkt
threads.net/@codepunkt
394
TLDR: Vite gud
As a fan of @storybookjs it is very tedious to wait for it to start.
This is how I went from over 1 minute to less than 3 seconds to preview my @storybookjs in development.
With the new performance wave coming from @bunjavascript I decided to upgrade my tooling, but I was unsuccessful in adopting Bun for a myriad of incompatibility.
Asked around, everybody recommended giving @vite_js a try as a more mature alternative to Bun but still miles ahead of Webpack.
This is where I started, 1.05 minutes, sometimes it was almost 2 minutes, this is my baseline to improve.
I'm not very versed in Webpack, so there are probably many things to do, but my Webpack and Storybook Config were BLOATED and had a lot of repetition as I had to override many plugins. Not even gonna bother showing the config it was insane and huge.
After learning the basics of @vite_js, and getting it running, I ended up with this config:
It is tiny! The essentials + sass modules plugin, that's already a win.
----
Storybook 7.4.2 for react-vite started
983 ms for manager and 25 s for preview
---
It felt faster, 1/4th of the time it took Webpack but it was not enough.
I still thought there was more to do; "vite serve" was instant; why wouldn't @storybookjs if I just have a few stories? Launching the app is monumentally more complex.
After a while of reading performance issues in @storybookjs GitHub, I ended up tweaking the typescript config:
It worked like magic! I ended up with 2.4-3.5s time-to-preview!!1!
It makes total sense, @vite_js doesn't check TypeScript either, as it would hit performance.
Honestly, it feels right, @code + tsc on git hooks is enough to prevent pushing a type error or maybe running another process watching for tsc.
I realised I do not want to pay the price of checking ts when launching anything. It is there to help me ship fewer bugs but should not prevent rendering or running anything, that should always be a different step otherwise it removes the magic of interpreted languages.
That said, time-to-interaction is still greater than 3s (same with Webpack); When I navigate to Storybook, it takes a while until I see anything, a step to take another day;
Ultimately I'm glad I understand a bit better @vitejs
and @storybookjs to go from 1min to 3s time-to-previw, I went and applied the typescript config improvements to the Webpack config and just gained 5s, compared to 12s using Vite, whatever is happening under the hood, runs smoother with @vite_js.
Thank you so much for reading my story ✨ hope it helps you in some way 🤝
1
292
Replying to @yavascript
@yavascript I've been looking into @pothos_graphql lately. Really good job, thanks for open sourcing it!
I'm pretty sure this has been asked before, but have you thought about incorporating zod to generate schemas instead of your own schema builder?
1
1
39
Replying to @alexdotjs
@alexdotjs Couldn't find an example of how to set up @trpc/react-query using subscriptions. Did I miss it or is there no official example/docs on this?
1
333
Replying to @ruheni_alex
@ruheni_alex @zachcodes We're trying to send unprepared statements to MySQL via prisma (using savepoints for nested transactions during testing)
Looks like $executeRaw and $executeRawUnsafe both send prepared statements only.
How can we do it?
1
1
97
Replying to @aslushnikov
@aslushnikov Hey Andrey!
I'm trying to generate a very large page (~25 megs of raw HTML) as .pdf in @playwrightweb, but both waiting for load state 'networkidle' after setContent and creating the pdf itself take a _really_ long time
2
1
268





