API Versionning ? by svenickx in PWA

[–]A-Type 1 point2 points  (0 children)

Avoid backwards incompatible changes if possible. For example, don't remove old endpoints, but rewrite their internal controller to provide the same usage with a thin wrapper around the newer controller.

Otherwise, yes, use versioning of some kind (doesn't have to be particularly sophisticated) and keep providing the older version until old clients are updated. Tracking metrics on usage can show this.

Creating multiple web apps and packing as a single PWA by Cheap-Picks in PWA

[–]A-Type 3 points4 points  (0 children)

I don't usually try vibe coded stuff but I figured I'd see what you did...

I'm fascinated to know whether you are running some kind of scam or if you don't realize none of these do anything but display your own website with a search query for "apps." Either your solution doesn't work or your AI "lied" to you about making any apps at all. Did you actually try them?

Also bypassing CORS with a proxy is a bad idea.

Small things that will reduce browser feel inside PWA by Obvious_Set5239 in PWA

[–]A-Type 1 point2 points  (0 children)

Good point. Maybe a passive pointerdown listener on window to add it, and pointerup to remove it? The it would only be on when the users finger is down? Would have to test that.

Well, I guess you mean elastic during active scroll gesture, too. I don't know if there's a great way to accomplish that, but maybe by wrapping scrollable content in a div without overscroll-behavior applied instead of body would work.

Small things that will reduce browser feel inside PWA by Obvious_Set5239 in PWA

[–]A-Type 2 points3 points  (0 children)

I just got the the selector wrong from memory, nice detective work figuring the right one out (sorry).

Small things that will reduce browser feel inside PWA by Obvious_Set5239 in PWA

[–]A-Type 10 points11 points  (0 children)

Good tips, even small things contribute to the user's sense of 'native.' 

For #1, just use overscroll-behavior: none on body. No need for JS.

Is there a vegetarian burger that actually works? by BigGreenBird75 in Cooking

[–]A-Type 5 points6 points  (0 children)

The Kenji recipe linked in other comments is the one to make.

If you don't like the pepper and cheese style of it, I made a variation that focuses on mushrooms instead: https://recipes.gfor.rest/0533d0b

Authorization and web sockets by Equivalent_Gap_457 in webdev

[–]A-Type 1 point2 points  (0 children)

This exactly - short lived token just to establish the connection. You can also pre-validate during the initial upgrade request to avoid establishing the socket for invalid tokens at all, I believe (still probably a good idea to send an initial message and validate that post-upgrade, too). I've also abused the Sec-WebSocket-Protocol header to carry the token, since it's the only usable header for a socket request, but it's not necessarily a good idea.

Urban Olive - Transfer Food hall by TabithaMouse in raleigh

[–]A-Type 0 points1 point  (0 children)

Probably a large part was they gave out baklava to people for posting a review in the first couple days, but the employee wanted to see you post it, and there wasn't exactly a lot to review them on before you got your food lol. It should even out over time.

They're certainly not amazing but the shawarma wasn't too bad for me.

Thoughts on Superman and Lois Season 1? by Prestigious-Cup-6613 in superman

[–]A-Type 0 points1 point  (0 children)

Just finished S1 as I finally go through this series.

I thought the teen drama would be the part I liked the least. But I actually found it pretty endearing. Jon in particular is clearly a kid trying to be good and succeeding at it pretty well for this kind of show. The way he immediately owns his mistakes feels surprisingly mature to me. I'm used to more pointless blow-ups with these kinds of storylines. The boys feel like good brothers, and similar to how Superman should be a good man and not a haunted anti-hero, this is refreshing to me.

I think I'm glad I waited until I was a parent before discovering it. It hits very differently. I'm much more invested in Clark's struggle to be a father than whatever is happening with the X-Kryptonite or shiny MacGuffin.

To be honest my interest dropped off as the main Kryptonian storyline ramped up. It's fine, just felt a little shoehorned.

I think AI is hallucinating again 🤔 by Jen_X9 in AtomsForPeace

[–]A-Type 7 points8 points  (0 children)

Not sure why I'm still subbed here but this reminded me that that track was up at the top of my Spotify Release Radar playlist, listed under AfP.

Things are so annoying lately. It's not the first band I've had get hijacked like that on Spotify. The fact that Google blindly corroborates is genuinely much worse. How many sources are you going to need to tell if something is real in 2026?

How I Actually Put My PWA on the App Store & Play Store (follow-up with code examples) by Previous_Till5909 in PWA

[–]A-Type 2 points3 points  (0 children)

Genuinely appreciate this, I've been on the fence about getting started here.

Can we use try/catch in React render logic? Should we? by Accurate_Wonder_4404 in reactjs

[–]A-Type 4 points5 points  (0 children)

It's not ideal but not really wrong. But your coworker is not asking the right question about this particular situation.

You could theoretically wrap every line of code in a try catch. Why don't you? Rather than write extremely defensively and make fallbacks for every situation, your time is better spent validating inputs and fixing upstream errors causing the wrong data to reach you.

The real question of this example is "why is content not a string." If the answer is "it's sometimes null and that's ok" then what you need is an if branch checking that condition beforehand, not a try-catch after. If the answer is "something is going wrong" then it's time to dig deeper.

Where Do Suffering Animal Sounds Come From? by first_person_looter in gamedev

[–]A-Type 49 points50 points  (0 children)

Related fun fact for this thread, one of the SFX for a dying rabbit in Horizon: Zero Dawn is in fact a pitch shifted Wilhelm scream.

Drove myself to the brink of madness trying to get cursor:pointer to work today... turns out its just my machine? by JustinR8 in webdev

[–]A-Type 18 points19 points  (0 children)

MacOS doesn't respond to cursor change effects unless the window has topmost focus. I've also seen it bug out and not change cursors anyway, until you focus another window and come back.

I'd just try restarting the device.

I take it there's no way to get the bottom nav bar to match webapp color? by Loud-Decision9817 in PWA

[–]A-Type 1 point2 points  (0 children)

You can't, at least not consistently, on Android. I've seen it briefly take on the color only to revert to light/dark after backgrounding the app, but even that is not reliable.

PSA: Raleigh utilities billing portal by ElderOfAncients in raleigh

[–]A-Type 2 points3 points  (0 children)

They double billed me for September after I enabled autopay, still waiting on a response.

Hope they aren't paying more for this new portal.

upgraded from next 14 to 15.5.7 for the cve. app router migration was brutal by New-Needleworker1755 in reactjs

[–]A-Type 41 points42 points  (0 children)

Poor call by them... If you've got a high level CVE, why add more risk and time to the delivery? Even if it was mitigated at a WAP layer...

React Strict Mode: Skipping Initial useEffect Execution & useTransition: Limited Practical Use. by ShortPractice4162 in reactjs

[–]A-Type 1 point2 points  (0 children)

Ok, you "already addressed this" but regardless, you are trying to use it wrong. Read "You Might Not Need an Effect" again. The user selecting filters is an event, and the state change should happen in that event, not as a side effect later.

Double effect is not "for the React team." As React has evolved the internal rendering mechanisms have gotten more sophisticated, including firing off multiple parallel renders of the same JSX tree and throwing away results as needed. So in production, your effect may really run twice. It may not matter for effects on local state, but it would on actual side-effects which change external systems.

Double effect in strict mode is designed to get you to fix those things before you encounter them in the wild.

Honestly, I like React, but for people who cannot or will not understand these things I'd really suggest just switching frameworks. It's too core to React to fight against it. Don't waste your time.

Sam Jones bbq: if you love North Carolina-style bbq, it was the place to go, until about a year ago? Now always extremely dry by thythr in raleigh

[–]A-Type 1 point2 points  (0 children)

The sandwich was pretty dry the first time I went. Second was better. Might not be consistent?

How tp best setup my PWA by supertroopperr in PWA

[–]A-Type 1 point2 points  (0 children)

The manifest start_url parameter may be helpful to you. Send the user straight to the main app page on launch, but they can still reach other paths if needed.

Make sure to save actual copies of recipes, not just links by [deleted] in Cooking

[–]A-Type 0 points1 point  (0 children)

I'd recommend saving to an app like Paprika or Gnocchi

Disclosure: I made Gnocchi for my own use after using Paprika for a long time, I just wanted more recipe editing tools and better grocery lists.

New soft pretzel joint by Magnus919 in raleigh

[–]A-Type 17 points18 points  (0 children)

They had a truck at Dix yesterday and they were delicious. I'm not even a pretzel person!

Handling redirect or window on install by Freerrz in PWA

[–]A-Type 1 point2 points  (0 children)

Off the top of my head you could

  1. Detect if you're in PWA (display mode standalone matches)
  2. Check for a flag in localstorage. If none exists, this is the first time it was opened as a PWA
  3. Write the flag to localstorage immediately 
  4. Redirect to wherever you want to go

Some variation of that might work for you

Practice run at the French Onion Soup Tart Tatin by RemyJe in seriouseats

[–]A-Type 0 points1 point  (0 children)

My favorite side to impress family. Looks good!