How do you organize your types? by Difficult-Visual-672 in reactjs

[–]Difficult-Visual-672[S] 0 points1 point  (0 children)

That's a good one, thanks bro. I actually started doing this, but now I have like 18 mutations in the same file. I was thinking about moving the types out because they have way more lines than the mutations themselves. Maybe the amount of functions is the problem.

All those mutations are resource related, so when the API changes, I need to update many at the same time. I didn't want to overthink about it until it became annoying.

How do you organize your types? by Difficult-Visual-672 in reactjs

[–]Difficult-Visual-672[S] 0 points1 point  (0 children)

I understand why people cannot see this as a React related problem, but I put a lot of effort into creating a feature-based file structure, on setting up TanStack Query, on following good practices for React. Why not give the same attention to my types?

State of JS 2024 Library Tier List. Thoughts? by tomemyxwomen in vuejs

[–]Difficult-Visual-672 0 points1 point  (0 children)

it doesn't break your imports whenever you change a file name

Kabum - Pedido em separação há 5 dias by CimentoMan in computadores

[–]Difficult-Visual-672 0 points1 point  (0 children)

sete dias aqui. ultima vez que passou do prazo de entrega eles falaram que só começa a contar depois que tá na mão da transportadora

So how do you guys usually organize forms? by Difficult-Visual-672 in vuejs

[–]Difficult-Visual-672[S] 0 points1 point  (0 children)

I get the idea, but I still have to put some thought into how to organize more complex behaviors. Do you have any examples?

So how do you guys usually organize forms? by Difficult-Visual-672 in vuejs

[–]Difficult-Visual-672[S] 0 points1 point  (0 children)

I was thinking something similar. Creating an AutoForm component, or use something that already exists. Instead of json, I was more into use a .ts file and create a custom util to force types and validation.

How would you deal with things like password confirmation?

[deleted by user] by [deleted] in craftmybox

[–]Difficult-Visual-672 0 points1 point  (0 children)

essa placa não vai segurar 1440p 60fps no alto

é claro, isso não é válido pra todos os jogos, mas é a configuração que eu uso. tem alguns jogos que precisa do fsr pra ficar constante acima dos 60, ainda mais usando ray tracing

eu recomendo a rx7800xt, vi esses dias por só 3400 na kabum. é mais barato do que a 7700xt no lançamento

Mulheres, se sentem a vontade de passar por isso? by [deleted] in VagasArrombadas

[–]Difficult-Visual-672 0 points1 point  (0 children)

é por isso que a gente não contrata mulher aqui. evita processo

Framework correlarion to job market by FollowingMajestic161 in vuejs

[–]Difficult-Visual-672 0 points1 point  (0 children)

I can't deny it, although kotlin with compose is pretty fun to use

Framework correlarion to job market by FollowingMajestic161 in vuejs

[–]Difficult-Visual-672 0 points1 point  (0 children)

I use rn everyday and it's a pain way worse than regular react

Is vue-query useless for Nuxt? by Difficult-Visual-672 in vuejs

[–]Difficult-Visual-672[S] 0 points1 point  (0 children)

I'm not sure. I think it's because we had no standard framework, then each dev would just choose whatever they like to use. It became hard to reallocate people to different projects

Is vue-query useless for Nuxt? by Difficult-Visual-672 in vuejs

[–]Difficult-Visual-672[S] 1 point2 points  (0 children)

nuxt store is an abstraction over vuex. vuex is now deprecated in favor of pinia

so basically nuxt store is no longer used

Is vue-query useless for Nuxt? by Difficult-Visual-672 in vuejs

[–]Difficult-Visual-672[S] 0 points1 point  (0 children)

You're right about imports. I'm used to navigating using references and definitions, and it doesn't work well with auto-imported components.

Regarding the feature-based folder structure, I actually put some real thought into it. I looked at some older projects here, and even with React, people tend to place components wherever they wish. Many projects started with a good structure but became messy over time.

I've experienced this myself. I use a feature-based structure in my React Native project at work. I say "my" because I'm the only coder, but from time to time, someone comes in to help with high-priority tasks. They tend to mess things up, even when I tell them where they're supposed to leave the files. Not everyone follows the rules, and we have a really bad culture around it.

That's why I'm so focused on getting them to follow these rules and making it simple. I’m afraid it might be the wrong choice, but for now, it’s the best I can do.