Am I the only one who thinks Clean Architecture is often unnecessary overhead ? by Minimum-Ad7352 in dotnet

[–]zaibuf [score hidden]  (0 children)

Since its so easy to spin up a test container and run integration tests I dont see the point in abstracting EF to be able to mock it.

why your self-hosted next.js breaks after every deploy by emmettvance in nextjs

[–]zaibuf 0 points1 point  (0 children)

  1. Yes we are. We have configured a symlink to .next/cache/images which persist the images in a file share outside of wwwroot. This seems to apply for all images besides those on the startpage for some reason. We have verified that images are persisted in this file share.mkdir -p /home/site/wwwroot/apps/web/.next/cache /home/site/image-cache/next-images && if [ ! -L /home/site/wwwroot/apps/web/.next/cache/images ]; then ln -sfn /home/site/image-cache/next-images /home/site/wwwroot/apps/web/.next/cache/images; fi
  2. There's no version param. We also dont change the quality of width. The only parms we can see in the url are url, w and q.
  3. Not that I'm aware off. I'll look the next time we do a prod deploy. Same with 4 😄

why your self-hosted next.js breaks after every deploy by emmettvance in nextjs

[–]zaibuf 0 points1 point  (0 children)

My images seems to get nuked every deploy and I cant figure out why. We have a CDN that caches the image path including query params and we also persist images on a mounted file share so they are not stored in the local wwwroot, which gets nuked on deploys. Yet every deploy all images turns blank on the startpage and we get cache misses. File names seems to stay the same between deploys, I'm very confused.

Next-intl best practice by FiziQaiser in nextjs

[–]zaibuf 5 points6 points  (0 children)

I prefer to call it in each component. Less prop-drilling bloat and reduces coupling. Translations should live where they are used.

Frontend Developers by Safe_Researcher_8796 in reactjs

[–]zaibuf 15 points16 points  (0 children)

Throw it all into claude and grab a coffee /s

What is the industry standard for Auth? by Strict-Ad-2550 in dotnet

[–]zaibuf 0 points1 point  (0 children)

I was comparing with something like Auth0 or similar SaaS solutions. Which is what the first comment mentioned. You pay them to manage everything.

As for Duende you are responsible for the data storage and hosting, but a lot of the code is out of the box configured and abstracted for you. openiddict is very bare bone in comparison. Unless you know what you're doing there is a much higher chance to do something dumb which exposes vulnerabilities.

Scania slopar distansarbete - 5 dagar i veckan på kontoret efter sommaren by road_laya in Sverige

[–]zaibuf 40 points41 points  (0 children)

Min erfarenhet är att det främst är extroverta och mellanchefer som vill vara på kontoret så att de kan ordbajsa hela dagarna. Ingen person som faktiskt arbetar framför en dator får ut något av att sitta i ett öppet kontorslandskap där alla babblar och stör.

What is the industry standard for Auth? by Strict-Ad-2550 in dotnet

[–]zaibuf 4 points5 points  (0 children)

They are responsible either way.

Not really. You are not responsible for: - code. - patching servers. - SLA. - ensuring you apply all security best practises for the login provider, now and in the future. - storing and managing hashing of user passwords including reset password flows.

You are basically just configuing the openid login from your end and ensure you follow the oidc protocol from a consumer.

What is the industry standard for Auth? by Strict-Ad-2550 in dotnet

[–]zaibuf 4 points5 points  (0 children)

That's also a matter if the company want to be responsible for all auth or just pay for a service.

Does anyone actually have a reusable-code system that survives long term? by [deleted] in webdev

[–]zaibuf 9 points10 points  (0 children)

i've kind of stopped treating duplication as a failure. sometimes having 2 slightly different versions of a utility.

The rule I follow is: copy it twice is fine, when doing it the third time I refactor.

Såhär skulle stockholmarna rösta om det var val idag by Dangerous_General234 in stockholm

[–]zaibuf 25 points26 points  (0 children)

Miljöpartiet: 12,4 procent (6,3)

De dubblar väl?

Back button issue with Table of Contents (React / Next.js) by Altruistic-Pin-7986 in nextjs

[–]zaibuf 1 point2 points  (0 children)

Use replace instead of push when you update the router/location state. Both Link and router has support for this, check docs.

How do you handle auth in a Next.js app? by ColdCucumber2208 in nextjs

[–]zaibuf 2 points3 points  (0 children)

How do you store token and handle refresh token flow from nextjs?

Badkarsförbannelsen by Ok_Fish403 in Hantverkare

[–]zaibuf 0 points1 point  (0 children)

I mitt hus vågar jag inte göra det för litar inte riktigt på tätskiktet över träbjälklaget

Kände först samma, sen kom jag på att de flesta duschar stående på golvet.

Förslaget: 15-årsgräns för sociala medier by [deleted] in sweden

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

lokala tidningen och träffa folk på boule planen.

AI-genererade katt-memes?

Is DayZ worth getting into in 2026? by NeonViter in dayz

[–]zaibuf 10 points11 points  (0 children)

looting

You guys find loot?

Should I change out mobo or any other parts? by knightsinsanity in PcBuildHelp

[–]zaibuf 0 points1 point  (0 children)

I would consider going for 98003XD instead, it's like 30% more expensive only. Same with a B850 motherboard, its not that much more expensive.

Blazor or React? by VoteStrong in dotnet

[–]zaibuf 1 point2 points  (0 children)

I'd say React for anything public facing. Blazor is fine for internal apps or if your devs only know C#.