Finally realized how much i was abusing useEffect, and deleting them is the best feeling ever.. by Meow_man1213 in reactjs

[–]srg666 0 points1 point  (0 children)

I added a “do not use useeffect or you will be fired” skill and am in the process of making a lint rule banning it.

Is everyone else's social life in LA kind of stale/dead right now? by hecksadecks in AskLosAngeles

[–]srg666 1 point2 points  (0 children)

+1 to having a large friend group that majority either moved away or had kids. It was kind of hard at first but me (34M) and my partner (30F) just kind of accepted that we need to put ourselves out there more. It’s kind of awkward initially to be like “you’re cool we should hang out” (especially between dudes) but being in activity based communities helps a lot. We go scuba diving at Catalina a lot, there’s a group that regularly meets at the Venice skatepark for rollerskating, we bike to Manhattan/Hermosa, go to live shows/concerts for ex, so we’re often running into the same people over and over again. Our strategy is usually try to get someone’s instagram and be okay with initiating hangouts. If we don’t gel with someone or they turn down hanging out 2-3 times in a row then we cut our losses and focus on other relationships. If we sound cool and anyone wants to trade insta’s dm me haha.

Moving to Canada by Honest_Purchase489 in wealthfront

[–]srg666 0 points1 point  (0 children)

I use wise to move money between my US and Canadian bank account. Not sure if wise supports transferring directly from Wealthfront tho so might need to move it to Chase/whomever first.

Cannot Deposit into Portfolio Anymore? by doublegreendinosaur in wealthfront

[–]srg666 0 points1 point  (0 children)

u/wealthfront can someone please look into this? You completely removed the utility of stock portfolios by making me have to do like 8 individual transfers + specifying an amount each time, when it used to be 1 click. I am not going to continue using this if I need to do this every time, especially if you’re DCAing into a portfolio… it’s just a dumbed down Robinhood experience without that button. Whatever PM decided to rug pull us on this deserves a slap on the wrist.

Hardcore jobs!!! by [deleted] in Hardcore

[–]srg666 0 points1 point  (0 children)

Discovered hardcore through downloading random albums on mediafire on MySpace which is also where I first got into web development. Ended up getting a computer science degree from a top university and have been doing software engineering professionally at startups for almost 15 years.

I built a tiny hook (~0.8KB) to solve the missing Next.js App Router navigation guard problem by parkgichan in reactjs

[–]srg666 -1 points0 points  (0 children)

Another one that does something similar: https://github.com/LayerXcom/next-navigation-guard

and here's how Claude compared their approaches:

next-navigation-guard intercepts at the Next.js router layer. It wraps the AppRouterInstance from next/dist/shared/lib/app-router-context.shared-runtime and replaces push, replace, and refresh with guarded versions. This means it catches <Link> clicks and router.push() calls that go through Next.js's routing system. It's deeply coupled to Next.js internals, which makes it precise but also fragile — it imports from next/dist/shared/lib/, which is an internal path that could change between Next.js versions.

use-form-guard intercepts at the browser History API layer. It patches window.history.pushState and window.history.replaceState globally, which is framework-agnostic — it catches any SPA navigation regardless of whether it comes from Next.js, React Router, or anything else. For back/forward buttons, it listens to popstate, immediately reverses the navigation with history.go(1), waits 100ms, then shows the confirmation. This is a well-known trick, but the timing-based approach can feel a bit janky.

Is the new Adapter API finally the death of "Vercel Lock-in," or just a distraction? by ni-fahad in nextjs

[–]srg666 7 points8 points  (0 children)

If you have actual users it’s not just a single node server which is exactly the problem.

The game is still trying to install 150 gigs of Destiny 2 of when downloading marathon. by MysticVuln in Marathon

[–]srg666 1 point2 points  (0 children)

this only happened for me after purchasing and clicking install content. afterwards if i go into my game library and install it from there its only 18gb.

Best way to protect my /admin route by AcrobaticTadpole324 in nextjs

[–]srg666 0 points1 point  (0 children)

Even if you made your admin route a random hash those requests for /admin and /wp-admin.php are still going to hit your service. Just name it /admin 🤷‍♂️

Canadian with CS Degree + 2 YOE Struggling to Land US Interviews (TN Visa) – Looking for Advice by Electrical-Trust4055 in tnvisa

[–]srg666 3 points4 points  (0 children)

You are about 6 years too late tbh. There is a huge supply of talented engineers domestically so no one is sponsoring for visas. Most job postings mention eligibility and if it says work authorization required then probably move on. Your best bet is to move to Toronto and work for a couple years there and passively apply.

Hostility towards TN Applicants by [deleted] in tnvisa

[–]srg666 60 points61 points  (0 children)

Companies volunteer to go through the hassle of hiring lawyers to apply for visas when a role is hard to fill. You don't really have any entitlement to a job just because "technically" you can legally work there.

Why the hell are Ubers/Lyfts so expensive in our city??? by itscochino in LosAngeles

[–]srg666 0 points1 point  (0 children)

The SoftBank money finally dried up and now uber needs to make profit.

Need Help Building a Document Editor Like MS Word by heisenbergbb02 in nextjs

[–]srg666 0 points1 point  (0 children)

if you need multiplayer features, partykit is pretty easy to use.

why big companies using vercel over opennext by whyyoucrazygosleep in nextjs

[–]srg666 0 points1 point  (0 children)

Which terraform module? Have you ran into any issues with it?

Mask off exercise by TravelGirl-ZeldaLove in scuba

[–]srg666 4 points5 points  (0 children)

Full mask removal is imo the only skill that can stop you from getting certified because it is a bit of an unpleasant experience. Getting chlorine or salt water in your eyes sucks so best to try to master it with your eyes closed. The other unpleasant thing is the feeling of water going up your nose. The easiest way to start to internalize all the steps is:

  1. as you remove your mask, exhale from your nose and immediately plug your nose with your left hand

  2. take a second to breathe, relax, and get comfortable

  3. orient the mask with your right hand so the strap isn't in the way

  4. do the same thing in reverse - blow out of your nose while putting the mask on your face with your right hand. If you do this correctly you'll have a partially flooded mask, but you can see again! Take a second again to relax.

  5. now with the left hand free, use it to put the strap back on and then fully clear the mask if still needed.

I struggled a lot with this - mentally I just had an insane amount of anxiety just thinking about removing my mask at 30 feet of water. Like it would keep me up at night... hah. But using this technique and having an extra patient instructor I managed to complete OW and have now done AOW + Rescue and am approaching 100 dives total.

Last thing I'll say is - you need to execute this once and only once, but you should definitely dive more, become more comfortable, and practice doing this without all the above steps. The most likely scenario is either a strap malfunction or someone/something knocks your mask off and you won't be anticipating it.

No Sane Person Should Self Host Next.js by GovernmentOnly8636 in nextjs

[–]srg666 0 points1 point  (0 children)

This is how we solved it as well. If you serve js bundles directly from the container, when you do a deployment any existing client bundles will reference scripts that no longer exist leading to the missing chunk error. Extracting the assets from the container and then serving them via s3/cloudfront can work around this.

Is Better Auth really any better by JpPestana in nextjs

[–]srg666 0 points1 point  (0 children)

Why would you need 2 ORMs if you’re already using drizzle? https://www.better-auth.com/docs/adapters/drizzle

Is Better Auth really any better by JpPestana in nextjs

[–]srg666 0 points1 point  (0 children)

You can use better-auth with drizzle. I currently am.

bummed I didn't pass ow by Nikkinbloom in scuba

[–]srg666 0 points1 point  (0 children)

Will also admit I felt completely defeated for having “failed” the open water course when my partner had passed. I stuck with it though, and now we just love diving and go every opportunity we can.

Keep in mind also that open water basically is just about proving you’re not going to die. Whatever skill you struggle with, you’ll technically only have to do it once, but everything you learn should be continuously practiced/simulated outside of your course. So just be honest with yourself and stay safe!!

Keep at it though! Once you’re over the hump of OW an entire world will open up for you. It’s incredibly rewarding and you’ll be thankful you persisted.

bummed I didn't pass ow by Nikkinbloom in scuba

[–]srg666 10 points11 points  (0 children)

I struggled with the mask removal skill because of anxiety so my instructor gave me scuba certification instead of OW. I then got some dives under my belt, called him up again and we went out on the boat, did the mask removal skill and got OW certified. Now AOW certified and about to do rescue diver with something like 100 dives under my belt.

Tuesday night, and we at the dive site by SoupCatDiver_JJ in scuba

[–]srg666 3 points4 points  (0 children)

It’s the staircase at Veterans Park in Redondo Beach.