upvote
Please elaborate on how to avoid upgrading a component to a new version with breaking changes?
reply
What pre AI existing CRUD solution did we have? It's not like there's any good solution out there that doesn't come with a configuration overhead that it almost makes no difference of just writing the CRUD stuff yourself.
reply
It is absolutely crazy to me that programmers will say things like this.

You can literally write the solutions. Like, that's your job.

reply
You don't understand CRUD complexity if you think its easy to automate CRUD away.
reply
But I do and I have. Other people have done it too, so you don't even need to do it yourself. There are libraries like Scala's Shapeless that give you the tools to deal with large swathes of these problems.

CRUD cannot be as complex as you're claiming, because if it was, you couldn't automate the work with AI either. A prompt has what, 200 bits of entropy? If AI produces more "informational value" than that per prompt, it either means the AI is making assumptions because you underspecified (which either won't matter so it had no "informational value" after all, or are gonna bite you in the butt later), or you were working inefficiently. It's probably a bit of the former and a lot of the latter.

Whether someone should have automated crud pre-AI is a different question, because that also takes time, and their employer probably didn't want to bill the client for it. But I'd wager most webdevs wouldn't ever get that far, because they couldn't write something like Shapeless even with infinite budget. It's not a budget issue, it's that they lack the mathematical (algebra) foundations to do it.

reply
So I was curious about this mythical CRUD-solver and it looked… interesting, but literally none of the problems CRUD apps pose to me are “solved” by it. These days I am often not sure anymore what everybody means so I suspect it’s just me, but still. Just shoving data into structures is not the nasty part.. but I guess if only the data shoveling part is what “CRUD” means then sure. But does this magically generate proper responsibility boundaries and sane APIs? Does it version these APIs? How? Dates, currency, time? Does it propose a sane and workable authn/authz design? Database state, migrations? If so, I’ll love it. Yeah I know what you’ll say, we got libraries. Yeah. Like Socrates said, mo libraries mo problems.

I found the parent argument resonating with me. All “solutions” to CRUD I came across just cram the complexity of it somewhere they happen to think it should be and that’s fine I guess but I am not so sure about the “solving” part.

There is also that nasty reality of CRUD systems being as much social as they are technical, but I’ll see myself out now..

reply
What do you define as "writing the CRUD stuff yourself"? Back in the day when I first learnt PHP I used to do SQL string interpolation. That is probably what you mean by "doing it yourself", but of course I'm still leaning heavily on a SQL database to do the actual CRUD for me. You probably don't mean writing bytes to hard disks yourself, right?

Frameworks like Django and Rails do basically everything for you. You don't have to touch a line of SQL, even for migrations! I struggle to see how, for just CRUD, it can get any easier than Django.

People used their brains to build Postgres and Django to avoid having to "do CRUD" over and over. Anyone doing a Django site wasn't spending the time "doing CRUD", they were spending the time thinking about business logic, firing off async tasks etc. All stuff that you can do once the basic CRUD problem has been solved.

reply
Hmm I mean it in a code over configuration way. If you have to write code for CRUD that's good for me, as I am able to introduce all kinds of nitty gritty rules to my objects and I know how to do that. As soon as someone comes along and tries to sell me their cool CRUD tool, where everything is now just a configuration, I dislike it, as it complicates things.

A concrete example would maybe be using Ecto (Elixir), with changesets and code where I can introduces all kinds of object specific rules without putting too much thought into it compared to Ash, where everything now is a configuration. Ash is using Ecto under the hood and its probably possible to do all the stuff I need there as well, but I'd have to research on how to much longer.

reply
Why is it that agents magically solve the problem of writing the under-the-hood code but not the "looking at the docs to find out how to do a thing" problem?
reply
The question is, why should I start to use some random dependency that allows CRUD by configuration if I can just generate the thing I need?
reply
https://ash-hq.com/ and https://docs.postgrest.org/en/v16/ comes to mind.

I've personally scripted out full CRUD on top of an existing database, via automatic reverse engineering of models with the PHP Symfony toolset and crude but simple string mangling.

One of the first things I teach juniors is how to bridge from stdlib string stuff to code generation so they can take some simple, trivially generated data source and crap out a bunch of code files that would take hours to write by hand.

reply
This is covered by my configuration overhead argument though. Afaik all of ash is just configuration everywhere. Gotta check out the Postgres one though.
reply
The reason I mention Ash is because it is very succinct compared to similar solutions elsewhere, so I think it ought to get an exception to the overhead classification.
reply
Rails. Django. Basically everything ActiveRecord like. But it came with it's own set of problems, just like the AI crud does.
reply
Most people don't get paid to build frameworks or libraries. Spending time on a general solution means you are slower than your peers to solve a given task.

That's a budgeting issue on the manager's side, which is why it is so strange that we're being told that we get to be managers without the authority to decide the budget for a given task.

reply