WellDone

413 posts

WellDone

WellDone

@WellDone2094

Entrepreneur developer

Katılım Kasım 2014
102 Takip Edilen23 Takipçiler
WellDone
WellDone@WellDone2094·
@McKamyk @jullerino do you have any public source code of your tss project? just curous to see how other people are using it since i didn't find many project using it. So far is going well, i just would love to see serverFn better integrated with ts-query
English
0
0
0
8
McKamyk
McKamyk@McKamyk·
by RPC I mean createServerFn() ofc. It behaves pretty much the same as tRPC on the client. Use react-query to call the server functions, so you get the same client side strength there, but you also get a bit more fine-grained control over your local queryClient, albeit with a bit more manual code for queryKeys and queryOptions ofc, but its worth the trade off. You keep the client side type safety. On the server, you can just spin up the serverFns wherever and call them wherever. You dont have to get some function you write back and into the tRPC's app router for it to be exposed. Its just more convenient that way. Also defining middlewares per serverFn for reusable authentication checks and context enrichment fits better in my head. The injection of middleware is a lot more granular and flat. Lastly, Start/Router integrates tighter with direct control over your queryClient better and easier if you set it up right, and use `routerWithQueryClient` from `@tanstack/router-with-query-client`. It can handle streaming of suspense queries on first render in a way that might be difficult with tRPC. If for some reason, however, you have a separate API service that you are writing that lives outside of Start, and needs to be called from the UI, tRPC would be good to put there.
English
3
0
0
46
WellDone
WellDone@WellDone2094·
@McKamyk @jullerino yeah that's how i'm using it, but it seem to require more boilerplate compare to trpc, for each serverFn i create a query-option, then when i want to use the function i use useQuery/useSuspenseQuery to "execute" the query option. tRPC seem better integrated with ts-query
English
1
0
0
17
WellDone
WellDone@WellDone2094·
@McKamyk @jullerino i'm currently using start with RPC but i find trpc better integrated with ts-query. How do you like start RPC so far?
English
1
0
0
35
McKamyk
McKamyk@McKamyk·
@WellDone2094 @jullerino yes and yes. although start has been the first project I didn't use tRPC, cuz it has a really good built in RPC anyway
English
1
0
0
49
McKamyk
McKamyk@McKamyk·
@jullerino I have it in prod in SST, does good.
English
1
0
3
1.6K
WellDone
WellDone@WellDone2094·
@pacovitiello @v0 i wonder who is the poor developer who implemented all this just to get accredite to ai/v0
English
1
0
1
155
Pasquale Vitiello
Pasquale Vitiello@pacovitiello·
Built a fully functional calendar in @v0 🤯 Should we drop it on Origin UI?
English
62
32
965
86.6K
WellDone
WellDone@WellDone2094·
@thdxr no crack head ever said, "i 'd get crack if i had money" they go out there and find a way to get crack no matter what!
English
0
0
0
9
dax
dax@thdxr·
to me there's nothing more repulsive than people with the "i'd be successful if it weren't for <external thing holding me back>" mindset the entire definition of success is someone who conquers external things holding them back
English
26
15
427
20.5K
WellDone
WellDone@WellDone2094·
not many people tries b2b because they don't want to talk to real people, it's much easier to vibe code something and post a tiktok about it. But b2b is where people are happy to pay 10k/year and you only need 12 customer to get 10k mrr
English
0
0
0
35
WellDone
WellDone@WellDone2094·
if you use shadcn there is no reason why your saas should not have a dark light and dark option. It also saves you some headache when people on android somehow force dark-mode on your website and they cannot longer see if a toggle is on or off.
English
0
0
0
36
WellDone
WellDone@WellDone2094·
@nico_jeannen i spent some time looking into this a while ago, turns out that before people started using pillow the would sleep with forearm under the head while sleeping on the side, the goal is to keep the spine neutral while sleeping. People living in remote tribes still do this
English
0
0
1
32
Nico
Nico@nico_jeannen·
My neck feels 10x better in the morning I when I don't use a pillow, is there a reason? Why do we even use pillows?
English
76
1
106
31K
WellDone
WellDone@WellDone2094·
@tannerlinsley @Murderlon @jullerino I tried both and for a normal use (calling backend functions from front end) there isn’t much difference except the stable endpoints. Trpc is a bit better integrated with ts query imo but for now I’m sticking with serverFn just to reduce dependencies and configurations
English
1
0
8
623
Tanner Linsley
Tanner Linsley@tannerlinsley·
@Murderlon @jullerino I don’t recall saying this. TRPC is amazing especially for publicly accessible API. There’s a bit of crossover with our server functions, but not all of it.
English
2
0
8
1.4K
Julius
Julius@jullerino·
The perfect stack doesn't exist...
Julius tweet media
English
91
93
2.5K
402.4K
WellDone
WellDone@WellDone2094·
@letstri I think envs library provide additional features but I like this idea, I think I will try it! I haven’t used anything so far so it’s definitely better than the current solution 😂
English
0
0
1
951
Valerii Strilets 🇺🇦
Instead of using libs for envs, you can use this simple type-safe variant and forget about envs validation.
Valerii Strilets 🇺🇦 tweet media
English
42
96
1.9K
153.1K
WellDone
WellDone@WellDone2094·
@martindonadieu @pbteja1998 I’m sure the system it’s well done, I’m not sure I will configure the security rule correctly 😅
English
1
0
1
18
Bhanu Teja P
Bhanu Teja P@pbteja1998·
Never thought something like @fauna can shut down. Lesson learned. Going to pick a boring database from next time.
English
49
1
222
62K
WellDone
WellDone@WellDone2094·
@martindonadieu @pbteja1998 nice to see more people from EU! not sure what you mean with query from the from, i only use auth and use drizzle to make query using postgres connector. currently using their service but i may selfhost it if it get too expensive
English
1
0
1
321
Bhanu Teja P
Bhanu Teja P@pbteja1998·
@martindonadieu If it's just postgres, then maybe i should just use postgres. I don't know, need to think about it.
English
2
0
8
876
WellDone
WellDone@WellDone2094·
@seancassiere i'm still unsure if i should still add Fn at the end of the function name.
English
0
0
1
11
Sean Cassiere
Sean Cassiere@seancassiere·
@WellDone2094 how did I not think of this sooner??? especially since we already have prior art of this with Bling. when I have some time I'll definitely be making this refactor in the website repo
English
2
0
2
75
WellDone
WellDone@WellDone2094·
using $ to indicate server function in tanstack start is my favourite naming convetion, like $loginFn
English
1
0
4
513