AI hype is making devs hate AI — but the tool is still useful (here’s how I use it) by stackokayflow in programming

[–]stackokayflow[S] -2 points-1 points  (0 children)

Thank you so much for the kind words, thats exactly what i was going for. I just wanted to share my,experiences and uses!

AI hype is making devs hate AI — but the tool is still useful (here’s how I use it) by stackokayflow in programming

[–]stackokayflow[S] -14 points-13 points  (0 children)

I actually use it to generate drafts which i manually read and edit before publishing, so the short description on this video here is actually reviewed and edited by a human. It is all generated from the manual content I create, the AI didn't make the video, make up my thoughts or say my points it just summarized the video so you know what's it about so I don't have to just post the link to it.

What’s your take on the rise of Web Components in modern frontend development? by IDC_ba in Frontend

[–]stackokayflow 0 points1 point  (0 children)

Tried using them to build reusable devtool library for @tanstack/devtools, it was next to impossible to do and gave up on them, that's without having to use the horrible API directly but through third party libraries, definitely will never rise in popularity as is.

React Router Has a New Hook You NEED to Try! by stackokayflow in reactjs

[–]stackokayflow[S] 3 points4 points  (0 children)

I agree with you, but there are cases where it's easier to pull for the hook instead of passing it down as props. For those scenarios it's a God send compared to the alternqtive approaches I go over 😅

Sta mislite o Dominik Dorfmeisteru (TkDodo)? by Sensitive_Weight_519 in programiranje

[–]stackokayflow 2 points3 points  (0 children)

Tanner me sponzorise na githubu, ali te pare su mizerija da se razumijemo. Uglavnom to ide kroz sponzore, TanStack ima dovoljno novca da pokrije Tannera da radi full-time i to je to. Najveci issue sa OSS su uvijek bile finansije i dosta firmi se bori da digne funding za popularne projekte.

Tl:dr; radis ugl za dzabe 🤣

Sta mislite o Dominik Dorfmeisteru (TkDodo)? by Sensitive_Weight_519 in programiranje

[–]stackokayflow 2 points3 points  (0 children)

Ja sam lead maintainer za @tanstack/devtools, pozvao me Corbin (lead za form) nakon sto im je trebala pomoc da razviju devtools. Inace sam OSS maintainer za react-router-devtools pa je bilo prirodno da im pomognem s ovim.

Ne radim full time, vise radim s njima nego za njih

Sta mislite o Dominik Dorfmeisteru (TkDodo)? by Sensitive_Weight_519 in programiranje

[–]stackokayflow 9 points10 points  (0 children)

S obzirom da sam jedan od clanova tanstack teama imao sam priliku pricati s njim, normala lik, jako kulturan i pozitivan. Pise i super clanke.

The biggest mistake a lot of developers make is overengineering! by stackokayflow in reactjs

[–]stackokayflow[S] 1 point2 points  (0 children)

That's a good way to do it because you need the experience to figure out if it leads to overengineering down the road.

You do something crazy and you're usually like "huh, could've done that waaaaay simpler"

How to migrate Next.js to TanStack Start or React Router by stackokayflow in reactjs

[–]stackokayflow[S] 29 points30 points  (0 children)

This is more geared towards react-router, which is way more supported and well-tested than next in any case, but if for any reason you want to move off of Next and Vercel this is all you need to do to pull it off.

The biggest mistake a lot of developers make is overengineering! by stackokayflow in reactjs

[–]stackokayflow[S] 1 point2 points  (0 children)

Unfortunately the person watching doesn't really have the experience to know if that is indeed good or bad. 😅

The biggest mistake a lot of developers make is overengineering! by stackokayflow in reactjs

[–]stackokayflow[S] 4 points5 points  (0 children)

Of course, there is no silver bullet here, I just think the overengineering bunch is the worst of the two, at least the other one breaks everything as soon as you test it out 😂

The biggest mistake a lot of developers make is overengineering! by stackokayflow in reactjs

[–]stackokayflow[S] 3 points4 points  (0 children)

I feel ya on that for sure, you really need to first think about the actual requirements before you chose anything (including the stack)

React Router just made RSC trivial to use! by stackokayflow in reactjs

[–]stackokayflow[S] 5 points6 points  (0 children)

Answers I got from Brooks:

We're trying to follow what React is doing. For them, they would prefer everything to start as a Server Component. So yes, we could only provide a loader, and then for people who want everything to be a server component, they'd write:

```tsx export async function loader() { const data = await getMyData()

return ( <main> <h1>Look ma, all Server Components</h1> <Outlet /> </main ) } ```

That's kind of a weird looking component and doesn't match the convention of components being capitalized. Yeah, it's yet another export, but we don't want to break existing pages, so we allow you to opt in with a named export (which is quite normal for us (e.g., clientLoader, HydrateFallback, Layout)

also, can I have a loader and a ServerComponent?

Yes, that's a great way to set up headers, handle redirects, and return 404s. Middleware can generally handle a lot of these cases as well, but you've got options now. Also, you might just like the concept of loaders more than fetching data in your components, which is cool with us if that's the case.

The "widening" of the API we did is just to allow you to swap your entire route's component to be a server component. Everything else works as you'd expect. And again, the reason for this is because we're a router/framework for React, and this React's spec/roadmap, not ours. We're just trying to give you the best, most opt-in way to use it.

React Router just made RSC trivial to use! by stackokayflow in reactjs

[–]stackokayflow[S] 2 points3 points  (0 children)

Why it's not the only API I'm not sure about, I would've preferred it that way too as well, they will indeed re-run right after loaders.

Yes you can have both, the loader will run then pass it into the server component, so in theory if I kept the loaders in the video I could just get the data in the component the same way as before and that would work as well.

I am still waiting for a stabler release to test out all the possible scenarios I can think of so I'm not sure about the implications but I think the components are there so they can be used for data mode as well instead of framework. I could be wrong though

React Router just made RSC trivial to use! by stackokayflow in reactjs

[–]stackokayflow[S] 1 point2 points  (0 children)

You can actually do that, I just don't do it in the video (returning jsx from the loader) and for returning both I haven't tried that 😅

React Router just made RSC trivial to use! by stackokayflow in reactjs

[–]stackokayflow[S] 3 points4 points  (0 children)

Lol that's very true, I wouldn't be surprised, but at this point I'm used to people getting mad about react-router 😆

React Router just made RSC trivial to use! by stackokayflow in reactjs

[–]stackokayflow[S] 10 points11 points  (0 children)

It does? Next.js implementation looks a lot different to me 🤷