News for hackers. Stuff that matters.
Re:A ChatGPT mistake cost us $10k by Aurornis on Sunday June 09, 2024 @05:39PM (#40627837)
On one hand, thanks for being honest about a story of how this bug came to be.

On the other hand, I don’t think advertising the fact that the company introduced a major bug from copy and pasting ChatGPT code around and that they spent a week being unable to even debug why it was failing.

I don’t know much about this startup, but this blog post had the opposite effect of all of the other high quality post-mortem posts I’ve read lately. Normally the goal of these posts is to demonstrate your team’s rigor and engineering skills, not reveal that ChatGPT is writing your code and your engineers can’t/won’t debug it for a very long time despite knowing that it’s costing them signups.

Re:A ChatGPT mistake cost us $10k by userbinator on Sunday June 09, 2024 @05:47PM (#40627898)
It read like no one really knew what they were doing. "We just let it generate the code and everything seemed to work" is certainly not a good way to market your company.
Re:A ChatGPT mistake cost us $10k by mort96 on Sunday June 09, 2024 @07:47PM (#40628582)
Eh I imagine they looked over the code as well, doing code review -- and at first glance, the code looks reasonable. I certainly wasn't able to catch the bug even though I tried to find it (and I was given a tiny collection of lines and the knowledge that there's a bug there!).

If anything, I think this says something about how dangerous ChatGPT and similar tools are: reading code is harder than writing code, and when you use ChatGPT, your role stops being that of a programmer and becomes that of a code reviewer. Worse, LLMs are excellent at producing plausible output (I mean that's literally all they do), which means the bugs will look like plausibly correct code as well.

I don't think this is indicative of people who don't know what they're doing. I think this is indicative of people using "AI" tools to help with programming at all.

Re:A ChatGPT mistake cost us $10k by throw46365 on Sunday June 09, 2024 @08:23PM (#40628769)
> I don't think this is indicative of people who don't know what they're doing. I think this is indicative of people using "AI" tools to help with programming at all.

I think using AI tools to write production code is probably indicative of people who don't really know what they are doing.

The best way not to have subtle bugs is to think deeply about your code, not subcontract it out -- whether that is to people far away who both cannot afford to think as deeply about your code and aren't as invested in it, or to an AI that is often right and doesn't know the difference between correct and incorrect.

It's just a profound abrogation of good development principles to behave this way. And where is the benefit in doing this repeatedly? You're just going to end up with a codebase nobody really owns on a cognitive level.

At least when you look at a StackOverflow answer you see the discussion around it from other real people offering critiques!

ETA in advance: and yes, I understand all the comparison points about using third party libraries, and all the left-pad stuff (don't get me started on NPM). But the point stands: the best way not to have bugs is to own your code. To my mind, anyone who is using ChatGPT in this way -- to write whole pieces of business logic, not just to get inspiration -- is failing at their one job. If it's to be yours, it has to come from the brain of someone who is yours too. This is an embarrassing and damaging admission and there is no way around it.

ETA (2): code review, as a practice, only works when you and the people who wrote the code have a shared understanding of the context and the goal of the code and are roughly equally invested in getting code through review. Because all the niche cases are illuminated by those discussions and avoided in advance. The less time you've spent on this preamble, the less effective the code review will be. It's a matter of trust and culture as much as it's a matter of comparing requirements with finished code.

Re:A ChatGPT mistake cost us $10k by abraae on Sunday June 09, 2024 @08:35PM (#40628855)
> And where is the benefit in doing this repeatedly? You're just going to end up with a codebase nobody really owns on a cognitive level.

You could say the same about the output of a compiler. No one owns that at a cognitive level. They own it at a higher level - the source code.

Same thing here. You own the output of the AI at a cognitive level, because you own the prompts that created it.

Re:A ChatGPT mistake cost us $10k by l33t7332273 on Sunday June 09, 2024 @09:53PM (#40629383)
>No one owns that at a cognitive level

Notwithstanding the fact that compilers did not fall out of the sky and very much have people that own them at the cognitive level, I think this is still a different situation.

With a compiler you can expect a more or less one to one translation between source code and the operation of the resulting binary with some optimizations. When some compiler optimization causes undesired behavior, this too is a very difficult problem to solve.

Intentionally 10xing this type of problem by introducing a fuzzy translation between human language and source code then 1000xing it by repeating it all over the codebase just seems like a bad decision.

Re:A ChatGPT mistake cost us $10k by throw46365 on Sunday June 09, 2024 @10:01PM (#40629427)
Right. I mean... I sometimes think that Webpack is a malign, inscrutable intelligence! :-)

But at least it's supposed to be deterministic. And there's a chance someone else will be able to explain the inner workings in a way I can repeatably test.

Re:A ChatGPT mistake cost us $10k by throw46365 on Sunday June 09, 2024 @08:51PM (#40628952)
> You could say the same about the output of a compiler.

Except, for starters, that you're not using the LLM to replace a compiler.

You're using it to replace a teammate.

Re:A ChatGPT mistake cost us $10k by theamk on Sunday June 09, 2024 @10:53PM (#40629683)
Yes, and when compilers fail, it's a very complex problem to solve, that usually requires many hours from experienced dev. Luckily,

(1) Compilers are reproducible (or at least repeatable), so you can share your problem with other, and they can help.

(2) For common languages, there are multiple compilers and multiple optimization options, which (and that's _very important_) produce identically-behaving programs - so you can try compiling same program with different settings, and if they differ, you know compiler is bad.

(3) The compilers are very reliable, and bugs when compiler succeeds, but generates invalid code are even rarer - in many years of my career, I've only seen a handful of them.

Compare to LLMs, which are non-reproducible, each one is giving a different answer (and that's by design) and finally have huge appear-to-succeed-but-produce-bad-output error rate, with value way more than 1%. If you had a compiler that bad, you'd throw it away in disgust and write in assembly language.

Re:A ChatGPT mistake cost us $10k by throwaway2037 on Sunday June 09, 2024 @09:47PM (#40629346)

    > I think using AI tools to write production code is probably indicative of people who don't really know what they are doing.
People said the same to me for using Microsoft IntelliSense 20 years ago. AI tools for programming are absolutely the future.
Re:A ChatGPT mistake cost us $10k by throw46365 on Sunday June 09, 2024 @09:53PM (#40629379)
But not the now, quite obviously.

Colour me cynical but I don't feel like pretending the future is here only to have to have to fix its blind incompetence.

Re:A ChatGPT mistake cost us $10k by whakim on Sunday June 09, 2024 @09:21PM (#40629169)
I totally disagree with this. You might as well argue that we shouldn't use code-completion of any kind because you might accidentally pick the wrong dependency or import. Or perhaps we shouldn't use any third-party libraries at all because you can use them to write reasonable-looking but incorrect code? Heck, why even bother using a programming language at all since we don't "own" how it's interpreted or compiled? Ultimately I agree that using third-party tools saves time at the cost of potentially introducing some types of bugs. (Note that said tools may also help you avoid other types of bugs!) But it's clearly a tradeoff (and one where we've collectively disagreed with you the vast, vast majority of the time) and boiling that down to AI=bad misses the forest for the trees.
Re:A ChatGPT mistake cost us $10k by aniviacat on Sunday June 09, 2024 @11:19PM (#40629815)
It is possible to use autocompletion correctly.

It is possible to use libraries correctly.

It is not possible to use AI correctly. It is only possible to correct its inevitable mistakes.

Re:A ChatGPT mistake cost us $10k by whakim on Monday June 10, 2024 @01:19AM (#40630420)
AI can provably write code without mistakes?
Re:A ChatGPT mistake cost us $10k by mbreese on Sunday June 09, 2024 @09:31PM (#40629238)
This is an error that should probably have been caught just based upon the color of the text when it was typed/pasted into the source code. Of the uuid() call was in quotes, it would have appeared as text. When you’re blindly using so much copy/pasted code (regardless of the source), it’s really easy to miss errors like this.

But our existing tools are already built to help us avoid this.

Back in the day, I used a tool from a group in Google called “error-prone”. It was great at catching things like this (and Lorne goal NPE in Java). It would examine code before compiling to find common errors like this. I wish we had more “quick” check tools for more languages.

Re:A ChatGPT mistake cost us $10k by thaumasiotes on Sunday June 09, 2024 @11:24PM (#40629838)
> This is an error that should probably have been caught just based upon the color of the text when it was typed/pasted into the source code. Of the uuid() call was in quotes, it would have appeared as text.

It's not in quotes. It's a function call.

The issue is that the function call happens once, when you define the class, rather than happening each time you instantiate the class.

Re:A ChatGPT mistake cost us $10k by mbreese on Wednesday June 12, 2024 @09:07AM (#40657700)
You’re right… I was remembering it as a `server_default` attribute. Those were quoted in the other lines, but this wouldn’t have been.
Re:A ChatGPT mistake cost us $10k by mattdw on Sunday June 09, 2024 @09:32PM (#40629246)
I'm a some-time Django developer and... I caught the bug instantly. Once I saw it was model/ORM code it was the first thing I looked for.

I say that not to brag because (a) default args is a known python footgun area already and (b) I'd hope most developers with any real Django or SQLAlchemy experience would have caught this pretty quick. I guess I'm just suggesting that maybe domain experience is actually worth something?

Re:A ChatGPT mistake cost us $10k by aragilar on Sunday June 09, 2024 @10:34PM (#40629584)
I missed it, because I was really confused what the models were doing: why is there an id and a subscription_id? Are the user_id fields related?
Re:A ChatGPT mistake cost us $10k by Sakos on Sunday June 09, 2024 @11:23PM (#40629833)
I've since moved on to primarily working with Java, so it's been a few years since working with Django on a daily basis and the default still jumped out to me immediately. Experience and domain knowledge is so important, especially when you need to evaluate ChatGPT's code for quality and correctness.

Also, where were their tests in the first place? Or am I expecting too much there?

Re:A ChatGPT mistake cost us $10k by jwells89 on Sunday June 09, 2024 @11:25PM (#40629843)
This is why I typically only use LLMs in programming as a semi-intelligent doc delver with requests like, “give me an example of usage of X API with Y language on Z platform”.

Not only does it goof up less frequently on small focused snippets like this, it also requires me to pick the example apart and pay close enough attention to it that goofups don’t slip by as easily and it gets committed to memory more readily than with copypasting or LLM-backed autocomplete.

Re:A ChatGPT mistake cost us $10k by ufmace on Monday June 10, 2024 @12:22AM (#40630115)
I don't know Python or SQLAlchemy that great, though I do have the benefit of it being cut down to a small amount of code and being told there was a bug there. That said, I didn't see the actual bug, but I did mentally flag that as something I ought to look up how it actually behaved. It's suspicious that some columns used `default` with what looks like Python code while others used `server_default` with what appears to be strings that look more like database engine code. If I was actually responsible for this, I'd want to dig into why there is that difference and where and when that code actually runs.

It's also the case that "code review" covers a lot of things, from quickly skimming the code and saying eh, it's probably fine, to deeply reading and ensuring that you fully understand the behavior in all possible cases of every line of code. The latter is much more effective, but probably not nearly as common as it ought to be.

Re:A ChatGPT mistake cost us $10k by Terretta on Sunday June 09, 2024 @07:39PM (#40628535)
> It read like no one really knew what they were doing. "We just let [devs] generate the code and everything seemed to work" is certainly not a good way to [whatever].

Except, have you met startup devs? This is by and large the "move fast then unbreak things" approach.

Re:A ChatGPT mistake cost us $10k by masijo on Sunday June 09, 2024 @07:47PM (#40628583)
This is why working for startups gives me PTSD. I wouldn't recommend it to anyone.
Re:A ChatGPT mistake cost us $10k by almost_usual on Sunday June 09, 2024 @08:31PM (#40628829)
The idea of inheriting a ChatGPT code base no one understands now makes it worse.
Re:A ChatGPT mistake cost us $10k by hehdhdjehehegwv on Sunday June 09, 2024 @09:19PM (#40629158)
Just give it to GPT-5 for a refactor, easy!
Re:A ChatGPT mistake cost us $10k by pclmulqdq on Sunday June 09, 2024 @10:16PM (#40629498)
It terrifies me that I have heard people say this unironically.
Re:A ChatGPT mistake cost us $10k by hehdhdjehehegwv on Monday June 10, 2024 @12:42AM (#40630230)
It’s the natural outcome of SV types denigrating the value of education.

Forget knowing anything, just come up with a nice pitch deck and let the LLM write the stack.

Not wholly surprised these people are YC backed. I’ve got the impression YC don’t place much weight on technical competence, assuming you can just hire the talent if you know how to sell.

Well, now replace “hire some talent” with “get a GPT subscription and YOLO”, and you get the foundation these companies of tomorrow are going to be built on.

Which hey, maybe that’s right and they know something I don’t.

Re:A ChatGPT mistake cost us $10k by SilasX on Sunday June 09, 2024 @07:58PM (#40628642)
For that matter, has OP even met the HN accepted wisdom? "No one knows what they're doing, everyone's faking it, it's fine if you are too" -- so don't take it as a red flag when your fumbling around keeps blowing up, because it surely must work that way everywhere else.

My early rant against this mentality: https://news.ycombinator.com/item?id=19214749

Re:A ChatGPT mistake cost us $10k by tmpz22 on Sunday June 09, 2024 @08:50PM (#40628945)
Its very humbling coming out of startup-land and working with big tech engineers and realizing their tooling runs circles around everybody else and enables them to be much more precise with their work and scale, though it isn't without trade-offs.
Re:A ChatGPT mistake cost us $10k by sanderjd on Sunday June 09, 2024 @09:13PM (#40629123)
Yeah but a lot of that is just the accrual of improvements that is possible with a lot of resources over a long period of time.

People working in "big tech" aren't fundamentally better at building reliable tools and systems; the time and resource constraints are entirely different.

Re:A ChatGPT mistake cost us $10k by crabmusket on Sunday June 09, 2024 @10:56PM (#40629698)
And the stakes! This outage might have cost the OP $10k. A similar snafu at a larger company might have cost tens of millions or more.
Re:A ChatGPT mistake cost us $10k by fragmede on Sunday June 09, 2024 @11:56PM (#40629995)
The big tech tooling probably cost tens of millions of dollars to create, and probably had a couple $10k mistakes on the way to getting it written and running.
Re:A ChatGPT mistake cost us $10k by ruszki on Sunday June 09, 2024 @10:54PM (#40629689)
It’s possible to move fast the same way, but break less things than this. For example, in this case, they said that they introduced tests to mitigate this. I can assure you that introducing tests takes more time than Google searches to check in like 2 minutes what each lines really does.
Re:A ChatGPT mistake cost us $10k by Kesty on Monday June 10, 2024 @03:23AM (#40631069)
The idea of moving fast is to have extensive logs and alerts so you fix all error fasts while they appear without "wasting time" with long expensive tests in a phase where things change every day.

5 days to find out you have "duplicate key" errors in the db is the opposite of fast

Re:A ChatGPT mistake cost us $10k by PhasmaFelis on Sunday June 09, 2024 @07:57PM (#40628639)
> It read like no one really knew what they were doing.

In my experience, hardly anyone in software does know what they're doing, for sufficiently rigorous values of "know what you're doing." We all read about other people's stupid mistakes, and think "haha, I would never have done that, because I know about XYZ!" And then we go off and happily make some equally stupid mistake because we don't know about ABC.

Re:A ChatGPT mistake cost us $10k by zeroonetwothree on Sunday June 09, 2024 @08:57PM (#40628999)
There’s a difference between not knowing what you are doing and making a mistake.
Re:A ChatGPT mistake cost us $10k by throw46365 on Sunday June 09, 2024 @09:06PM (#40629067)
The "zen" of LLMs is that they do not see a real distinction between these two things, or either of these two things and success ;-)
Re:A ChatGPT mistake cost us $10k by PhasmaFelis on Sunday June 09, 2024 @09:03PM (#40629046)
An awful lot of mistakes are made because one didn't know something that would have enabled one to avoid it. Not knowing what you don't know is difficult to work around.
Re:A ChatGPT mistake cost us $10k by throw46365 on Sunday June 09, 2024 @09:03PM (#40629048)
I dunno. I tend to annoy people when taking on jobs by telling people what I am concerned about and do not understand, and then sharing with them the extent to which I have managed to allay my own concerns through research.

I turn down a lot of jobs I don't feel confident with; maybe more than I should.

An LLM never will.

Re:A ChatGPT mistake cost us $10k by bogota on Sunday June 09, 2024 @09:03PM (#40629051)
This is getting more common. I have already had people try to tell me how something works from a chat gpt summary. This would have led to us taking a completely different direction… 5 minutes of reading the actual docs and I found out they were wrong.

Now at a new company i have caught several people copy pasting gpt code that is just horrendous.

It seems like this is where the industry is headed. The only thing i have found gpt to be good at is solving interview questions although it still uses phantom functions about 50% of the time. The future is bumming me out.

Re:A ChatGPT mistake cost us $10k by gravescale on Sunday June 09, 2024 @10:18PM (#40629506)
Like people who post "here's what ChatGPTx said" instead of their own answer. Quite literally, what is the point?

However, I don't think it's really bad for the technical industries long term. It probably does mean that some companies with loose internal quality control and enough shiftless employees pasting enough GPT spew without oversight will go to the wall because their software became unmaintainable and not useful, but this already happens. It's probably not hugely worse than the flood of bootcamp victims who wrote fizzbuzz in Python, get recruited by a credulous, cheap or desperate company and proceed to trash the place if not adequately supervised. If you can't detect bad work being committed, that's mostly on the company, not ChatGPT. Yes, it may make it harder, a bit, but it was oversight you should already have been prepared to have, doubly so if you can't trust employee output. It also probably implies strong QA, which is already a prerequisite of a solid product company.

Normal interest rates coming back will cut away companies that waste everyone's time and money by overloading themselves on endlessly compounding technical debt.

Re:A ChatGPT mistake cost us $10k by foota on Sunday June 09, 2024 @10:24PM (#40629541)
Is the idea here that normal (read: low?) interest rates will let companies spend more time getting things right?
Re:A ChatGPT mistake cost us $10k by gravescale on Sunday June 09, 2024 @10:51PM (#40629671)
No, the idea is that historically-normal interest rates around the 5-10% mark won't be conducive to free VC cash being sprayed around for start-ups to wank themselves silly over "piv-iterating" endlessly over spamming complete nonsense and using headcount and office shininess as a substitute for useful and robust products.

Yes, it makes the barrier higher even for good products and helps entrench incumbents, but short of a transnational revolution, the macroeconomic system is what is it and you can only chose to find the good things in it or give up entirely.

Re:A ChatGPT mistake cost us $10k by johnny22 on Monday June 10, 2024 @01:00AM (#40630316)
> Like people who post "here's what ChatGPTx said" instead of their own answer. Quite literally, what is the point?

Yeah I've seen this and i hate it. If i wanted to know what chatgpt said I'd just ask it myself.

Re:A ChatGPT mistake cost us $10k by droopyEyelids on Sunday June 09, 2024 @09:16PM (#40629141)
It’sa Tower of Babel like effect
Re:A ChatGPT mistake cost us $10k by krick on Sunday June 09, 2024 @09:49PM (#40629355)
I don't really care about them marketing their company, but, Jesus, seriously, that's how software is going to be written now. TBH, I'm not really sure if it's that much different from how it was, but it sounds just... fabulous.
Re:A ChatGPT mistake cost us $10k by gravescale on Sunday June 09, 2024 @09:51PM (#40629368)
> We just let it generate the code and everything seemed to work

Everyone using C++20 compilers: side-glancing monkey.

Re:A ChatGPT mistake cost us $10k by pclmulqdq on Sunday June 09, 2024 @10:17PM (#40629502)
The difference is that you can read the code that ChatGPT generates.
Re:A ChatGPT mistake cost us $10k by jasonlotito on Sunday June 09, 2024 @11:16PM (#40629799)
> It read like no one really knew what they were doing.

Then no one knows what they are doing. I really don't know any company that doesn't make what could be considered rookie mistakes by some armchair "developer" here on HN.

Re:A ChatGPT mistake cost us $10k by koito17 on Sunday June 09, 2024 @05:56PM (#40627950)
More importantly, what was the motivation behind a rewrite from TypeScript to Python? From the article

  Our project was originally full stack NextJS but we wanted to first migrate everything to Python/FastAPI.
Seems like this entire mess could've been avoided if they had stuck with their existing codebase, which seemed to have been satisfying their business requirements.
Re:A ChatGPT mistake cost us $10k by nicce on Sunday June 09, 2024 @06:04PM (#40627998)
> NextJS

There is well-hidden vendor-lock when using NextJS, at least.

Re:A ChatGPT mistake cost us $10k by __jonas on Sunday June 09, 2024 @06:34PM (#40628166)
that’s a bold claim, could you give an example?
Re:A ChatGPT mistake cost us $10k by nicce on Sunday June 09, 2024 @07:16PM (#40628414)
Probably the most known example https://github.com/vercel/next.js/discussions/19065

It is not an issue if you host in Vercel.

Implementing the requested feature would make the framework much better and easier to use when self-hosted elsewhere. But there is neglection to resolve the issue. This is just one case.

Re:A ChatGPT mistake cost us $10k by steelbrain on Sunday June 09, 2024 @07:53PM (#40628615)
FWIW, we host on Cloudflare and use their API to resize images on the fly and we're fine. Not so much a "lock-in" if other vendors can fill-in, is it?
Re:A ChatGPT mistake cost us $10k by nicce on Sunday June 09, 2024 @08:02PM (#40628657)
You likely needed to do more extra work than needed, when compared to some other options.

The lock-in here is the added developer time and complexity vs. just paying premium.

Re:A ChatGPT mistake cost us $10k by steelbrain on Sunday June 09, 2024 @09:38PM (#40629288)
I disagree with your threshold for what makes something a lock-in but I admire your ideology of less friction in portability
Re:A ChatGPT mistake cost us $10k by winterrx on Monday June 10, 2024 @12:14AM (#40630061)
What API do you use to resize images? Cloudflare? I know Vercel and NextJS have an <Image> resizing/optimization component that gets pricy.
Re:A ChatGPT mistake cost us $10k by steelbrain on Tuesday June 11, 2024 @05:59PM (#40652096)
Yes, Cloudflare through the `loader` prop in `Image` component.

See CF docs for what the url should be https://developers.cloudflare.com/images/transform-images/tr... Next.js docs should tell you how to write the loader

Re:A ChatGPT mistake cost us $10k by RamblingCTO on Monday June 10, 2024 @01:23AM (#40630439)
If you need to change it when switching vendors and only they offer it/it's proprietary, it's vendor lock-in.
Re:A ChatGPT mistake cost us $10k by brigadier132 on Sunday June 09, 2024 @06:26PM (#40628135)
There is no vendor lockin with nextjs
Re:A ChatGPT mistake cost us $10k by _heimdall on Sunday June 09, 2024 @08:08PM (#40628689)
There is no explicit vendor lock-in, but features of the framework are designed heavily towards Vercel-specific features.

The SST team actually has an open-next project[1] that does a ton of work to shim most of the Vercel-specific features into an AWS deployment. I don't think it has full parity and it's a third party adapter from a competing host. The fact that it's needed at all is a sign of now closely tied Next and Vercel are.

[1] https://github.com/sst/open-next

Re:A ChatGPT mistake cost us $10k by nicce on Sunday June 09, 2024 @06:40PM (#40628218)
Simply put - if you want get the best out of the framework, you need to host it in Vercel. Otherwise, there are better options for frameworks. No need to ”fight it”.

You will find many issues from GitHub which are not considered because they would make the framework ”better” or easier to use on other clouds.

Re:A ChatGPT mistake cost us $10k by mattigames on Sunday June 09, 2024 @07:26PM (#40628462)
Making things worse in a free offering by a company to profit from premium offerings by the same company its the pinacle of capitalism, reminds me of a recurrent joke I have with a friend while playing Call Of Duty, that they will get greedier and soon will sell not only character's skins but also shaders/textures for the maps, oh so you want to see something better than placeholder textures? We have the DLC just for you!
Re:A ChatGPT mistake cost us $10k by kevindamm on Sunday June 09, 2024 @07:54PM (#40628618)
More likely outcome: ads on static textures and between lobbies, oh but you can pay to turn them into _theme of the week_.
Re:A ChatGPT mistake cost us $10k by nicce on Sunday June 09, 2024 @08:04PM (#40628667)
Don't give them ideas...
Re:A ChatGPT mistake cost us $10k by kevindamm on Sunday June 09, 2024 @08:41PM (#40628880)
Environment destruction gameplay but there's always another ad under the ads, except when it's a lootbox.

I can imagine worse, too! They haven't even really started turning that knob yet.

Re:A ChatGPT mistake cost us $10k by tmpz22 on Sunday June 09, 2024 @08:56PM (#40628994)
The Video game metaphor stretches pretty far.

Madden has a monopoly license for NFL content. For a decade the biggest complaint was how they gate kept rosters behind the yearly re-release. Eventually they allowed roster sharing but they put it behind the most god awful inept UI you could possibly imagine such that practically casual gamers wouldn't bother with it.

Then Madden came out with Madden Ultimate Team (like trading cards MTX) and have been neglecting non-MUT modes ever since. They don't explicitly regress the rest of their game, they just commit resources to that effect.

Its like malicious compliance. They don't embrace, extend, extinguish, but they get a similar effect just with resourcing, layoffs, whatever.

Re:A ChatGPT mistake cost us $10k by throw156754228 on Monday June 10, 2024 @03:35AM (#40631135)
>there are better options

Do you mind naming some NextJS alternatives without potential vendor lock in? Mulling a change in my fe.

Re:A ChatGPT mistake cost us $10k by nicce on Monday June 10, 2024 @03:46AM (#40631188)
For example, Remix has got a lot of traction recently. It is also backed by Shopify where the business model does not conflict.

https://remix.run/

Re:A ChatGPT mistake cost us $10k by dgfitz on Sunday June 09, 2024 @06:01PM (#40627982)
I’m sure they are influenced by the likes of Reddit and Twitter rewriting their stack. I mean, that’s what has to be done, right? /s
Re:A ChatGPT mistake cost us $10k by __jonas on Sunday June 09, 2024 @06:36PM (#40628183)
Is there a trend there of moving from Next to FastAPI? I would be surprised.

Perhaps they are doing some AI thing and want to have python everywhere.

Re:A ChatGPT mistake cost us $10k by threecheese on Sunday June 09, 2024 @09:04PM (#40629057)
My guess, when I read it, was this would permit them to independently scale the backend on some commodity capacity provider, and then their Nextjs frontend becomes just another React app. OP didn’t mention what their product was, but if it’s AI-adjacent then a python backend doesn’t sound like a terrible idea.
Re:A ChatGPT mistake cost us $10k by 65 on Sunday June 09, 2024 @09:32PM (#40629245)
Or if you really want to rewrite your back end, why not just use Express? It would be wildly quicker to rewrite than switching languages. That along with the article makes me question the competency of the company. They got customers, sure, but in the long run these decisions will pile up.
Re:A ChatGPT mistake cost us $10k by SmellTheGlove on Sunday June 09, 2024 @06:16PM (#40628078)
This is a pretty common mistake with sqlalchemy whether you’re using ChatGPT or not. I learned the same lesson years ago, although I caught it while testing. I write plenty of python and I just don’t often pass functions in as parameters. In this case you need to!

For something like this where you’re generating a unique id and probably need it in every model, it’s better to write a new Base model that includes things like your unique id, created/changed at timestamps, etc. and then subclass it for every model. Basically, write your model boilerplate once and inherit it. This way you can only fuck this up once and you’re bound to catch it early before you make this mistake in a later addition like subscription management.

Re:A ChatGPT mistake cost us $10k by hamasho on Sunday June 09, 2024 @07:47PM (#40628579)
I wonder are there linters to detect those types of mistakes for SQLAlchemy. Even though I'm aware of such pitfalls, it's nice if linters can catch them cause I'm not confident to cache them all the time during code review.

Some linters like pyright can identify dangerous defaults in function call, like `def hello(x=[]): pass` (mutable values shouldn't be a default). Linter plugins for widely-used and critical libraries like SQLAlchemy are nice to have.

Re:A ChatGPT mistake cost us $10k by whakim on Sunday June 09, 2024 @09:32PM (#40629249)
The mutable-default-arguments issue is easy for a third-party to linter to catch because it doesn't require any specific knowledge about primary keys and databases. Are there static typing plugins for other common packages that would catch issues like this?
Re:A ChatGPT mistake cost us $10k by aragilar on Sunday June 09, 2024 @10:42PM (#40629628)
I personally use pylint, which I've found to be the most aggressive python linter.
Re:A ChatGPT mistake cost us $10k by wateroutflow on Sunday June 09, 2024 @06:18PM (#40628086)
Yea, more of an issue of how this python library can cause misunderstandings, and ChatGPT failing in the same misunderstanding that would have been made by an engineer who lacks experience in that library.

This mistake would have happened even if they did not use ChatGPT.

Re:A ChatGPT mistake cost us $10k by spamizbad on Sunday June 09, 2024 @09:25PM (#40629197)
Ah, but it’s not a characteristic of SQLAlchemy tho. It’s how Python evaluates statements. Both Peewee and the Django ORM work on the same principle with default values.

The intent is to pass a callable, not to call a function and populate an argument with what it returns.

Re:A ChatGPT mistake cost us $10k by SmellTheGlove on Sunday June 09, 2024 @10:31PM (#40629569)
Correct, it's not specific to sqlalchemy - I'm just saying I notice this a lot with sqlalchemy. Probably because it was the first significant bug I had to figure out how to fix when I introduced it in one of my first apps. I guess we never forget the first time we shot ourselves in the foot.
Re:A ChatGPT mistake cost us $10k by hehdhdjehehegwv on Sunday June 09, 2024 @09:25PM (#40629198)
Depending on your viewpoint, ORM are by nature a mistake.

The time people spend learning the quirks of an ORM is much better put into learning SQL.

Re:A ChatGPT mistake cost us $10k by thruway516 on Sunday June 09, 2024 @09:41PM (#40629311)
Honestly same can be said about a lot of frameworks. You will pry my vanilla JS debugged with print statements hand-coded in vi from these hands only when they're cold and dead.
Re:A ChatGPT mistake cost us $10k by hehdhdjehehegwv on Monday June 10, 2024 @02:28AM (#40630790)
Yeah, I have a workflow where I inject JavaScript into arbitrary webpages and store the results. There’s no substitute for vanilla js knowledge when you’re in the weeds.
Re:A ChatGPT mistake cost us $10k by thruway516 on Sunday June 09, 2024 @09:31PM (#40629241)
That explains where ChatGpt is getting that from. I guess it is only as smart as the average coder.
Re:A ChatGPT mistake cost us $10k by joemazerino on Sunday June 09, 2024 @08:16PM (#40628730)
I appreciate the author's honesty. Its better to see transparently what happened so customers know the problem is fixed.
Re:A ChatGPT mistake cost us $10k by Lerc on Sunday June 09, 2024 @06:19PM (#40628093)
The bad thing is what they did, not that the disclosed it.

I agree that this is probably to their disadvantage, but I would much rather have people admitting their faults than hiding them. If everyone did this the world would be better.

Of course the best solution is to not have faults but that is like saying that the solution to being poor is to have lots of money. It's much easier to say than do.

Re:A ChatGPT mistake cost us $10k by theamk on Sunday June 09, 2024 @11:07PM (#40629758)
The bad thing is their engineering culture and not anything technical. We all make mistakes, the question is how we fix them. Look a the last sentences of the post:

> Yes we should have done more testing. Yes we shouldn't have copy pasted code. Yes we shouldn't have pushed directly to main. Regardless, I don't regret the experience.

None of those are unconditionally bad! Every project I've worked on could use more testing; we all copy-pasted code at least occasionally, and pushing to main is fine in some circumstances.

The real problem is that they went live, but their tooling (or knowledge how to use it) was so bad it took 5 days to solve the simple issue; and meanwhile, they kept pushing new code ("10-20 commits/day") while their customers were suffering. This is what really causes the reputation hit.

Re:A ChatGPT mistake cost us $10k by jorams on Sunday June 09, 2024 @05:57PM (#40627955)
Yeah this is not a good thing to advertise.

- They were under large time constraints, but decided a full rewrite to a completely different stack was a good idea.

- They copy-pasted a whole bunch of code, tested it manually once locally, once in production, and called it a day.

- The debugging procedure for this issue so significant it made them dread waking up involved... testing it once and moving on. Every day.

The bug is pretty easy to miss, but should also be trivial to diagnose the moment you look at the error message, and trivial to reproduce if you just try more than once.

Re:A ChatGPT mistake cost us $10k by hehdhdjehehegwv on Sunday June 09, 2024 @09:28PM (#40629218)
Ironically one of my frequent GPT questions is “X is supposed to do Y, but is doing Z. What logs should I look at and what error messages to keep an eye out for?”
Re:A ChatGPT mistake cost us $10k by atrettel on Sunday June 09, 2024 @09:34PM (#40629264)
I'd rather they admit a mistake and learn a lesson from it even if it isn't a good thing to advertise. That said, I agree that you are identifying a more important issue here but I also think you are being a bit too subtle about even if I agree with what you are saying. The real lesson that they should have learned from this ordeal is to never push code directly into production --- period. The article never mentions using a testbed or sandbox beforehand, and I kinda feel like they learned a good lesson but it may in fact be the wrong lesson to learn here.
Re:A ChatGPT mistake cost us $10k by theamk on Sunday June 09, 2024 @11:10PM (#40629771)
I don't see how testbed/sandbox would have helped, unless they'd also have a dedicated QA person _and_ configured their sandbox so have dramatically fewer instances.

Because I can see "create a new subscription" in the manual test plan, but not "create 5x new subscription".

Re:A ChatGPT mistake cost us $10k by owl57 on Tuesday June 11, 2024 @12:37AM (#40642397)
> configured their sandbox so have dramatically fewer instances

May be a wise thing to do anyway. I would even advocate for the extreme, one instance in sandbox. I've seen quite a variety of bugs that would be easier to detect and debug with one instance — from values accidentally persisted between requests (OP is one example of this very broad class of bugs), to a thundering herd bug catched in staging due to less instances and more worker threads per instance. But can't remember even one "distributed" bug caught in staging.

> they'd also have a dedicated QA person

This is a new feature, and it's user-facing, business-critical and inherently fragile (external service integration, though it broke for another reason). I hope multiple people manually run such things end to end before deploying to prod, even if none of them are dedicated QA?

Re:A ChatGPT mistake cost us $10k by owl57 on Sunday June 09, 2024 @11:07PM (#40629756)
> trivial to reproduce if you just try more than once

A lot more than once: they had 40 instances of their app, and the bug was only triggered by getting two requests on the same instance.

A bunch of developers including me once spent a whole weekend trying to reproduce a bug that was affecting production and/or guess from the logs where to look for it. Monday morning, team lead called a meeting, asked for everything we could find out, and… Opened the app in six tabs simultaneously and pressed the button in question in one of the tabs. And it froze! Knowing how to reproduce on our computers, we found and fixed the bug in the next 30 minutes.

Re:A ChatGPT mistake cost us $10k by kidme5 on Sunday June 09, 2024 @07:44PM (#40628560)
that blog post is all they have so not much to worry about company wise
Re:A ChatGPT mistake cost us $10k by viraptor on Sunday June 09, 2024 @05:52PM (#40627921)
They spent 5 days. The bug type is pretty common and could easily be done by a developer. (It's a similar class to the singleton default argument issue that many people complain about) Meh, I don't mind the cautionary tale and don't think chatgpt was even relevant.

It's actually a tricky bug, because usual tests wouldn't catch it (db wiped for good isolation) and many ways of manual testing would restart the service (and reset the value) on any change and prevent you from seeing it. Ideally there would be a lint that catches this situation for you.

Re:A ChatGPT mistake cost us $10k by hn_throwaway_99 on Sunday June 09, 2024 @06:08PM (#40628020)
TBH, while I definitely could see this being an easy bug to write, something is definitely wrong if it took 5 days to identify the root cause of this bug.

That is, I'm struggling to understand how a dive into the logs wouldn't show that all of these inserts were failing with duplicate key constraint violations. At that point at least I'd think you'd be able to narrow down the bug to a problem with key generation, at which point you're 90% of the way there.

I also don't agree that "usual tests wouldn't catch it (db wiped for good isolation)". I'd think that you'd have at least one test case that inserted multiple users within that single test.

Re:A ChatGPT mistake cost us $10k by viraptor on Sunday June 09, 2024 @06:15PM (#40628071)
The bug was in multiple subscriptions not just users. And I can't think of one non-contrived reason to do it. Even when testing the visibility/access of subscriptions between users you need 2 users, but only one subscription.
Re:A ChatGPT mistake cost us $10k by jbattle on Sunday June 09, 2024 @08:11PM (#40628708)
create a subscription for a test user. delete it. Make sure you can create another subscription for the same user.

create subscriptions with and without overlapping effective windows

Those seem like very basic tests that would have highlighted the underlying issue

Re:A ChatGPT mistake cost us $10k by Ozzie_osman on Sunday June 09, 2024 @08:49PM (#40628941)
Or add some debug logging? 5 days into a revenue-block bug, if I can't repro manually or via tests, I would have logged the hell out of this code. No code path or metric would be spared.
Re:A ChatGPT mistake cost us $10k by zeroonetwothree on Sunday June 09, 2024 @09:00PM (#40629021)
Hindsight is 20/20. It’s always easy to think of tests that would have caught the issue. Can you think of tests that will catch the next issue though?
Re:A ChatGPT mistake cost us $10k by jbattle on Sunday June 09, 2024 @09:29PM (#40629224)
I'd argue that a suite of tests that exercise all reasonably likely scenarios is table stakes. And would have caught this particular bug.

I'm not talking about 100% branch coverage, but 100% coverage of all happy paths and all unhappy paths that a user might reasonably bump into.

OK maybe not 100% of the scenarios the entire system expresses, but pretty darn close for the business critical flows (signups, orders, checkouts, whatever).

Re:A ChatGPT mistake cost us $10k by hn_throwaway_99 on Monday June 10, 2024 @12:29AM (#40630156)
Sure, hindsight is 20/20, but a bunch of these comments are replying to the assertion "And I can't think of one non-contrived reason to do it" (have a single test case with multiple subscriptions). That's the assertion I think is totally weird - I can think of tons of non-contrived reasons to have multiple subscriptions in a single test case.

I wouldn't pillory someone if they left out a test case like this, but neither would I assert that a test case like this is for some reason unthinkable or some outlandish edge case.

Re:A ChatGPT mistake cost us $10k by viraptor on Monday June 10, 2024 @01:36AM (#40630520)
Go on then - so far the examples I've seen don't make sense in the context of stripe.
Re:A ChatGPT mistake cost us $10k by viraptor on Monday June 10, 2024 @01:16AM (#40630407)
Have a look at stripe API. You don't delete subscriptions. You change them to free plan instead / cancel and then resume later. This for would not result in deletion of the entry. You also can update to change the billing date, so no overlapping subscriptions are needed. Neither test would result in the described bug.
Re:A ChatGPT mistake cost us $10k by hn_throwaway_99 on Sunday June 09, 2024 @06:24PM (#40628116)
What? This doesn't make any sense:

1. First, if you look at the code they posted, they had the same bug on line 45 where they create new Stripe customers.

2. The issue is not multiple subscriptions per user (again, if you look at the code, you'll see each Subscription has one foreign key user_id column). The problem is if you had multiple subscriptions (each from different users) created from the same backend instance then they'd get the same PK.

Re:A ChatGPT mistake cost us $10k by viraptor on Sunday June 09, 2024 @06:43PM (#40628231)
Not every user needs a stripe customer. I'm creating the stripe entries only on subscription in my app.

Your second point is true, but I don't see what it changes. Most automated unit/integration testing would just wipe the database between tests and needing two subscribed users in a single test is not that likely.

Re:A ChatGPT mistake cost us $10k by hn_throwaway_99 on Sunday June 09, 2024 @09:14PM (#40629128)
> needing two subscribed users in a single test is not that likely.

Apparently not.

Re:A ChatGPT mistake cost us $10k by qeternity on Sunday June 09, 2024 @06:14PM (#40628065)
Yeah, we have quite literally caught bugs like this in 5 minutes in prod not bc we made a mistake, but bc a customer’s internal API made a schema change without telling us and our database constraints and logging protected us.

But it took about 5 minutes, and 4 of those minutes were waiting for Kibana to load.

Re:A ChatGPT mistake cost us $10k by brigadier132 on Sunday June 09, 2024 @06:28PM (#40628147)
> db wiped for good isolation

Why? In fact, not having good isolation would have caught this bug. Generate random emails for each test. Why would you test on a completely new db as if that is what will happen in the real world?

Re:A ChatGPT mistake cost us $10k by viraptor on Sunday June 09, 2024 @06:47PM (#40628255)
It's extremely common. You want to know that objects/rows from one test don't bleed into another by accident. It allows you to write more strict and simpler assetions - like "there's one active user in the database" after a few changes, rather than "this specific user is in the database and active and those other ones are not anymore".

Leaking information between test runs can actually make things pass by accident.

Re:A ChatGPT mistake cost us $10k by zeroonetwothree on Sunday June 09, 2024 @09:02PM (#40629035)
It makes your tests more robust. Generally you don’t want tests that are too sensitive to external state since they will fail spuriously and become useless.
Re:A ChatGPT mistake cost us $10k by brigadier132 on Sunday June 09, 2024 @09:22PM (#40629176)
Of course your tests shouldn't be sensitive to external state. Why would other tests running affect your test?
Re:A ChatGPT mistake cost us $10k by viraptor on Sunday June 09, 2024 @11:55PM (#40629985)
They shouldn't. But they do. We're not perfectly spherical developers and we all make mistakes. Sometimes it's also extremely tricky to figure out what state is leaking, especially is it's an access race issue and happens only for some tests and very rarely. If you haven't seen that happening, you just need to work on larger projects.
Re:A ChatGPT mistake cost us $10k by brigadier132 on Monday June 10, 2024 @11:45AM (#40634817)
I've worked at several large companies tyvm. In our e2e tests we did not isolate dbs. If the test failed because of other tests running that's a bug in the test and that person would get automatically @mentioned on slack and they would have to fix the build.
Re:A ChatGPT mistake cost us $10k by jackspawn on Sunday June 09, 2024 @05:59PM (#40627964)
agree, but this sounds like it would produce logs/error messages which could then lead to a solution, quicker... if the logs were captured and propagated sufficiently
Re:A ChatGPT mistake cost us $10k by viraptor on Sunday June 09, 2024 @06:11PM (#40628044)
Oh definitely. Their ops experience seems very low. But I've found it extremely uncommon to see anything better in smaller projects.
Re:A ChatGPT mistake cost us $10k by dragonwriter on Sunday June 09, 2024 @06:20PM (#40628097)
> It's actually a tricky bug, because usual tests wouldn't catch it (db wiped for good isolation)

Volume/load testing (or really, any decent acceptance testing) would catch it.

Re:A ChatGPT mistake cost us $10k by viraptor on Sunday June 09, 2024 @06:27PM (#40628136)
Load testing - yes, but it's not that usual unfortunately. (Even though it should be) Acceptance testing - again, maybe, if they use 20 or so subscriptions in one batch, which may not be the case.
Re:A ChatGPT mistake cost us $10k by crooked-v on Sunday June 09, 2024 @05:58PM (#40627960)
> and could easily be done by a developer

...who didn't know how the ORM they were using worked. That's what makes them look so bad here: nobody knew how it worked, not even at the surface level of knowing what the SQL actually generated by the tool looks like.

Re:A ChatGPT mistake cost us $10k by TheRoque on Sunday June 09, 2024 @06:20PM (#40628102)
In their defense, I find SQLAlchemy syntax quite horrible, and I always have to look up everything. It also got a 2.0 release recently which changes some syntax (good luck guessing which version ChatGPT will use), and makes the process even more annoying.
Re:A ChatGPT mistake cost us $10k by zo1 on Sunday June 09, 2024 @06:28PM (#40628140)
SQLAlchemy syntax is ridiculously obvious and straightforward as long as you're not doing anything weird.

The takeaway here is that they weren't mature enough to realize they were, in fact, doing something "weird". I.e. Using UUIDs for PKs, because hey "Netflix does it so we have to too! Oh and we need an engineering blog to advertise it".

Edit. More clarity about why the UUID is my point of blame: If they had used a surrogate and sequential Integer PK for their tables, they would never have to tell SQLAlchemy what the default would be, it's implied because it's the standard and non-weird behavior that doesn't include a footgun.

Re:A ChatGPT mistake cost us $10k by sgarland on Monday June 10, 2024 @11:13AM (#40634506)
Unfortunately, UUID as PK is an extremely common pattern these days, because devs love to believe that they’ll need a distributed DB, and also that you can’t possibly use integers with such a setup. The former is rarely true, the latter is blatantly false.
Re:A ChatGPT mistake cost us $10k by brown9-2 on Sunday June 09, 2024 @08:41PM (#40628887)
looking at the query logs for the nighttime period should have made the bug fairly obvious
Re:A ChatGPT mistake cost us $10k by 8n4vidtmkvmk on Sunday June 09, 2024 @09:55PM (#40629393)
They even said they had sentry set up.. they'd notice the duplicate key error immediately.
Re:A ChatGPT mistake cost us $10k by ihumanable on Monday June 10, 2024 @02:25PM (#40636532)
I read the part where they said they poured through "hundreds of sentry logs" and immediately was like "no you didn't."

This is not an error that would be difficult to spot in an error aggregator, it would throw some sort of constraint error with a reasonable error message.

Re:A ChatGPT mistake cost us $10k by 8n4vidtmkvmk on Sunday June 09, 2024 @09:58PM (#40629409)
A functioning dev env would have caught this if they manually tested more than once. Typically you dont run 40 dev instances. Or a staging environment.
Re:A ChatGPT mistake cost us $10k by AdamJacobMuller on Sunday June 09, 2024 @06:12PM (#40628053)
The fact that they couldn't find it by looking at error logs is weird to me.

This is an entirely forgivable error but should have been found the first time they got an email about it:

"Oh, look, the error logs have a duplicate key exception for the primary key, how do we generate primary keys.... (facepalm)"

Funnily enough, I saw the error in their snippet as soon as I read it but dismissed it thinking there was some new-fangled python feature which allowed that to work like the function def defines that default= accepts only functions so the function gets passed? -- I haven't kept up with modern python and that sounds cool and I figured the bug couldn't be THAT simple.

Re:A ChatGPT mistake cost us $10k by dalemhurley on Sunday June 09, 2024 @08:27PM (#40628802)
I was wondering that too. Why wouldn’t the error be in the logs?
Re:A ChatGPT mistake cost us $10k by throwaway346434 on Sunday June 09, 2024 @08:42PM (#40628891)
Guess: the logs were on an ec2 instance that was thrown away regularly, and the overnight reports didn't give reproduce steps or timestamps; so when they checked it "works fine".

There's value in having your backtrace surfaced to end users rather than swallowing an exception and displaying "didn't work".

Re:A ChatGPT mistake cost us $10k by AdamJacobMuller on Sunday June 09, 2024 @10:59PM (#40629720)
it was on some temporary AWS service like lambda or something? (We had eight ECS tasks on AWS, all running five instances of our backend), but, regardless logs should be somewhere persistent.

If they weren't, that should be the first thing you fix.

Re:A ChatGPT mistake cost us $10k by 8n4vidtmkvmk on Sunday June 09, 2024 @10:06PM (#40629448)
I don't think showing stack traces to users is good practice? Every time one of my users gets a didn't work message I log the stack trace instead.
Re:A ChatGPT mistake cost us $10k by dalemhurley on Monday June 10, 2024 @12:30AM (#40630164)
Why would you show them a stack trace? This should be logged.
Re:A ChatGPT mistake cost us $10k by erhaetherth on Wednesday June 12, 2024 @10:36PM (#40665378)
That's what I said. Parent said

> There's value in having your backtrace surfaced to end users

Re:A ChatGPT mistake cost us $10k by nxobject on Sunday June 09, 2024 @05:49PM (#40627908)
In a way, it does give you an opportunity to think about what you appreciate in a detailed postmortem - not just a single cause, but human and organizational factors too, and an attempt to figure out explicit mitigations. I’ll admit the informality and the breezy tone here made me go “woah, they’re a bit cavalier…”
Re:A ChatGPT mistake cost us $10k by hehdhdjehehegwv on Sunday June 09, 2024 @08:35PM (#40628853)
This is embarrassing, I’d honestly consider pulling this post for your reputation.
Re:A ChatGPT mistake cost us $10k by hitekker on Sunday June 09, 2024 @09:21PM (#40629172)
That's an alright takeaway: the team made a rookie mistake and then they made a PR mistake by oversharing.

Otherwise, I think this comment thread is a classic example why company engineering blogs choose to be boring. Better ten articles that have some useful information, than a single article that allows the commentariat to pile on and ruin your reputation.

Re:A ChatGPT mistake cost us $10k by sillysaurusx on Sunday June 09, 2024 @10:37PM (#40629599)
I think it’s an unfair takeaway. I have over a decade of experience and still had to stare at the line to find the bug. If that makes them incompetent, I stand with them. It’s a bug I’ve seen people make in other contexts, not just chatbots.

The AI angle is probably why people are piling on. There’s a latent fear that AI will take our jobs, and this is a great way to skewer home that we’re still needed. For now.

The one thing I will say is that it probably wouldn’t take me days to track it down. But that’s only because I have lots of experience dealing with bugs the way that The Wolf deals with backs of cars. When you’re trying to run a startup on top of everything else, it can be easy to miss.

I’m happy they gave us a glimpse of early stage growing pains, and I don’t think this was a PR fumble. It shows that lots of people want what they’re making, which is roughly the only thing that matters.

Re:A ChatGPT mistake cost us $10k by marginalia_nu on Sunday June 09, 2024 @10:58PM (#40629711)
Eh, I think it speaks fairly well for them.

On the one hand it does seem like a fairly inexperienced organization with some pretty undercooked release and testing processes, but on the other hand all that stuff is ultimately fixable. This is a relatively harmless way of learning that lesson. Admitting a problem is the first step toward fixing it.

A culture of ass-covering is much harder to fix, and will definitely get in the way of addressing these types of issues

Re:A ChatGPT mistake cost us $10k by hobs on Sunday June 09, 2024 @10:35PM (#40629587)
A mistake is interesting if the mistake itself or the RCA is interesting - using sloppy methods isn't really that interesting on its face.
Re:A ChatGPT mistake cost us $10k by Aurornis on Monday June 10, 2024 @01:01AM (#40630322)
> Better ten articles that have some useful information, than a single article that allows the commentariat to pile on and ruin your reputation.

Pile-on aside, the problem with this blog article is that it doesn't really have much of a useful takeaway.

They didn't even really talk the offending line in detail. They didn't really talk about what did to fix their engineering pipelines. It was just a story about how they let ChatGPT write some code, the code was buggy, and the bug was hard to spot because they relied on customers e-mailing them about it in a way that only happened when they were sleeping.

It's not really a postmortem, it's a story about fast and loose startup times. Which could be interesting in itself, except it's being presented more as an engineering postmortem blog minus the actionable lessons.

That's why everyone is confused about why this company posted this as a lesson: The lesson is obvious and, frankly, better left as a quiet story for the founders to chuckle about to their friends.

Re:A ChatGPT mistake cost us $10k by hunterrr on Sunday June 09, 2024 @11:22PM (#40629823)
These criticisms about engineering PR are too heavy handed. Great engineers solve problems and describe problems without finger pointing to place blame. In fact I think that the worst engineers I’ve worked with are the ones most often reaching for someone to place it on.
Re:A ChatGPT mistake cost us $10k by Kesty on Monday June 10, 2024 @03:20AM (#40631051)
CEO thoughts: "Oh post-morten are always well received, I should write one for that very really basic bug we had and how we took 5 days to find it, and forget to mention how we fix it or how we have changed our structure so that it never happen again"

Also the CEO: "remember to be defensive on reddit comments saying how we are a small 1 million dollar backed startup and how it's normal do to this king of rookies mistake to be fast."