News for hackers. Stuff that matters.
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.