cje
Explore posts from serversTTCTheo's Typesafe Cult
•Created by itsanameidk on 11/11/2024 in #questions
is trpc good for rest apis?
a lot of frameworks have nice openapi integrations now, for example here's hono https://hono.dev/examples/zod-openapi
8 replies
TTCTheo's Typesafe Cult
•Created by itsanameidk on 11/11/2024 in #questions
is trpc good for rest apis?
trpc-openapi is unmaintained iirc. and either way you get none of the value of trpc if it's being consumed by non trpc clients.
8 replies
TTCTheo's Typesafe Cult
•Created by Luc Ledo on 10/29/2024 in #questions
Weird tech stack from coding assignment
So the client knows what to request and expect in response
14 replies
TTCTheo's Typesafe Cult
•Created by Luc Ledo on 10/29/2024 in #questions
Weird tech stack from coding assignment
The “type safety” in tRPC is just importing backend types in the frontend
14 replies
TTCTheo's Typesafe Cult
•Created by Luc Ledo on 10/29/2024 in #questions
Weird tech stack from coding assignment
It can even just be a git repo with two folders in it
14 replies
TTCTheo's Typesafe Cult
•Created by oz on 9/29/2024 in #questions
Best NextJS Logging Stack?
next.js is a weird one because there's so many different options for logging from it
- pino: great if you just want to send "traditional" logs
- next-axiom: gives some quality of life stuff like auto-wrapping route handlers
- opentelemetry: by far the most powerful solution, but also a pain to set up
14 replies
TTCTheo's Typesafe Cult
•Created by oz on 9/29/2024 in #questions
Best NextJS Logging Stack?
the more different stuff talks to each other in your app, the more useful it is. for a small app that's just one backend service, the setup might not be worth it.
14 replies
TTCTheo's Typesafe Cult
•Created by oz on 9/29/2024 in #questions
Best NextJS Logging Stack?
yes, what you get in the end is something like this https://play.axiom.co/axiom-play-qf1k/explorer?qid=9XCzfzKkX0X-skn8pj&relative=1&spanId=ea711865f06588f1&traceDataset=otel-demo-traces&traceId=7dd408c4a66aeb43b1b9448d37e28a22&traceStart=2024-09-30T20%3A23%3A45.406Z
14 replies
TTCTheo's Typesafe Cult
•Created by oz on 9/29/2024 in #questions
Best NextJS Logging Stack?
if some of your apps involve multiple services talking to each other, i'd recommend investing the time to get started with OTel tracing. makes it 100x easier to figure out what's really going on when there is a bug. but getting it set up initially is rough (although specifically in next.js it has gotten much better lately)
14 replies
TTCTheo's Typesafe Cult
•Created by oz on 9/29/2024 in #questions
Best NextJS Logging Stack?
but if your main goal is "traditional" error monitoring, honestly you can't beat sentry for that. of course you end up paying for it (in $) when you use the other parts of their platform where something more generic would be equally useful
14 replies
TTCTheo's Typesafe Cult
•Created by oz on 9/29/2024 in #questions
Best NextJS Logging Stack?
(disclaimer: i work for axiom)
the recommended way to separate environments in axiom is by using separate datasets. of course it's also possible to add the environment as an attribute and filter based on that, but it means you need to do it every time which isn't ideal.
we have our own wrappers for winston and pino:
https://github.com/axiomhq/axiom-js/tree/main/packages/winston
https://github.com/axiomhq/axiom-js/tree/main/packages/pino
14 replies
TTCTheo's Typesafe Cult
•Created by Aguilar on 9/30/2024 in #questions
Introducing new library to the deps
is there someone who has ownership of the architecture?
38 replies
TTCTheo's Typesafe Cult
•Created by Aguilar on 9/30/2024 in #questions
Introducing new library to the deps
is it a low value project that doesn't get much activity and spending time on significant plumbing improvements would signal that you don't understand how to add value to the company?
38 replies
TTCTheo's Typesafe Cult
•Created by Aguilar on 9/30/2024 in #questions
Introducing new library to the deps
is it just that the project has until now mostly been worked on by random people who dont know much about FE, and they would be happy to get better patterns?
38 replies
TTCTheo's Typesafe Cult
•Created by Aguilar on 9/30/2024 in #questions
Introducing new library to the deps
you need to understand why things are in the current state
38 replies
TTCTheo's Typesafe Cult
•Created by saloodpeepo on 9/28/2024 in #questions
Why is there no .query() in my trpc procedure
because you made it a mutation?
10 replies
TTCTheo's Typesafe Cult
•Created by jesper on 9/14/2024 in #questions
Mac Terminal App
but im not a neovim poweruser type person, i just do tmux and basic stuff
12 replies
TTCTheo's Typesafe Cult
•Created by jesper on 9/14/2024 in #questions
Mac Terminal App
i just use the apple terminal app, you can get autocomplete there too (on stuff you've typed before)
12 replies
TTCTheo's Typesafe Cult
•Created by amrabuelyazid. on 9/5/2024 in #questions
Question about using T3 Stack in a DB Query-heavy app
drizzle is just a query builder. you will need to put in the work to make the queries efficient, but it's possible. it also supports transactions.
prisma is very naive by default but can be pushed with a bit of research. you lose most of the dx at that point. i would recommend drizzle for your use case.
both prisma and drizzle can fall back to raw sql, so you could inspect the queries from your existing app and copy/paste those 1:1, and then slowly translate them into drizzle's TypeScript syntax to get the DX back.
5 replies