r/webdev • • 18d ago

Agentic Coding: Bet on the Primitives

https://www.robinwieruch.de/agentic-coding-bet-on-primitives/
59 Upvotes

14 comments sorted by

43

u/electricity_is_life 18d ago

I did a lot of data viz work in my last job (like, a lot a lot) and I actually think this was true before LLMs as well. Chart libraries are good if you just want "a bar chart" and don't really care that much about the details, but as your needs get more specific doing it custom quickly becomes the better approach. Otherwise you soon find yourself fighting with the library and finding awkward workarounds for things that aren't implemented the way you need.

13

u/zlex 17d ago

Pretty much just becomes writing "plugins" that draw the whole chart.

8

u/actionturtle 17d ago

Otherwise you soon find yourself fighting with the library and finding awkward workarounds for things that aren't implemented the way you need

i have a troubled relationship with recharts

3

u/PickerPilgrim 17d ago

Oh yeah, 100%. I've used chart.js on quite a few projects but the conversation always goes, "We can add this feature for 40 hours work and we get to veto any design features that are incompatible with the library, or we can match your requirements exactly for 400 hours work on d3." 9 times out of 10 we go with the cheap way but sometimes we get to go deep in the weeds on d3.

7

u/Tasio_ 17d ago

This doesn’t feel all that different from a non-AI approach. Frameworks provide guardrails and make code easier to structure, understand and maintain. But when your requirements fall outside what a framework supports, and you need to extend it or work around its assumptions, those benefits can quickly disappear

13

u/hypercosm_dot_net 17d ago

If there's a library that's flexible enough to give you control of your branding, animation, and tooltips (the specific ownership item he points out), then it seems the rest of this is moot.

There's no good reason to "roll your own", and then have to maintain that, if the library allows for what you need (and is well maintained).

This is something that developers have always needed to balance — making decisions based on the tools available, and how well-suited they are for the project.

LLMs allow for a bit more capacity to own and maintain things that you might not have the capacity to do otherwise, but that is still adding work to the stack, maybe unnecessarily.

-1

u/TorbenKoehn 17d ago

There's no good reason to "roll your own", and then have to maintain that, if the library allows for what you need (and is well maintained).

I disagree. Especially in times of AI there is every reason to roll your own. History has shown that you're not safer when you bet on large, community-battle-tested libraries. In some ways you might even be easier to attack because you're more prone to supply chain attacks.

Advantage is, it does exactly what you need, when you need it, how you need it, perfectly tailored to you and what you're trying to achieve. Done are the times of Frankenplatforms. This framework here and this framework there and jQuery here and MaterialUI here and Shadcn there and Tailwind here and Bootstrap there bla bla bla

The only argument to not roll your own was always ever that you had to maintain it. Now, seems like 1. they are not maintaining the shit you use for free properly, either and 2. now you can easily maintain it, automatically if you like.

3

u/hypercosm_dot_net 17d ago

I hope small teams continue to punch above their weight.

It will be a great time for developers in a few years when all of these unmaintained projects suddenly need some attention, and managers realize their teams no longer have the capacity.

Thinking these things will automatically maintain themselves with a bit of automation is...amusing.

Bring on the tech debt I guess. I need a job.

1

u/TorbenKoehn 17d ago

But…they’ve been doing that for months now

-4

u/FlyingBishop 17d ago

LLMs allow for a bit more capacity

LLMs allow for tremendously more capacity. OP spells it out - he spiked two different implementations in an hour, things that probably would've taken a day or more each without the LLM.

2

u/winky9827 17d ago

This matches my experience recently as well. Some libraries provide everything you need, but many only get you ~80% of the way there and still require a moderate amount of work to get it right. If the library in question is mostly a wrapper around a base project, AI removes the grunt work of merely extending the base project to suit your needs. And you can skip the extra dependency. AI makes it vastly easier to do something you already knew how to do anyway but avoided previously because of the extra time required that wasn't budgeted for.

2

u/omega996 17d ago

the article frames this as an llm question. the real shift is ownership: custom chart code is now cheap to generate and expensive to change six months later. a library moves that cost into a changelog you can at least read.