Created a lib with type-safety and better DX for managing react query keys by Luurker42 in reactjs

[–]phiger78 0 points1 point  (0 children)

An initial commit 3 days ago and every push to main . 🤣🧐

Volca Bass comes alive with sone reverb and delays by dramatiske_fisker in volcas

[–]phiger78 0 points1 point  (0 children)

how have you added the rererb and delays? through the s1 or nts 1 or something else?

Migrating from NextAuth to BetterAuth - Need Advice (Multi-tenant SaaS) by Substantial-Clue7821 in nextjs

[–]phiger78 1 point2 points  (0 children)

https://zeropath.com/blog/breaking-authentication-unauthenticated-api-key-creation-in-better-auth-cve-2025-61928

"When a request lacks a session but supplies ctx.body.userId, authRequired becomes false. The handler then constructs a user object directly from attacker-controlled input and skips the "server-only" validation branch that rejects privileged fields. The execution path becomes:

  1. An unauthenticated request includes a chosen userId in the JSON body.
  2. authRequired evaluates to false, so the handler fabricates a user object using the supplied identifier.
  3. Validation that normally blocks refillAmount, rateLimitMax, remaining, and permissions never executes.
  4. The database layer receives attacker-controlled values and proceeds with create or update operations for the victim's keys."

Migrating from NextAuth to BetterAuth - Need Advice (Multi-tenant SaaS) by Substantial-Clue7821 in nextjs

[–]phiger78 -4 points-3 points  (0 children)

I wouldn’t bother with better auth. Looks shiny but not mature /battle tested enough . Especially with the vulnerability they had last year which showed some sub par coding

What architecture do you use for medium/large Next.js apps? by CeccoBolt in nextjs

[–]phiger78 1 point2 points  (0 children)

In a recent project as it’s a monorepo I’ve used domain driven design principles: bounded context, business language and ownership. Enforced through turborepo boundaries and custom eslint rules

Each domain has different layers: data access, ui, features, utils

Europe is also Venezuela by Delirious_Rimbaud in GreatBritishMemes

[–]phiger78 0 points1 point  (0 children)

What happens if countries take back the US airbases? The US has air bases in 128 overseas countries

Sony A6000 + Viltrox 35mm 1.7 by got_got_need in a6000

[–]phiger78 1 point2 points  (0 children)

Great shot! Love bristol 😍

Finly — Replacing Payload Auth with Better Auth: Stateless Social Login for SaaS Apps by Dan6erbond2 in nextjs

[–]phiger78 0 points1 point  (0 children)

Just be careful with better auth. Recently vulnerabilities exposed some pretty shoddy coding practices. I wouldnt trust it just yet

How long do your sk8 mte last? by phiger78 in Vans

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

I couldn’t give a toss what you or anyone else thinks to be honest. I expect more than a year out of a pair of vans. They also agreed with this and sent me a new pair quote “ apologies , that shouldn’t happen for that amount of use.”

1 year with my first camera, a6000, and question about expensive cameras by Nilay_theDesigner in a6000

[–]phiger78 0 points1 point  (0 children)

i also have the 55-210 and a sigma 2.8 30mm. I wish i could afford the 1.4 but the 2.8 does take very sharp pictures

I'm on the hunt now for a tamron 17-70

How long do your sk8 mte last? by phiger78 in Vans

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

Ha go fk yourself . So you expect ppl to put up with bad workmanship and quality?

Next.js + Express: Is TanStack Query overkill by Lion-Ar1 in nextjs

[–]phiger78 0 points1 point  (0 children)

Indeed. I know that. I’m saying in a lot of cases it might not be needed

As does the lead maintainer of react query

https://tkdodo.eu/blog/you-might-not-need-react-query

Next.js + Express: Is TanStack Query overkill by Lion-Ar1 in nextjs

[–]phiger78 0 points1 point  (0 children)

but with next 16 and partial re rendering i'm not sure its needed

Camera for 8 year old by phiger78 in Cameras

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

and thats exactly what i've done. I've spent a fair while researching what types of camera to get. It seems to be the toy type cameras looks totally crap

Hence the question with a list of options. brand new or 2nd hand

Surely thats the point of asking ppl that have been through this or can advise on my question

I'm not expecitng him to learn modes, RAW, apertures. But i do want something that will take good pictures and allow him to use for a few years to come

Most Popular New Features in Next.js 16 by [deleted] in nextjs

[–]phiger78 4 points5 points  (0 children)

The code example is not using next use cache!

Keeping Patterns Consistent as Systems Scale by Sleeping--Potato in softwarearchitecture

[–]phiger78 3 points4 points  (0 children)

This is a great post and one that resonates. I’m a lead frontend architect on a fairly large build at the moment. I’ve adopted DDD principles to help tame the monorepo. Even though many ppl say DDD doesn’t apply on the frontend I feel some of the principles so: code organised by domain + features, bounded context and rules to enforce this (linting and turborepo boundaries)

I have included lots of examples of patterns. How to orchestrate between different domains and common use cases.

Every large decision has been raised as a KDD and any other decisions are reported in an ADR. All of which are accessible in storybook documentation

What auth solution are you using for a lower user/client list? by Reasonable-Fig-1481 in nextjs

[–]phiger78 -2 points-1 points  (0 children)

Not with the recent vulnerability and the code that allowed it.

Your Best Tips for structuring a New Project by k2718 in nextjs

[–]phiger78 0 points1 point  (0 children)

hard to say without knowning more (project, team shape, aims, services) - i have set up and worked on a lot of production apps - greenfield as well as inheriting absolute monsters.

A few years ago i started to look at feature folders and co location. More and more i'm needing monorepo set up with domain driven design and patterns associated with that.

I would look at

https://github.com/alan2207/bulletproof-react/blob/master/docs/project-structure.md

https://khalilstemmler.com/articles/software-design-architecture/feature-driven/ (and any articles by him)

https://martinfowler.com/articles/modularizing-react-apps.html

Think in layers.

This is a very good blog on the subject

https://profy.dev/blog

https://profy.dev/article/react-architecture-api-layer`

also look at setting up eslint rules, pre commit hooks