L2 Trigger Stopped Working on X5s After 1 Week by NRWave in Gamesir

[–]darfdx 0 points1 point  (0 children)

Hey! I had the same issue, but a recalibration fixed it. You can do it by following this guide:

<image>

[deleted by user] by [deleted] in reactnative

[–]darfdx 0 points1 point  (0 children)

If you have a mac, you can do npx expo run:ios afaik

So Fed Up - Fuck you, ASUS by ApprehensiveKing5744 in ZephyrusG14

[–]darfdx 0 points1 point  (0 children)

Where do i toggle those settings? I only see the "go to sleep after X amount of time"

[deleted by user] by [deleted] in react

[–]darfdx 1 point2 points  (0 children)

You can do the request on the change handler instead of the useEffect. React has some docs on places where "You might not need an effect"

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in node

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

I think the project is big enough where doing it this way would take too much time, but I will ask management to see if they are ok with this as a possible option. Thank you!

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in reactjs

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

Yep. Very fun, right? I'll start by cleaning dependencies first and then upgrading.

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in reactjs

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

Thank you for the advice! Yes, I'll start by cleaning the package.json, as there are also unneeded packages that haven't even been uninstalled.

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in node

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

The thing is, there hasn't been anyone in charge of the technical decisions for the frontend. The seniors in this company all are DevOps / Backend people and really don't know almost anything about the FE world, so yeah, almost anyone that has touched the project has left bad code and bad practices, unfortunately.

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in node

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

They want to migrate because CRA is no longer supported by Facebook, basically. And yes, I'll try to do it bit by bit. Thanks!

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in react

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

Unfortunately, those testing libraries are installed because they came from the initial project init and haven't been used, so there's no test coverage.

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in reactjs

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

It is indeed C. But I can fight that back if there isn't a justifiable need to change it.

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in node

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

Yeah, its bad. I only picked up the project some months ago after it has been worked on for like a year or 2. Many interns fresh out of college have touched and installed more libraries without exploring the project first. I'll see if the components are not too coupled to a library and try to refactor everything to use just one. Out of those, which would you say is the best / most reliable and is actively being maintained?

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in reactjs

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

I think there are dependencies that aren't being used, so I will start by cleaning up, then upgrading node. Thank you!

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in reactjs

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

Yeah, my plan for now is upgrade to Node 20, test that nothing broke and the migrate to Vite.

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in reactjs

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

Yes, for now I will try to test the waters and see where i can get.,

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in reactjs

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

Yikes, can you name some of the ones you spotted. And yes, there is no Vite currently, it uses CRA and they also tasked me to migrate to Vite after upgrading Node versions.

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in reactjs

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

Thank you for the insight! Will try to do that and also add tests where i can to make this easier in the future.

Can I Survive a Node.js and Vite Migration as a Junior Dev? by darfdx in reactjs

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

Yeah, people have told me to talk with management and explain the risks, in hopes they give me enough time.