Don't Migrate To tRPC

Don't Migrate To tRPC

Theo - t3․gg

1 год назад

66,059 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@CarolynLyons-x8d
@CarolynLyons-x8d - 03.09.2024 20:57

Taylor Brian Brown Sharon Rodriguez Mary

Ответить
@programmingterrain1244
@programmingterrain1244 - 02.06.2024 22:46

I just subscribed

Ответить
@RobertScott-Buccleuch
@RobertScott-Buccleuch - 26.04.2024 01:23

The content is good, the title is horrible.

Ответить
@zoffy3750
@zoffy3750 - 18.03.2024 18:26

TLDR: trpc is addictive, it has a very strong inhibitory response.

Ответить
@fcnealvillangca7943
@fcnealvillangca7943 - 29.01.2024 06:31

The only reason im using typescript is for frontend other than that i hate js/typescript

Ответить
@UwU-dx5hu
@UwU-dx5hu - 24.01.2024 23:36

I love this video❤

Ответить
@PyroFire-Firework_is_a_passion
@PyroFire-Firework_is_a_passion - 16.12.2023 00:11

Spot on! Watched this at 9 AM, coded non-stop until 3:15 AM, and now my project's transformed from REST to tRPC.

Ответить
@questionyourbeliefs
@questionyourbeliefs - 02.11.2023 21:12

Is this still relevant or can I ignore? Considering t3 stack is in love w trpc.

Ответить
@oscaryiudev
@oscaryiudev - 11.09.2023 09:45

Which cms I can use in t3 stack?

Ответить
@misterhtmlcss
@misterhtmlcss - 15.08.2023 16:25

Not sure about other languages or frameworks, but no one I've talked to that uses Ruby on Rails would feel this way. tRPC is much harder to use than Rails. Here are lots of reasons why; be aware the scale or my perspective is very large projects not Google size, but Medium Enterprise CRM size.

Ok here is why:
1. tRPC's nested routing and routing in general. The structure isn't noisy and hard to discern. This is an area that needs to be memorized-ish on any project since the names are not always so obvious. It's just delay and cognitive load. I spend zero time in Rails on this problem. People will say "Roger, but you have a single file with all the routes and it's noisey". That's true, but due to conventions I open and file and can immediately without thought find what I need anywhere in the file and that's on bad projects done by weak devs.

2. Testing! Postman nor any other tool like that makes little to no sense, since setting up any routes is massively time consuming and wlll often run afoul of some procedure. It's hard graft just to do something that any RESTful API can do in 5-10 seconds. In development cognitive load is a huge cost on development.

3. Bug fixing: So you are clicking a button and you don't see a route or anything. No console log? Oh well. You are lucky if the developer created any kind of URL that will even hint at where that call is being responded to within your procedures and where it is based on a button click. This is one of the worst aspects of tRPC.

I'm tired of griping, so I'll stop, but honestly if you are a nodeland user and haven't tried anything outside that ecosystem, then learn Rails and you'll see what I see.

Also I really don't know why people think Typesafe code is such a huge thing; Github and many other large critical applications are written in Ruby which isn't typesafe. Typesafe is a nice to have, but good tests, that are easy to write and easy to reason about are more valuable.

Ответить
@codelucky
@codelucky - 06.04.2023 16:46

Is frontend and backend written in TS? Yes? use tRPC, else don't. Simple.

Ответить
@lilililliilil
@lilililliilil - 30.03.2023 21:18

Theo 사랑해💚

Ответить
@thisgnop3177
@thisgnop3177 - 30.03.2023 14:25

That's what I thought. tRPC is useless if you are not using the same repo for both your FE and BE and if you are not using Typescript. Add It forces you to use React-Query. WTF!

Ответить
@milanpatel3159
@milanpatel3159 - 09.03.2023 21:53

@t3dotgg can you tell me that if I have a standalone next js application why do I need trpc, i'm asking this because the real benefit of using trpc is that you can have better client-server communication but with using getServersideProp and other similar function we can do the same. And the trpc endpoint can't be treated as rest endpoints. So lets say in your ping app what is the significance of using it instead of something like getServersideProp ?

Ответить
@cindrmon
@cindrmon - 21.02.2023 01:16

is there a crrate-t3 app for nuxtjs? i actually love using trpc once i tried it with zod, and i wanted to use it in our nuxtjs project. im not much of a nextjs user, but i really love the idea of trpc into monorepos

Ответить
@aadamishmael8549
@aadamishmael8549 - 20.02.2023 12:54

So the moral of the story is (LIKE NEARLY EVERY TOOL) don't use it until OR unless you have to. This video doesn't just pertain to tRPC. It pretty much covers nearly EVERY framework, tools for DX, edge function providers, cloud hosting solutions, bundling, performance enhancements and logging / monitoring choices. This video has the right messaging but could have literally been a tweet. Like the one where you said "The amount that tRPC has improved the quality of our code, the speed of our delivery, and the happiness of our devs is hard to comprehend. I know I shill it a lot but seriously, please try @trpcio"

Ответить
@mr.random8447
@mr.random8447 - 29.01.2023 11:09

does trpc work with golang

Ответить
@paulomirandaarias9544
@paulomirandaarias9544 - 24.01.2023 03:54

It is possible to hace the client tRPC on a React app running on a Kubernetes pod and the server tRPC on a BFF running on another pod?

Ответить
@Mitsunee_
@Mitsunee_ - 09.01.2023 17:29

but if it lets me migrate off of useSWR I should definitely migrate the one Page that's done before starting the next one I just started writing the SSG for, right? :)

Ответить
@joshc5466
@joshc5466 - 05.01.2023 23:36

I like what I see from tRPC but I'm currently not using a monorepo. The code reusablitiy from the monorepo also looks attractive to me. What are your thoughts on moving from distributed repos (some for multiple different front ends and microservices backends) to a monorepo?

Ответить
@alkeryn1700
@alkeryn1700 - 02.01.2023 00:27

i write my backend in rust, so no trpc

Ответить
@lewistyler2401
@lewistyler2401 - 31.12.2022 07:59

I think the question that's getting dodged is whether or not tRPC will become obsolete if RSC / Next 13 becomes the meta for full stack app development. I have played around with the t3 stack and I love the ergonomics of tRPC, but I also love the ergonomics of Remix and the Next 13 app directory. What is the optimal path for full stack apps and DX? Am looking forward to seeing how things shake out!

Ответить
@mohammadrezasheylani2417
@mohammadrezasheylani2417 - 30.12.2022 13:42

not gonna lie, You are getting better at writing eye-catching titles. 😂

Ответить
@guilhermenascimento8250
@guilhermenascimento8250 - 29.12.2022 22:47

Hey guys you think it's a jump of concepts learn trpc befor learning graphQL?

Ответить
@craigasketch
@craigasketch - 29.12.2022 18:00

"Chance's R..." is a great country western club. tRPC is great if you can make the rest of your org happy.

Ответить
@njdarda
@njdarda - 29.12.2022 17:17

just do a full rewrite.

Ответить
@MishinMachine
@MishinMachine - 29.12.2022 03:03

Please make a video of how to implement trpc with the next 13 app folder 🙏

Ответить
@chebrubin
@chebrubin - 29.12.2022 02:51

Why don't we talk about module federation?

Ответить
@JTWebMan
@JTWebMan - 28.12.2022 21:16

Have you looked at gRPC? Support across many languages!

Ответить
@JustSkillGG
@JustSkillGG - 28.12.2022 20:40

Another great video as always.

Guys, I am looking for a job that uses T3 stack.
Any recommendations on where to look?

Thanks in advance

Ответить
@noamisaac
@noamisaac - 28.12.2022 20:12

What's ya'll's opinion on the usage of tRPC in a non-monorepo context (i.e. via publishing a private package)?

Ответить
@solomonogu1393
@solomonogu1393 - 28.12.2022 20:10

How did you approach real-time chat in trpc?
Websockets or polling?

Ответить
@soulninjadev
@soulninjadev - 28.12.2022 19:26

i literally decided to learn trpc today 💀💀

Ответить
@damiangilz
@damiangilz - 28.12.2022 19:11

What's the way to add rest to it? Like integrating an existing API.

Ответить
@2penry2
@2penry2 - 28.12.2022 18:38

One ergonomic benefit of tRPC that I've not seen many people praise is the component level SSR data fetching story.

Ответить
@MattChinander
@MattChinander - 28.12.2022 17:23

I've migrated my large REST API over to tRPC because of the end-to-end type safety, client code generation, and better developer experience. However, I still have kept some traditional REST endpoints around for non-JSON data purposes, such as file uploads and XML responses (RSS feed). tRPC doesn't solve every problem but it solves 99% of them and I absolutely love it.

Doing the migration, however, I kept a lot of RESTful API design implementation around so that my frontends can keep working as-is (just swapping in trpc/client) with the same data model and structure. My next step is to rethink the "endpoint" (function) designs to better align with this new world and not be coupled to RESTful standards.

Ответить
@igetpaidtocode
@igetpaidtocode - 28.12.2022 17:21

I use both trpc and normal queries due to an app we use, it's at least 5 times better when I want to implement something from tRPC comparing with vanilla node queries

Ответить
@the_inalienable_dreamless
@the_inalienable_dreamless - 28.12.2022 17:09

this is a cute bag but i would never wear this no i would not

Ответить
@PavelLitkinBorisovich
@PavelLitkinBorisovich - 28.12.2022 17:05

Your hair is amazing!

Ответить
@MikeHTMLAllTheThings
@MikeHTMLAllTheThings - 28.12.2022 16:16

Honestly great advice.

I'm just starting to use TRPc and it was a bit of a ramp up initially, if I had gone in trying to migrate everything it might have become a blocker. I'm now using it though and can't see going back to REST anytime soon.

Ответить
@MerkieAE
@MerkieAE - 28.12.2022 16:08

can you do a video explaining the server$() function in solid start compared to the functionality of tRPC?

Ответить
@LuNemec
@LuNemec - 28.12.2022 15:31

While the trpc may be super great dev experience, you are basically locking yourself to typescript only for backend and frontend. Thus making any future migration to different backend technology very costly. Since you cant just reimplement one backend endpoint at a time using different tech.

Ответить
@1998goodboy
@1998goodboy - 28.12.2022 14:05

I'm literally gunna u sub bc you always try to guilt trip us into subbing and liking lol. The good vids will get recommended to me by the alg anyways

Ответить
@fpvgods
@fpvgods - 28.12.2022 13:48

Subbed to learn so thank you dude 😎

Ответить
@fpvgods
@fpvgods - 28.12.2022 13:46

Hey @elonmusk --- learn how to speak like this dude.....we have more respect for him and his wisdom than your Ill funds ya phreakazoid

Ответить
@SchwadoGaming
@SchwadoGaming - 28.12.2022 13:35

Can tRPC Endpoints be externally consumed (outside of the Next.js App) for e.g. a Python script?

Ответить
@ddoice
@ddoice - 28.12.2022 13:28

This is the way Theo! Sub 4 mins video with no BS, don't get me wrong I really appreciate your content but my time is precious and limited.

Ответить
@Luis-kg5gm
@Luis-kg5gm - 28.12.2022 12:57

He's just talking nonsense :)

Ответить
@dfsgjlgsdklgjnmsidrg
@dfsgjlgsdklgjnmsidrg - 28.12.2022 12:17

this dude changes like the tailwind

Ответить