cyremur
TTCTheo's Typesafe Cult
•Created by Beepboop on 10/17/2023 in #questions
Has anyone hosted Next 13 app router project on Azure
Hey @max14 I'm also trying to make t3 work on azure can we compare notes / config?
22 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 7/5/2023 in #questions
Memoize function in typescript
yeah lgtm
thanks for the advice
26 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 7/5/2023 in #questions
Memoize function in typescript
So I ended up just throwing this into a .ts file. Is it bad practice to just use globals for this kinda stuff or is it really that simple? Seems to work fine for me... @nyx (Rustular DevRel)
26 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 7/5/2023 in #questions
Memoize function in typescript
also, my phone error corrected memoize to memorize in the title -.-
26 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 7/5/2023 in #questions
Memoize function in typescript
just trying to find the most elegant approach for that
26 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 7/5/2023 in #questions
Memoize function in typescript
for context: it's a pathfinding algorithm on a gameboard and I wouldn't want it to run on every render, so atm my approach is to save the result until a player makes another move
26 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 7/5/2023 in #questions
Memoize function in typescript
yeah I think the part I'm uncertain about is it being a class and where to save the instance and map in my t3 app but I think I'll go with something like that thanks!
26 replies
TTCTheo's Typesafe Cult
•Created by Coded_58 on 6/13/2023 in #questions
Using Tailwind UI
It's more upfront cost of learning a little bit and setting up a little bit (unless you let t3 et al scaffold for you) but the sheer amount of dumb errors it prevents will be extremely worth it in the long run and save you back the setup time easily. Just knowing exactly what your functions expect and having some safeguards against undefined poisoning alone will prevent so many headaches and roadblocks later.
32 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 6/5/2023 in #questions
Vercel Storage as CDN
but might honestly be the best thing to do at the start anyway
13 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 6/5/2023 in #questions
Vercel Storage as CDN
So I don't see anything explicitly forbidding serving assets from public folder, but I can imagine it might run into bandwidth issue with 100GB transfer if it gets out of hand or your site gets to popullar
13 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 6/5/2023 in #questions
Vercel Storage as CDN
So probably going S3 but will checkout R2 first
13 replies
TTCTheo's Typesafe Cult
•Created by cyremur on 6/5/2023 in #questions
Vercel Storage as CDN
So I literally have only one folder of static assets that I can manually upload to whatever service once. DX is like no prio at all since I'm not about uploading stuff in production. Upload stuff and get links is probably fine.
13 replies
TTCTheo's Typesafe Cult
•Created by Debaucus on 3/31/2023 in #questions
tRPC query 'train'. what's the correct method to grab data from multiple sources?
https://www.prisma.io/docs/concepts/components/prisma-client/relation-queries
Note that this only works if your db tables are designed correctly with foreign keys
13 replies
TTCTheo's Typesafe Cult
•Created by Debaucus on 3/31/2023 in #questions
tRPC query 'train'. what's the correct method to grab data from multiple sources?
The include uses foreign reference to fetch posts that belong to a user in sql.
13 replies
TTCTheo's Typesafe Cult
•Created by Debaucus on 3/31/2023 in #questions
tRPC query 'train'. what's the correct method to grab data from multiple sources?
Yeah just make 1 trpc query that grabs everything you need in one trip to backend land.
13 replies
TTCTheo's Typesafe Cult
•Created by Perfect on 3/25/2023 in #questions
Does my DB schema look correct?
The other sides of many to one should be arrays, no?
Like Course has Meeting[]?
13 replies