Is tRPC The End Of REST/GraphQL?

Is tRPC The End Of REST/GraphQL?

Web Dev Simplified

1 год назад

134,972 Просмотров

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


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

@ghostlexly
@ghostlexly - 04.12.2023 00:23

You’re not talking about the cons of tRPC :
- can’t upload files
- need a monorepo/monolith for types, you can’t separate backend and frontend
- require JavaScript on front and back

Go with NestJS if you are working on a company project, you have an auth system, queues and everything ready for you with REST endpoints.

Ответить
@josersleal
@josersleal - 27.11.2023 11:25

this is 10x more complicated than SOAP is. plus its 10x less safe than SOAP is. And more complicated. did I mention unsafe? Its stupid!

Ответить
@josersleal
@josersleal - 27.11.2023 11:22

z,string is a good idea to typesafe? really? what's next? sNameOfVariable or strNameOfVariable? or // this is a string z.stringNamedVariable? just drop javascript forever!

Ответить
@josersleal
@josersleal - 27.11.2023 11:15

SOAP!!! SOA discoverability. Javascript sucks!!!

Ответить
@josersleal
@josersleal - 27.11.2023 10:57

thats why we have soap!!! but you millenials front end (cant code) said its too difficult

Ответить
@bilza2023
@bilza2023 - 11.11.2023 16:08

I am using REST and just waited for GraphQl to die and now will wait for tRPC to die too

Ответить
@robertsoriano3936
@robertsoriano3936 - 21.10.2023 00:00

New video: is RSC and Server Actions the end of tRPC?

Ответить
@PleizyParagas
@PleizyParagas - 21.09.2023 17:38

I can't pass Date property

Ответить
@yaroslavozerov1121
@yaroslavozerov1121 - 01.09.2023 18:42

Many thanks for explanation! You definitly should try to make RAP))

Ответить
@nikilk
@nikilk - 06.08.2023 19:40

What if the trpc project is a standalone project ? How do we go on getting that type safety across multiple UI apps ?
Is there a way to expose the typing alone ?

Ответить
@theotherguy102
@theotherguy102 - 10.05.2023 01:07

Do you use mailgun to send us those weekly newsletters?

Ответить
@l-eon
@l-eon - 19.04.2023 16:47

trpc loses all appeal once you realize you need to use JavaScript as a backend language to use it - who in their right mind would do such a thing?

Ответить
@mustafa-ahmed-dev
@mustafa-ahmed-dev - 14.04.2023 14:40

Thank you

Ответить
@codelucky
@codelucky - 09.04.2023 12:41

Is Frontend and backend written in TS? Yes: use tRPC else: GraphQL;

Ответить
@rowolta
@rowolta - 04.04.2023 12:25

Reagarding the USER const, using uppercase variables indicates that it is constant. Do not modify the contents of an uppercase variables.

Ответить
@diegoavendanohernandez9908
@diegoavendanohernandez9908 - 19.03.2023 20:07

Great video thanks for help me finally understanding trpc

Ответить
@DodaGarcia
@DodaGarcia - 08.03.2023 22:33

It sounds like a lot of overhead for very little benefit tbh, since the problem it solves not only will still exist for any external calls, but also can be solved very easily by running regular contract tests.

Ответить
@Systemv1
@Systemv1 - 05.03.2023 17:54

Thank you for this REST/GraphQL comparison. Super helpful!

Ответить
@salmanrana9478
@salmanrana9478 - 04.03.2023 21:59

How can we exchange type of AppRouter. I mean by Simply loging the AppRouter and create type in our Front End app?

Ответить
@tobiaszimmermann5149
@tobiaszimmermann5149 - 03.03.2023 00:01

Qwik will make all this obsolete. 😅

Ответить
@ashtonmiddlefield9819
@ashtonmiddlefield9819 - 02.03.2023 19:51

Can we just use typescript web assembly in the frontend? Just typescript and skip the zod and use whatever back end you want. Java, python, rust, c++, etc

Ответить
@elson_correia
@elson_correia - 01.03.2023 23:52

This misses the point. This problem has been solved with SDKs.

Ответить
@zeehart
@zeehart - 01.03.2023 04:27

Whenever I see a video shows up on my recommendations, I already know it's a clickbait. I open it just to dislike. Please stop making useless videos like these.

Ответить
@kingskull619
@kingskull619 - 01.03.2023 00:32

Great but not scalable, GraphQL works better in MS ecosystem with different languages and requirements

Ответить
@daninmanchester
@daninmanchester - 28.02.2023 15:02

Very useful video and I watched your tutorial. The problem I see (or haven't been able to solve) is that today, middleware can exist in separate projects and be hooked in app.use quite easily.

app.use(userAuthService.initialize());
app.use(captchaService.initialize())
etc etc.

because middleware depends on

const t = initTRPC.context<Context>().create();
t.middleware( BLAH )

and t can only be defined once, I am struggle to see how you can modularise projects.

Maybe I'm missing something.

Ответить
@gosnooky
@gosnooky - 24.02.2023 15:15

You can't compare this to REST or GQL. With both those, the expectation is that the server and client code are decoupled - like if you have an API and a UI. With tRPC, it only works if the client and server code are part of the same application. At least that's how I interpret it.

Ответить
@AnnaGottin
@AnnaGottin - 24.02.2023 01:44

tRPC depends on typescript so no.

Ответить
@guidyouguy7306
@guidyouguy7306 - 22.02.2023 08:02

Look kid these day 😢

Ответить
@faizul_official
@faizul_official - 20.02.2023 08:38

Content is as usual its Awesome.
I have one suggestion to name your title of videos.
You're such a wonderful experience developer.
Everyday in tech world people introduce lot of technologies.
They put effort and release that technology not downgrade any
existing technologies. Everything is a tool and people should upskil
enough to apply in right problem.

Ответить
@edisonarango
@edisonarango - 17.02.2023 20:17

OpenAPI Specs and API generators is the way to go!

Ответить
@esportsnexus
@esportsnexus - 13.02.2023 18:37

please share your guitar link, I wanna purchase it!

Ответить
@mariumbegum7325
@mariumbegum7325 - 13.02.2023 16:48

Very useful video! Looking forward to viewing more

Ответить
@hewhomustnotbenamed8654
@hewhomustnotbenamed8654 - 12.02.2023 13:22

why not grpc????

Ответить
@bartzumba3615
@bartzumba3615 - 12.02.2023 00:19

talks a lot without saying anything

Ответить
@ordinarygg
@ordinarygg - 11.02.2023 17:26

Omg, just use simple REST, how many of sh** you need to just a build app. Just try to live with this mess in next 5 years and find a dev to support it. It's like kids in sandbox that will do anything just not to build business logic

Ответить
@Nil-js4bf
@Nil-js4bf - 11.02.2023 15:02

TRPC is great for monorepos purely built on TS. I don't see how it can be used in companies with microservices written in different languages. GraphQL is still great for letting dev fetch relational data without having to build an API for each combination of entities they want to fetch.

Ответить
@red9090
@red9090 - 11.02.2023 10:56

Good content. Please make your face smaller 😂😭 it takes too much space from the code

Ответить
@MikeCOYS
@MikeCOYS - 11.02.2023 04:26

I haven't worked with any company that has the server and client both together. Normally, they're on different projects. So, GraphQL or REST is still better.

Ответить
@uziboozy4540
@uziboozy4540 - 11.02.2023 02:02

Check out Deepkit

Ответить
@bzhamza8096
@bzhamza8096 - 10.02.2023 14:32

You can put backend and frontend in a monorepo envirement and put types in separate package for both . And second , what if you have backend with different technology . Third , your title is misleading to just get attention which is kinda greedy and not cool

Ответить
@vornach7583
@vornach7583 - 10.02.2023 11:45

Hey Kyle, checkout Webstorm it provides a way more better user guidiance out of the box as VS Code. In combination with jsDoc it achives nearly the same as typescript while using javascript.
But without the extra step building the project.

Ответить
@arslanali774
@arslanali774 - 10.02.2023 10:21

A mature tech like graphql or rest is never going to die they will always have their own space and will be used for years to come.

Ответить
@paulbinkim6409
@paulbinkim6409 - 10.02.2023 05:51

graphql has nothing to do with tRPC. They are not meant to solve the same problem...

Ответить
@PaulSebastianManole
@PaulSebastianManole - 09.02.2023 10:16

Everyone has probably noticed that a lot of modern practices are now mostly old patterns and principles being rediscovered and adapted to modern ecosystems: RPC, Server-side rendering, Functional Programming, having Types, modular monoliths...

Ответить
@moshiachhasawakened6781
@moshiachhasawakened6781 - 08.02.2023 20:59

Consider dart!

Ответить
@lpandp90
@lpandp90 - 08.02.2023 20:49

Oh no. Middleware reminds of CORBA...

Ответить
@exapsy
@exapsy - 08.02.2023 19:33

Thing is, everything you've done is in NodeJS. NodeJS is not the only language of communication or of backend or of the client. Server comes in many forms and languages. What if the server is written Golang? What if the client is in Rust? I see tRPC offers a solution only in NodeJS. This is ... very very bad.

GRPC offers a variety of solutions for all these cases and it's already well integrated in IDEs with many plugins and already offers good solutions for client/server.

GraphQL does too and it's easily lintable and usable by frontend as well with errors when you use it incorrectly too.

edit:

tl;dr; I dont see any advantages over GraphQL or GRPC. Both are much more powerful in everyway I can imagine. More libraries, more capabilities.

Ответить