Remix.run Logo
▲ globular-toast 4 hours ago

You should have been using your brain to avoid doing dumb things like CRUD or upgrading components anyway.

▲sevenzero 4 hours ago | parent | next [-]

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.

▲GrollingGrakbor 3 hours ago | parent | next [-]

It is absolutely crazy to me that programmers will say things like this.

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

▲sevenzero 2 hours ago | parent [-]

You don't understand CRUD complexity if you think its easy to automate CRUD away.

▲GrollingGrakbor 7 minutes ago | parent [-]

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.

▲globular-toast 3 hours ago | parent | prev | next [-]

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.

▲sevenzero 3 hours ago | parent [-]

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.

▲zachdaniel 13 minutes ago | parent [-]

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?

▲cess11 3 hours ago | parent | prev | next [-]

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.

▲sevenzero 3 hours ago | parent [-]

This is covered by my configuration overhead argument though. Afaik all of ash is just configuration everywhere. Gotta check out the Postgres one though.

▲cess11 an hour ago | parent [-]

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.

▲bramblerose 3 hours ago | parent | prev | next [-]

Rails. Django. Basically everything ActiveRecord like. But it came with it's own set of problems, just like the AI crud does.

▲twotwoone 3 hours ago | parent | prev [-]

[dead]

▲imtringued 3 hours ago | parent | prev [-]

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.