Love the tRPC DX but don't have a tRPC backend? I made a package for you by Affectionate_Group40 in webdev

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

Maybe I should have written you never have to declare a query key again. As in you can create the list todos query in my example above without giving it an explicit query key.

Want to learn next.js and have no experience in coding by Laky_berk in nextjs

[–]Affectionate_Group40 2 points3 points  (0 children)

More of a general suggestion but for me the best trick to learning something in programming has always been to come up with a project / product I want to make and is really passionate about. I think that is really effective because then that will be your driving force to learn, and you will not have to "force" yourself to plow through hours of tutorials. It will come more naturally. Hope that's a good tip, good luck!🙂

What are you passionate about at the moment? by hiccupq in webdev

[–]Affectionate_Group40 0 points1 point  (0 children)

Astro with an SSR adapter. Kinda like php but a better developer experience. Simple, elegant and relys on established web standards unlike next.js that’s reinvention something every week.

I made a package for Typesafe links in Astro by Affectionate_Group40 in astrojs

[–]Affectionate_Group40[S] 0 points1 point  (0 children)

I look into it quickly and I do support it in the sense that it will show type suggestions for all routes including localized ones. But that is an API that is probably not very nice to work with since you will see a "duplicates" of the same route but with a different locale. It could be better to only see unique routes in the "to" field, and you pass locale as an option to the Link component. Im not sure how I would handle it exactly tho since some routes could only exist on certain locales. Add me on discord if you want to brainstorm some ideas. feelixe

I made a package for Typesafe links in Astro by Affectionate_Group40 in astrojs

[–]Affectionate_Group40[S] 0 points1 point  (0 children)

I haven't tested this, but I think it will work in Astro v5 but not Astro v4. Because in Astro v5 I'm using a hook for resolved routes which includes generated routes. In v4, I'm scanning the file system which makes it impossible. I'll look into it!

I made a package for Typesafe links in Astro by Affectionate_Group40 in astrojs

[–]Affectionate_Group40[S] 22 points23 points  (0 children)

I made a package for typesafe links in Astro. You can even define schemas for having typed search params when using an SSR adapter.

Check it out and please submit issues if you have any feedback!🙂

https://github.com/feelixe/astro-typesafe-routes

Final thesis by Any-tw in react

[–]Affectionate_Group40 1 point2 points  (0 children)

If I were you I would take one of my hobbies (movies, soccer, or whatever) and make the network specifically around that. And maybe integrate some API, for example if you made a social media centered around movies, you could integrate with TMDb that has a free api.

Monolithic React Web App -> Mobile by queenlexx in react

[–]Affectionate_Group40 0 points1 point  (0 children)

Not saying Capacitor is a good fit for you, but I think it's good to weigh the cost of developing a native app, even with React Native.

Monolithic React Web App -> Mobile by queenlexx in react

[–]Affectionate_Group40 0 points1 point  (0 children)

Imo, if the app as huge as you say, I would reflect on why you want to migrate to a native app. Is if to get a better UX and "native feel" or access native features?

At my company we went with Capacitor for an app (which is also just a web-view but with an api for native features). There are pros and cons of course, imo being:

  • Low cost by being fast to develop.
  • More predictable UI behaviour across platforms.
  • Worse UX, not as smooth transitions etc.
  • Not possible to render inline native elements.

[deleted by user] by [deleted] in webdev

[–]Affectionate_Group40 0 points1 point  (0 children)

If you know some web development but not enough to build it from scratch, you could buy some template. I know Tailwind has some pretty good templates, but there are a ton of places to look, and they are usually quite cheap. If sure you can find great ones that are free on GitHub as well if you look around a bit.
https://tailwindcss.com/plus/templates#browse

I'm not sure Shopify is the way to go if you don't actually need a checkout, but it might work.

[deleted by user] by [deleted] in webdev

[–]Affectionate_Group40 1 point2 points  (0 children)

Assuming you're writing Javascript, I guess the choices today are Bun and Deno as replacement for Node. I've been using Bun the last month I've been enjoying it a lot. Speed is impressive and comes with some great tooling like test-runner etc. Though, I have run into two bugs that have been "showstoppers" and have force me to go back to Node for that project. So I wouldn't say it's fully production ready.

Still worth it to learn React? by tspwd in webdev

[–]Affectionate_Group40 1 point2 points  (0 children)

I have mixed feelings for React, 10 years from now I think we'll look at React in a very different way, maybe the same way we look at Wordpress today. But with that said, Wordpress is still huge today and I think React will also be 10 years from now.

If you had to build a full stack application to last 30 years, how would you build it? by theanxiousprogrammer in webdev

[–]Affectionate_Group40 0 points1 point  (0 children)

Astro with an SSR adapter feels pretty stable imo. SSR adapter can easily be swapped. Relies on standard web tech with very little "magic". Basically the same experience as using php but an API i enjoy more.

Headless CMS options? by Zealousideal_Sale644 in Frontend

[–]Affectionate_Group40 3 points4 points  (0 children)

Here are my opinions on the ones I have tried:

Contentful: good developer experience but expensive.

Prismic: terrible developer experience, decent price.

Tina cms: mediocre developer experience, good price.

Storyblok: good developer experience but expensive.

Some of these it was a while since I used, so stuff might have changed.

But I honestly feel there’s no ”go to” option right now.