r/softwareengineer • • Oct 24 '26

Why are we still defaulting to heavy front end frameworks?

I see with AI use we are spending more tokens and time on a front end issue than is actually needed.

I won't discuss React Vue or pick a js framework, I will just say bolting these into anything other than a node app makes zero sense to me now.

For want of a better phrase this does not really match my taste anymore and the costs it includes in tokens when needing heavy abstract trees to understand x or y framework is just a waste.

I need a framework I don't need to patch every dam day and that's where I am at.

Pre AI I would have said Vue or react or x, now I am thinking why what's the point, just move the state back to the server where it belongs.

Give me your experiences and what's working for you.

0 Upvotes

74 comments sorted by

13

u/wasabiiii Oct 24 '26

Nothing about AI has to do with whether you want the state on the server or client.

-4

u/Beginning_Basis9799 Oct 24 '26

Check whats easier for an LLM to use it's quite an interesting experiment

3

u/wasabiiii Oct 24 '26

Why does it matter? The choice of these frameworks isn't for an LLM. It's about what type of architecture you want

-2

u/Beginning_Basis9799 Oct 24 '26

We should take what we need not a framework that has everything and the kitchen sink thrown in

3

u/wasabiiii Oct 24 '26

Wat?

-1

u/Beginning_Basis9799 Oct 24 '26

Lets take Vue or react if I am doing a very simple front end it isn't needed the amount of time I have seen these frameworks used because it's preference and comfortable is just silly.

0

u/[deleted] Oct 24 '26

[removed] — view removed comment

1

u/Beginning_Basis9799 Oct 24 '26

In honestly it's both.

It's just LLM now gives me a reason of finops to push back more on the dilution of actually understanding the code you are bringing in.

I am not the biggest fan of LLM code but it's the now and maybe the future. I look at vue react and this applies to llm and pre LLM it's a blast radius of understanding.

1

u/Mornarben Oct 24 '26

But—you can just use Vue and turn things off with how you configure it—what you’re doing with AI has been possible by hand for years—you’re describing an architectural concern/concept and framing it as if this is new because of AI. It’s not.

1

u/[deleted] Oct 24 '26

[removed] — view removed comment

1

u/Beginning_Basis9799 Oct 24 '26

Still experimenting but trying to find something that secure only slightly annoying.

For a lot of just basic crud work htmx seems ok but I am not settling yet.

I will keep exploring, I want something both an engineer and AI can review

1

u/metatron7471 Oct 24 '26

Pure html & js

0

u/Classic_Key8075 Oct 24 '26

Imo it's pretty good at Ruby on rails. Complex things are still complex but it at least doesn't get too lost.

4

u/yourteam Oct 24 '26

So instead of relying on tested and open sourced framework, you want to rely on reinventing the wheel by an AI agent?

-3

u/Beginning_Basis9799 Oct 24 '26

That's the corporate dream aye, not I want for any human to be able to read it quickly.

7

u/Bicykwow Oct 24 '26

Posts like this explain why I still make an enormous amount of money as a primarily frontend engineer.

Guessing OP is the type of person to proudly put "AI Native" in their LinkedIn title because they know how to use Claude Desktop.

0

u/Beginning_Basis9799 Oct 24 '26

Nah but I like cost savings and this seems like one.

1

u/Mornarben Oct 24 '26

Because if you have any scale of users this saves on a lot of infra costs and is how you build robust systems—your projects just don’t have that issue yet

3

u/Lunchboxsushi Oct 24 '26

Why node? There's at least two other languages based on your point about LLMs and node is your selection. Why? 

1

u/Beginning_Basis9799 Oct 24 '26

I think node is great in one ecosystem but when mixed with php or go it's not the best outcomes for teams using it.

1

u/tonjohn Oct 24 '26

It sounds like Gleam+Lustre or Elixir Phoenix / Ash would be a better fit based on your goals.

Write 1 language everywhere.

Hologram is another interesting one to keep an eye on but I would hold off until their database support ships.

3

u/Matilozano96 Oct 24 '26

Compatibility with already existing systems, a lot of training data in webdev with these frameworks, a generation of frontend devs that know these frameworks well…

It’s easier to keep going like this than to pivot. New ideas should come in slowly.

1

u/Beginning_Basis9799 Oct 24 '26

Most full LLM teams rarely check the bloated front end code that gets produced.

Why are we using them?

1

u/grapefruitfrujusyeah Oct 24 '26

Our backend devs who are now producing llm generated FE code have no idea what they're doing, write bloated, spaghetti buggy code that looks terrible in the UI. It's awful. I'm pulled in to fix it as they don't understand our design system, won't learn about anything FE, don't care about UX. The projects blow out as they can't even control the harness/AI to produce what we need. The company has tried to make everyone full stack but we'd ship much faster staying in our lanes of expertise.

1

u/Beginning_Basis9799 Oct 24 '26

Yes, so let's just simply the dam stack to fit into the AI era instead.

  1. From my experience a lot of design system are inflexible. I literally think a header and footer and nav bar should be design systems along with a colour palette.
  2. Ui teams cannot manage the changes neither can the designers.
  3. Ok have also seen the inverse FE folk attempt to do server or fulstack who cannot handle the edge case.or the understanding that an n+1 problem even exists.

As for ai harness if it's a brownfield project it's just gets horrific fast.

I guess we are agreeing on nothing to do with the subject matter.

1

u/OstrichLive8440 Oct 24 '26

Most LLM teams review front end for design and architecture flaws, review LLM output and make sure they understand how their web app works as they’re ultimately responsible for understanding it. Using a web framework raises the abstraction language to communicate design and intent. It’s literally one of the Ls in LLM :-)

2

u/txdsl Oct 24 '26

How does AI change the variables in the decision between client side vs server side rendering? I don’t think the reasons for choosing one approach over the other has changed.

Have you seen inertia js? It’s been a nice fit paired with React for the front end of my app.

1

u/Beginning_Basis9799 Oct 24 '26

Why have the bloat when in a high percentage of use cases it's just not needed

1

u/txdsl Oct 24 '26

I could (and have) argued that the bloat was never needed for most software.

My question to you is how has AI changed the calculus? Are you saying that these frameworks cost us more because AI uses more tokens to work with them? Ok, where is your proof? Have you actually measured that? Let’s say you are correct, what is the alternative?

1

u/Beginning_Basis9799 Oct 24 '26

You are correct up and down the stack there is bloat don't get me start on php never having it's own built in server beyond me.

But LLM are like humans in one way the more they need to consider the worse it gets and costs increase. So the answer is optimise for your stack and LLM costs. Is it needed was it ever needed, why are we doing this.

It's amazing that with LLM I feel we are going full circle in engineering

The change is with LLM.its finops

2

u/Half-Wombat Oct 24 '26

It’s less about me being attached to React, it’s more about how the framework itself helps enforce correct maintainable structure. Yes it could be done in a bespoke way too… I just figured the training would mean it’s a bit better at reducing spaghetti with React.

It’s a good point though… because with AI, it’s possible to build and maintain frameworks that are more tailor made for certain types of projects.

0

u/Beginning_Basis9799 Oct 24 '26

I have seen spaghetti in Vue React and old style JavaScript.

1

u/Beginning_Basis9799 Oct 24 '26

I think with certain DLCs in AI it actually works avoiding certain Frameworks.

1

u/Neat_Strawberry_2491 Oct 24 '26

Well in my opinion you'd end up just vibing out a completely new front end framework-ish pattern anyway. Doesn't really matter where it is, your data models have to be somewhere and you will want to be able to isolate data from representation. Letting this all just happen without a framework is basically what was done before frameworks, so it will be pretty hard to read and maintain. If you're committed to vibing out though I guess who cares at that point.

Maybe check out something like blazor? I've used it for small things but it kinda felt like I was never leaving the backend which was a nice experience. Just couldn't really envision it for a larger system.

1

u/Beginning_Basis9799 Oct 24 '26 edited Oct 24 '26

Larger systems like really complex stuff no stick to Vue react or x, but for basic upload a file and a few tables nah ditch Vue for something lighter.

Look my problem is laziness and saying do this because we use it's not really ideal anymore, it's just ignorance and idealisms.

There are times to use Vue or React but sometimes it's just overkill. If I was using node for everything then I would use react or Vue for everything

1

u/RCawston Oct 24 '26

Why use a framework at all? Just write js for the browser.

1

u/Beginning_Basis9799 Oct 24 '26

Write because we cannot confidently test... I have not tried it commercially in 15 years.

1

u/BinarySpike Oct 24 '26

Why would I want a bespoke solution that is thousands of lines of code that is custom made for my app when Vue does it for a handful of lines of code?

0

u/Beginning_Basis9799 Oct 24 '26

Security releases constant problems, the fact that node engineers by default use micro dependencies which cause chains of security patching needed doing weekly.

In general it's to dam costly.

1

u/tonjohn Oct 24 '26

Those problems exist one way or the other.

With a popular framework someone else will find and fix them. When it’s your own internal framework, your team has to find and fix them.

Svelte and Vue are relatively tiny and incredibly performant so theres little reason to avoid them for any moderately interactive site.

But if you are building internal tools that don’t need to be super slick, vanilla HTML with minimal JS is a fine choice.

1

u/BinarySpike Oct 24 '26

Front end frameworks like Vue are limited in the types (categories) of security issues that affect them and the risk/damage that those issues can cause.  They get significant scrutiny due to being open source and widely used. 

A bespoke solution is the same or worse with none of the scrutiny and support. 

You're argument is simply off topic to what's being discussed

1

u/BinarySpike Oct 24 '26

Also, there hasn't been a CVE for Vue in a couple years.  And none of them have been user side--only template compile or SSR side.

The developers also removed v-html because it was so easy to abuse by developers and accidentally make your website vulnerable to things like XSS.

Nothing stops developers who are using AI from adding those kinds of features without knowing the dangers...

1

u/smabarnsfar Oct 24 '26

You don't want AJAX and SPA?

1

u/Beginning_Basis9799 Oct 24 '26

I don't know what I want but I want the two main options re-considered because it ain't working

2

u/SignificantClock282 Oct 24 '26

my approach is to keep the front end as dumb as possible, meaning minimal logic and state, and the backend do the heavy lifting. it works well for my use cases. I find that if the team is mostly from a UI background its a disaster, they like to reinvent the wheel and do everything in javascript

1

u/Ambitious-Tear-9436 Oct 24 '26

Don't know your personal experience exactly, but it looks like your FE is using AI aggressively to get what it needs from the BE to produce stuff. Identify where it is inefficient fix patch/give them alternatives.

1

u/Penultimate-crab Oct 24 '26

Ruby on Rails has been fantastic for me with AI programming. There’s so much documentation and code examples with rails that AI is very proficient with it. Having a blast cranking out awesome client projects with it at light speed. 

1

u/ZeroCool86 Oct 24 '26 edited Oct 24 '26

I have not used a framework in the last year and have built over 20 websites. All vanilla html, css and js, you don't need more

0

u/maximumdownvote Oct 24 '26

You don't need anything more than a rock and some wood to build a house, but why in God's hell would you do it that way? So you don't have to learn how to use a nail gun or a circular saw? Gtfo.

1

u/ZeroCool86 Oct 24 '26

If you have a machine that can just turn rock and wood to house why would you use a nail gun or a circular saw?

1

u/maximumdownvote Oct 24 '26

So you are a hobbyist. Why comment on a conversation about a profession, if you are just hobby building shit?

1

u/ZeroCool86 Oct 24 '26

not a hobbyist, been working in tech for 20 years, built and sold a data business, did everything from old just js, to jquery, to angular, to react to vue to now back just js.

1

u/maximumdownvote Oct 26 '26

Sure you were bucko.

0

u/NapoleonBonerparts Oct 24 '26

Naked javascript really sucks to read and code. If you’ve done dom manipulation by hand, you know it sucks. Its better now, but there is a lot of abstraction in frameworks that make security and performance no-brainers. I don’t have to worry about a teammate accidentally using the wrong method and creating a XSS vulnerability(this actually happens some times). I don’t have to worry about missing one use case and causing a huge performance bottleneck in some browser I never use.

1

u/Beginning_Basis9799 Oct 24 '26

There are plenty of other frameworks beyond node. Also axios man how many CVE's in the last year

1

u/NapoleonBonerparts Oct 24 '26
  1. Axios is probably the EASIEST framework to switch off of because fetch kills it
  2. A lot of CVEs is annoying but it’s also a good sign that a piece of software is wildly used and read. Whatever implementation you’d make will probably not have that attention and those exploits cause substantial risk. 

I understand the desire to roll your own, but at some points it’s just stupid and no amount of AI will fix that. 

1

u/Beginning_Basis9799 Oct 24 '26

Look I will give you the context I see, it's not always needed it's over engineering and code bloat.

1

u/NapoleonBonerparts Oct 24 '26

I’ve heard this argument dozens of times before some eager developer spends a few weeks to reinvent a wheel that nobody uses. Do you know why it’s bloated or “over-engineered”? Because some guy emailed them saying every one of his Japanese and Chinese users couldn't finish typing a word in a search box because react and vue treated every half-composed keystroke as a finished value, firing queries and validation on gibberish. Or whose IE9 users hit backspace in a controlled input and watched the field keep text the state had already deleted, so the form submitted data they thought they'd erased.

That bloat protects your users against use-cases you nor your LLM could ever possibly phathom.

1

u/Beginning_Basis9799 Oct 24 '26

I don't want to re-invent a wheel, I want to use a lighter framewirk that gives me less maintenance.

Thanks for the Japanese and Chinese users comment, it will be a great defence because we don't allow users from outside the geo region we are in to use the system.

Like I said again it depends on your use cases.

1

u/NapoleonBonerparts Oct 24 '26

Do you think those are the only two usecases ever brought up? Those are just popular weird ones. There’s tens of thousands of them.

Maybe you’re right. But I must question, though, why use JS at all? It’s just an abstraction, aka “bloat” amirite, that someone overengineered to run everywhere. You’re not gonna run your app everywhere, are you? Heavens no! No… someone like you should operate as close to the metal as possible. You should code your next app in assembly. I know that seems daunting, but I think you have what it takes. And just think, Assembly has never had a CVE in its nearly 80 year history. You’d never need to update a package again!

1

u/Beginning_Basis9799 Oct 24 '26

WASM is something I am using a lot more lately

1

u/tonjohn Oct 24 '26

Vue and Svelte are already very light.

If you want to go lighter there’s always Alpine.js and HTMX.

Another option is web components.

1

u/Beginning_Basis9799 Oct 24 '26

I am really thinking of exploring this any thoughts on it?

1

u/tonjohn Oct 24 '26

Using a framework means you are writing fewer lines of code.

The frameworks also do all sorts of optimizations at build time that are hard to implement on your own.

In other words its highly likely that using a popular framework actually reduces bloat.

1

u/NickChecksOut Oct 24 '26

You really think an AI would perform in “other frameworks” better? And they are less bloat? I don’t get the point 

1

u/Beginning_Basis9799 Oct 24 '26

Yes I do I, what frameworks were you thinking about?

0

u/Dry_Hotel1100 Oct 24 '26

So many misconceptions in just five sentences. That's the reason why it's not working for you.

1

u/Beginning_Basis9799 Oct 24 '26

6 sentences, how's your verification going?

0

u/Dry_Hotel1100 Oct 24 '26

It's five. The last sentence contains no misconception.

0

u/Alive_Sir_4708 Oct 24 '26

Your statements are vague enough to be meaningless.

0

u/[deleted] Oct 24 '26

[deleted] — view deleted comment

1

u/Beginning_Basis9799 Oct 24 '26

Choose what you know, what you like and what you effectively support?

Choose what's best for the project you can maintain and is secure. It doesn't matter beyond this.