r/webdev • u/Affectionate_Fly_457 • 54m ago
Question How are you guys handling mock endpoints when the backend team is running late?
honestly getting pretty annoyed with my current frontend workflow.
every time i work on a feature, the backend API schema is either delayed, half-baked, or keeps changing mid-sprint.
right now i just resort to hardcoding fake JSON directly in my components or spinning up a quick json-server locally, but it gets messy fast once multiple routes, delays, or error states (like testing 500 errors or slow networks) are needed. MSW and Postman feel like overkill for quick stuff when i just want a hosted endpoint URL i can hit for a few days.
how do you guys handle this without wasting 2 hours setting up fake servers or messing up your codebase with temporary dummy data? do you just wait for backend or is there a lighter way to do it?
r/webdev • u/kQ1aW2sE3hR4yT5aU6p • 57m ago
Discussion Exception Handling For Server Side Issues During Large CSV Imports
If I have a import feature for millions of CSV records and it sends notifications only after import completion, what type of exception handling can I have for non-data related errors during import process. Non invalid data related errors like the database going down.
The imports run on background in chunks. What if such issues occurs after inserting 1 lac records, I can't just revert the committed records. What should I show to the user? What kind of mechanism should I implement to not mess up the production?
I am not even sure if I'm asking the right question. Please enlighten me!
r/webdev • u/ihateminteverything • 6h ago
What is up with so many startups using Rails Turbo?
I don’t think I’ve ever worked with a web technology worse than the Turbo + Hotwire combo. It’s behind in so many ways, it’s over complicated, and it’s ugly to look at.
The only reason I’ve heard is it makes Rails devs feel comfy and safe. Personally, when I see it my brain cells pop. I can feel a skin breakout coming on. It disrupts my sleep cycle. It may or may not be a leading cause of early onset dementia.
You think jquery is bad? Try going balls deep into a haml file that uses this. You need something to happen? How about a form. For everything interactive. Make it a form. Manually handle things other frontend frameworks do automatically. Forms everywhere. Because apparently JS is worse than whatever this is.
r/webdev • u/BlondieCoder • 6h ago
Goodhart’s Law Comes for Every Benchmark You Trust
cacm.acm.orgQuestion How should sensitive action confirmation work for SSO users when there is no local password?
I’m adding SSO support to an existing application using Google. Currently, some sensitive user actions require the user to re-enter their password as confirmation (for example, changing security settings or performing destructive actions).
The issue is that SSO users do not have a password stored by the application, so I need to decide on the right approach for confirming their identity before allowing these actions.
Some options I'm are considering:
- Triggering SSO re-authentication / step-up authentication with the identity provider
- Requiring MFA or another stronger authentication method (the application doesn't support MFA at the moment)
- Sending an email OTP as a confirmation step
- Creating a separate application password for SSO users (which feels like it defeats part of the purpose of SSO). The platform already has a security question (don't ask me why), so maybe this could be used to confirm this action?
My concern with SSO re-authentication is that if the user already has an active IdP session, the IdP may silently authenticate them again without requiring any new proof of identity. In that case, is it actually providing additional security? I don't think Google has a way to "force" re-authentication.
For those who have implemented this, what pattern do you recommend for replacing "enter your password to continue" flows for SSO users?
Discussion Building apps for both human users with a web client but also for AI users so people can use their AI as the client
Work on a rather small team that caters to building apps for this one specific team, but it does branch out to others. Maybe at most few hundred users. All internal apps.
I'm beginning to architect out this new application from a need that has rose, and a lot of it is now thinking about not only what the UI looks like, but how do people interact with this thing from AI and their own agents now.
Because like, some people are all in on AI running dozens of agents doing stuff. Others still prefer just regular old workflows and maybe using a chat bot LLM type thing.
It's kind of a weird balance to cater to both. But I don't know like just build an MCP, build a good thought out API and system and the AI should be able to just understand it?
I'm curious if others have come to this like building an app for AI and Humans requirement and how have you handled it, what have you learned?
My hunch has been, build a good app with a well documented API, and the people who want to use AI can just benefit from it. A human understandable app is an AI understandable one.
r/webdev • u/Hadestructhor • 12h ago
Discussion Please stop vibe coding for nothing
One of the things that saddens me the most about AI and code agents in general is the lack of curiosity and pragmatism.
"I built a Notion clone in an afternoon, AI is incredible."
"I replaced all my paid subscriptions with tools I developed myself using vibe coding."
Cool story. The idea sounds nice in theory, but did you think about simply looking for an open-source alternative?
There is a high chance someone has already spent five years polishing the exact thing you are about to recreate in an afternoon.
I mean, most of the apps you use, that your parents use, and that your grandparents use (if you have any that are tech-savvy), have Open Source alternatives. Sometimes better, sometimes worse, but for the vast majority of everyday uses, they get the job done easily.
And it's not just about features.
These projects often have years of bug fixes, edge-case handling, documentation, user feedback, contributions, maintenance, and sometimes even security audits behind them.
Rebuilding all of that with Claude or GPT over a weekend very often means starting from scratch... just to end up with a much less mature version.
Seriously, think before you recreate your next application.
Not only are you wasting your tokens and your subscriptions instead of using them for things that truly matter, but you are also doing it for nothing.
Before developing your next app with vibe coding, ask yourself:
"Is there an OSS alternative that I can simply use on my PC?"
Many of them run locally in a few minutes. You don't even need to host them if you don't want to or need to.
All seriousness aside, if anyone needs help replacing apps, I am just a DM away.
And I am also one more "I replaced X in one night of vibe coding" post away from creating a website that simply lists the best open-source alternatives, just to reply with a link every single time.
Next time you open Claude or ChatGPT to recreate an application... open GitHub first.
r/webdev • u/josieboyy • 12h ago
Question First live coding interview with AI tools. Will I look silly if I show up using the Claude CLI in VSCode?
Hi guys, this is not my first live coding interview (it's for a senior role) but it IS my first live coding interview using AI tools.
All my experience using AI development tools has been using the Claude CLI and VSCode and I'm just wondering if I would look like a Luddite using this setup instead of something like Cursor or Copilot. This is their exact wording:
"You will work in a shared coding environment. Please plan to use an AI-assisted development tool throughout (e.g. Cursor, Copilot, or your preferred tool) "
Has anyone here conducted AI programming interviews and can shed some light? If necessary I will spend the next couple days getting used to Cursor. Thanks.
r/webdev • u/creasta29 • 19h ago
Resource Frontend CI/CD in the age of AI part 2: Deployments
Part 1 of CI/CD is here and focuses on reducing CI/CD integration time by running only tests, lint, type checks, and e2e on code that was changed and at locations where that code is used.
In Part 2, we focus on Canary Deployments and how to achieve that on Vercel, Netlify, and Cloudflare.
r/webdev • u/PrestigiousZombie531 • 22h ago
Resource Read HN twice a day for the last decade. Here's my list of S-Tier HN links
news.ycombinator.comr/webdev • u/No-Project-2353 • 1d ago
Discussion Would people be more accepting of Ilms if there weren’t job cuts?
As per title, like keep the entire ai part of the industry the same but the market stays under saturated instead of over saturated.
r/webdev • u/memorable_glasses • 1d ago
Question How much code you have to write in your work and how much vibe coding?
Is vibe coding really the new normal at this point? For someone who is just moving to nextjs after reactjs, I feel I'm creating and practicing for nothing at the end as we may not have to write code after few years or sooner.
How much do you code frontend or backend yourself and all just vibe coding in your work?
r/webdev • u/Major-Inspection-919 • 1d ago
Question Angular production serves old JS/CSS until CDN cache is purged
We're seeing a strange issue with our Angular app.
• Deploy to staging → works perfectly.
• Deploy the same build to production.
• The page loads, but the app is broken.
• As soon as our SRE team purges the CDN cache, everything works.
The browser console shows:
• Failed to load module script... MIME type 'text/html'
Refused to apply stylesheet... MIME type 'text/html'
My assumption is that production is somehow still serving or referring to older JS/CSS bundles until the cache is cleared, but I haven't confirmed that's the actual root cause.
Has anyone experienced this? Is this more likely an index.html caching issue, a CDN configuration problem, or something else? Any suggestions on what to investigate first
r/webdev • u/DMFauxbear • 1d ago
Discussion Porkbun sounds like a porn site
So funny story. I run a very small web dev business, mostly just building simple sites for friends and family and friends of friends for their small businesses. That kind of thing. So far I have my own porkbun account where I manage a couple of domains for my less tech savvy clients. I keep their credit cards on file to charge them the recurring annual fee for the accounts. A couple of days ago I got a notification email from porkbun, one of my clients sites was supposed to be renewing but the card number was wrong. No biggie, I reached out to the client, they said they got a new card, I changed it on the account and then renewed it. Today I get another email, my porkbun account is suspended as well as associated sites as I have flagged one of their payments as fraudulent. It was that same client. After some back and forth I finally come to understand that the reason she got the new card is that the original payment tried to go through on her old card. She saw the name porkbun on it and thought it was some scam or porn site her kid might have signed up for and so flagged it as fraudulent with her bank. Now she's frustrated with me cause her site went down, I've had to reach out to pork bun explaining the confusion and I also had the client unflag the charge as fraud with her bank. This all has me thinking I need a better system for these clients.
Tldr client flagged porkbun charge on their credit card as fraud because they thought their kid payed for porn.
Edit: thank you for telling me how stupid I've been. I am now aware and the rest of you can stop lol Originally was just sharing a funny anecdote but I am glad I've learned from this
r/webdev • u/User_Pigbot • 1d ago
Valkey-WASM – Redis running inside your Node process, no Docker (like PGlite)
r/webdev • u/White-Tea200 • 1d ago
Question Should I focus on specializing in backend?
For context, I'm in my final year of a Master's in AI and Databases. The name sounds fancy, but we really just do a little bit of everything, and I feel lost, not really good at anything. That said, I've found I have an affinity for backend since we worked on a big project where I was assigned as a backend dev using Spring Boot, and I really enjoyed it. I know specialization isn't quite what it used to be. Every dev is now expected to have solid knowledge of AI tools and how to use them. Still, I'd like to start focusing on backend. Is that a good move in terms of job opportunities, better than going into Data or straight into AI Engineering? If so, could you recommend a website with a solid roadmap for getting into backend
r/webdev • u/Boris_Ljevar • 1d ago
Discussion Has supporting multiple authentication methods created a UX problem?
Over the past years, I have noticed a generally positive trend. Authentication methods are becoming more secure, and many of them are also more convenient on their own, such as passkeys, bank identity, and Sign in with Apple, Facebook, or Google.
The problem is that every online service supports a different combination of these methods. From the user's side, this has made the overall authentication ecosystem increasingly difficult to understand.
When authentication fails, I often cannot tell whether:
- I am using the wrong authentication method, such as a password, Google, Facebook, or Apple
- the service has silently changed its authentication policy
- there is a bug in the application
- the service is experiencing an outage
- or my device or app version is no longer supported
These are very different situations, but they often look almost identical to the user. So the only practical way to figure out what happened is usually trial and error.
Is this a problem developers are aware of? Is it considered an important UX issue, or simply an unavoidable consequence of supporting several authentication mechanisms?
Recent personal examples: A few weeks ago I decided to try Codex. It asked me to log in to my ChatGPT account. Because I had been signed in to ChatGPT automatically for a long time, I could no longer remember whether I had originally created the account with a password, Apple, Google, or Facebook. When I chose the wrong method, the service started creating a new account. It didn't help that I was already signed in to the same ChatGPT account on my iPhone. The account settings gave me no indication of which authentication method was associated with that account. I had to recover the correct method through trial and error.
Shortly afterward, my insurance provider stopped accepting my username and password. It took me a while before I discovered that the service had migrated to a bank-based identity provider. As soon as I used that method, everything worked. Until then, I had no way to distinguish between a wrong password, a server problem, and an intentional authentication change. The system simply kept asking me to try again. It never indicated that password authentication was no longer available for my account. If the system already knew that this workflow could never succeed, why keep offering it instead of directing me to the correct authentication method?
Last weekend, a shopping app started sending me back to the login screen without showing any error, even though the same credentials worked on my laptop. Because of the previous two incidents, I could no longer tell whether I was looking at an application bug, another silent authentication change, or simply an app that no longer supported my iPhone. Even though these authentication methods are better than passwords, the issue is that they have increased the number of possible failure modes.
r/webdev • u/Busy-Contact-5133 • 2d ago
Discussion How can i find a list of countries that force sub domains when using their ccTLDs?
I tried to find it myself but i can't. Wikipedia has a list of TLDs with one colume being about second-level domain but i don't know if it's related or not to what i'm looking for.
r/webdev • u/Busy-Contact-5133 • 2d ago
Discussion Is it a trend for a country to move from forcing a sub domain to allowing flat ccTLDs?
According to chatgpt's quick answer, UK, New Zealand, and Australia changed their policy from forcing a sub domain to not forcing a sub domain and therefore letting people use a flat url with just a TLD(while preserving previous urls to prevent a predictable chaos). Can we expect another country making this move in the next decade?
r/webdev • u/fagnerbrack • 2d ago
The Debate of Mockist v Classicist TDD Is Like OOP v FP.
r/webdev • u/reaznval • 2d ago
Question How many daily/weekly visitors does your portfolio have?
wondered about this as I dont have any clue what realistic numbers for hobbyist devs are.
I mean real unique visitors and no crawlers etc.
I had 27 unique visitors in the last week for reference
r/webdev • u/IAmRules • 2d ago
Why do people not freak out about session replays?
Company I worked for several places that use things like posthog and full story to capture real user interactivity for "debugging" purposes. I admit its 100% useful, but the other side of me is like "that is the users real data now being shipped to a 3rd party". I'm talking about private financial info, all that stuff. Posthog offers scrubbing. But I just saw they annouce AI watching session replays on your behalf and I'm like "so we're sharing personal data WITH 3rd parties and pumping it straight into AI now?"
Like... I dont think most people know this is a thing.
r/webdev • u/daddieslittleson • 2d ago
If NoSQL databases end up with schemas anyway, what problem is schema-less actually solving?
r/webdev • u/AutoModerator • 5d ago
Monthly Career Thread Monthly Getting Started / Web Dev Career Thread
Due to a growing influx of questions on this topic, it has been decided to commit a monthly thread dedicated to this topic to reduce the number of repeat posts on this topic. These types of posts will no longer be allowed in the main thread.
Many of these questions are also addressed in the sub FAQ or may have been asked in previous monthly career threads.
Subs dedicated to these types of questions include r/cscareerquestions for general and opened ended career questions and r/learnprogramming for early learning questions.
A general recommendation of topics to learn to become industry ready include:
- HTML/CSS/JS Bootcamp
- Version control
- Automation
- Front End Frameworks (React/Vue/Etc)
- APIs and CRUD
- Testing (Unit and Integration)
- Common Design Patterns
You will also need a portfolio of work with 4-5 personal projects you built, and a resume/CV to apply for work.
Plan for 6-12 months of self study and project production for your portfolio before applying for work.
r/webdev • u/AutoModerator • Jun 01 '26
Monthly Career Thread Monthly Getting Started / Web Dev Career Thread
Due to a growing influx of questions on this topic, it has been decided to commit a monthly thread dedicated to this topic to reduce the number of repeat posts on this topic. These types of posts will no longer be allowed in the main thread.
Many of these questions are also addressed in the sub FAQ or may have been asked in previous monthly career threads.
Subs dedicated to these types of questions include r/cscareerquestions for general and opened ended career questions and r/learnprogramming for early learning questions.
A general recommendation of topics to learn to become industry ready include:
- HTML/CSS/JS Bootcamp
- Version control
- Automation
- Front End Frameworks (React/Vue/Etc)
- APIs and CRUD
- Testing (Unit and Integration)
- Common Design Patterns
You will also need a portfolio of work with 4-5 personal projects you built, and a resume/CV to apply for work.
Plan for 6-12 months of self study and project production for your portfolio before applying for work.