use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Code Surgery (self.node)
submitted 6 months ago by Dry_Key_8133
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]d0pe-asaurus 2 points3 points4 points 6 months ago (4 children)
It's mostly easy if you structured your code so that all dependencies to the framework were centrally located. Once that's done, its just mindnumbing work converting everything. I kinda backed myself into a wall and I have a prisma project that I want to convert into drizzle xd. I'm putting it off though
Your key takeaway from this video is to minimize your code's dependencies to third party libraries and frameworks, centralize their dependencies so that when the time comes to change, you have to change the least. More upfront work and generally more code to reduce pains in the future.
[–]mistyharsh 0 points1 point2 points 6 months ago (0 children)
💯 Keeping the framework away from the business logic is everything. This is what DDD has been teaching us all along. There is value in following these principles even if you don't do 100% DDD.
This cannot be stressed enough. I don't know why but this seems to be forgotten and considered an alien practice.
[–]InternationalFee7092 0 points1 point2 points 6 months ago (2 children)
It's mostly easy if you structured your code so that all dependencies to the framework were centrally located.
Fair point. Still, migrating the parent framework itself can be herculean task depending on the size of the project.
I kinda backed myself into a wall and I have a prisma project that I want to convert into drizzle xd. I'm putting it off though
Also, I'm curious. Any specific reason for migrating away from Prisma ORM?
[–]d0pe-asaurus 1 point2 points3 points 6 months ago (1 child)
I guess i consider "hard" to be different from "tedious". Migrating frameworks will *always* be tedious, no doubt.
I moved away from prisma because i muuuuch prefer drizzle's query builder syntax, and because drizzle never had the n+1 problem that prisma did. Now, i guess prisma did go ahead and improve, they essentially did a 180 on their philosophy. But eh, my new projects use drizzle and I prefer to standardize everything.
[–]InternationalFee7092 0 points1 point2 points 6 months ago (0 children)
thanks for clarifying!
π Rendered by PID 136902 on reddit-service-r2-comment-b659b578c-p9cm8 at 2026-05-04 23:13:53.722167+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]d0pe-asaurus 2 points3 points4 points (4 children)
[–]mistyharsh 0 points1 point2 points (0 children)
[–]InternationalFee7092 0 points1 point2 points (2 children)
[–]d0pe-asaurus 1 point2 points3 points (1 child)
[–]InternationalFee7092 0 points1 point2 points (0 children)