• khasan222 a day ago

    Ngl I’m reading this article after having used ai to build a beautiful front end that is pixel perfect.

    Yes ai can’t see, it only understands numbers. So tell it to use image magick to compare the screenshot to the actual mockup, tell it to get less than 5% difference and don’t use more than 20% blur. Thank me later.

    I built a whole website in like 2 days with this technique.

    Everyone seems to have trouble telling ai how to check its work and that’s the real problem imho.

    Truly if you took the best dev in the world and had them write 1000 lines of code without stopping to check the result they would also get it wrong. And the machine is only made in a likeness of our image.

    PS. You think Christian god was also pissed at how much we lie? :)

    • mindfulmark 23 minutes ago

      We built the frontend for https://brooked.io and https://app.brooked.io using only prompting so I agree!

      • 0x3f a day ago

        It's hard to interpret comments like this because we all have different standards and use cases. So it would really help if you could link to it. Even in a roundabout way if you want to avoid the impression of self-promotion.

        • bryanhogan 9 hours ago

          Please share what you created! I think people have very different views for what is a good interface, or a tolerable one. I think as a front-end developer and designer I notice a lot of problems most people don't care about.

          • thejazzman 8 hours ago

            https://poolometer.com

            I built this frontend with Sonnet 4.5 last Fall and I’m about to “launch” it

            I used only prompts, but those prompts included ChatGPT’s research on Memphis design ;)

            Using codex for front end design is like asking the valedictorian mega nerd to paint your portrait. Gemini and Claude are both artists.

            • ejjer 25 minutes ago

              Why don’t these llm’s just allow you to pick from a set of standardised templates and then allow you to customise it from there in terms of both functionality and design?

              What you have got as output is what I also get as output from llm’s - they suck the soul out of everything. Which is fine in the right context but that shouldn’t we as a species strive for in design imo.

              • jeixjejdjwjx 7 hours ago

                Sorry to be the one to break it to you, but no, you did not design a website just fine with AI. It’s not even just “good”. It’s average. Painfully average, to the point of it being easily mistaken for a scam.

                Very bad results—as expected from an AI.

                Nothing to brag about here.

                • NewsaHackO 19 minutes ago

                  I completely disagree. Making a average website is the goal of most businesses that are selling an actual product. His website looks modern and welcoming and does not distract or take away from the actual content. This exactly what most people should aim for. Some actual constructive criticism is some o the icons in the example log mood look weird on my phone, with really small emojis overlapping the face emoji

                • metaketa 7 hours ago

                  Though it's somewhat clear from the use of tiles with the icon colours and the choice of border colours and all, I quite like it. I would have expected the colour theme from the navbar to be repeated because that's a more non standard palette. I would do that, maybe use a different tile layout (use a tile shape resembling a pool tile? Or even a rectangle signifying a typical pool shape) and create some vector icons for them using the navbar colour scheme.

                  • lukapetko 3 hours ago

                    I see that you haven't finished the Automatic Sensor Automation. If you need help with that, contact me, I have experience with embedded product development and I like working on interesting projects :)

                    • pants2 8 hours ago

                      Sorry but this website screams AI slop to me. Very sparse, lots of cards and random icons and rounded corners, looks like a few messages in to a Claude code session

                      • camillomiller 6 hours ago

                        Well it works but it also looks like every other generic bootstrap based website with not even an original palette choice. Great for a project like this, unusable for any client work

                      • sixhobbits 6 hours ago

                        I started with a boilerplate but AI has been huge at letting me get what I want in terms of frontend building when I was never talented at design or css.

                        I built https://bridge.ritza.co (demo@example.com username and password if you don't want to sign up) as a trello/linear replacement without looking at a single line of code and it's both good enough for me and doesn't have the obvious AI frontend 'look' as it was copying from the starter.

                        • boron1006 5 hours ago

                          > doesn't have the obvious AI frontend 'look' as it was copying from the starter.

                          Check out the other reply and scroll down a bit…

                          • sixhobbits 4 hours ago

                            I mean the app itself, not really the landing page if that's what you're referring to?

                      • bananzamba 21 hours ago

                        The last time I tried to make AI built a drag and drop UI, it failed miserably. Things wouldn't line up or even didn't work at all. Any tips for that?

                        • codyswann 18 hours ago

                          Ask it to take control of a browser using something like Playwright and use the UI itself like an end user would and evaluate whether it is a good experience.

                        • meisterfeister a day ago

                          Yes can you share the front end that you created using this technique?

                          • mattrighetti 21 hours ago

                            > Ngl I’m reading this article after having used ai to build a beautiful front end that is pixel perfect.

                            Was about to say the same thing

                            • enejej 18 hours ago

                              What’s the point in saying you built something beautiful and not showing it?

                              Share it. I used Claude earlier to test out its design capabilities and what I got as output was flat and tasteless.

                              • f30e3dfed1c9 17 hours ago

                                Software developers have been calling their stuff "beautiful" for years now. It's bullshit. Almost none of it is beautiful. They just mean it looks like whatever is trendy at the time.

                                • ecshafer 9 hours ago

                                  The Skeuomorphic stuff in the late 90s was beautiful.

                            • feverzsj a day ago

                              If you are really good at something, you'll find AI sucks at everything.

                              • nxpnsv a day ago

                                I think this correct it’s mediocre at a lot. It’s only 10x when you don’t know what you’re doing or doing something simple.

                                • danielbln a day ago

                                  It's also more often than not good enough, which for a specialist is bad, and for most everyone else is absolutely sufficient.

                                • sph 5 hours ago

                                  Corollary: if you are bad at everything, you’ll find AI to be the greatest invention in the history of mankind

                                  • nik282000 2 hours ago

                                    I am seeing this a lot.

                                    The people I work with who find "AI" makes every part of their life easier were just bad at everything to begin with. The people who find "AI" making specific tasks easier have specialized skills and were previously relying on less specialized people for some support.

                                  • azangru a day ago

                                    > If you are really good at something, you'll find AI sucks at everything.

                                    Nah, just at that something :-)

                                    • daveguy 20 hours ago

                                      I think the point is, there's always someone good at what you are evaluating. Anyone with expertise in the domain will recognize how back it sucks in any given domain.

                                      Don't get me wrong, AI can definitely be used as a tool by someone who knows what they're doing to avoid boilerplate. But anyone using it in a domain they aren't already an expert in will unknowingly accept AI f ups.

                                      • lagrange77 4 hours ago

                                        Exactly. And this seems more and more to be an inherent property of AI, which is kind of calming.

                                        • ejjer 21 minutes ago

                                          If we go one step further… this is why we buy stuff from other people and firms - because they specialise in stuff that we can then allocate resources on stuff that we are better at ourselves.

                                          Henceforth the idea that all these SaaS firms disappear due to firms replicating their products internally is stupid.

                                    • codyswann 18 hours ago

                                      This doesn't make sense. I think you mean "If you are really good at something, you'll find AI might not be as good as the something you are really good at"

                                      • BoggleOhYeah a day ago

                                        LLMs are just replacing consultants as the #1 generator of sloppy code.

                                        • locknitpicker 7 hours ago

                                          > LLMs are just replacing consultants as the #1 generator of sloppy code.

                                          The "consultants wrote sloppy code" is one of those memes that never die.

                                          The only thing that differentiates consultants from you is the contract type. All broad strokes accusations are just a consequence of in-house employees feeling threatened by their presence and having a vested interest in portraying themselves as infinitely better than any prospective replacement. You also see the same attitude in junior devs who complain that everyone else's code is shit, but the mess they themselves created is always justifiable and understandable.

                                          If you were moved from your project right now and you placed someone at your spot under probation, I will guarantee that your work would be extensively criticized for being an unmaintainable pile of hacks.

                                        • glouwbug a day ago

                                          The majority of humans are average, as is the training set

                                          • amelius a day ago

                                            They use a curated training set.

                                            • lagrange77 4 hours ago

                                              Curated by average people in most domains.

                                          • locknitpicker 7 hours ago

                                            > If you are really good at something, you'll find AI sucks at everything.

                                            I think it's the other way around. AI amplifies your software development skills. If you suck at software development, AI will follow your prompts and feedback and of course it will output an unmaintainable mess that barely works.

                                            Here we are, listening to people who can barely put together a working website complaining that AI can barely put together a working website.

                                            • adilkhanovkz a day ago

                                              I cant even actually receive good essay from it and still writing each word myself.

                                              • TrackerFF a day ago

                                                Before I switched over the a career in tech, I made my living from music - playing live, session work, etc.

                                                Honestly, I'm probably one of the biggest skeptics when it comes to GenAI - but at least for music, the recent models (as in the past year) do not suck. They are actually really, really good for what it is.

                                                I have yet to hear anything truly original produced by those models. They seem to converge to the mean, and end up sounding very commercial, very average sounding - but in the sense of average "professional music". Suno can generate music which would have taken real people years to learn, thousands of dollars of equipment to make / produce, and pretty much ready for airplay - most listeners will not bat an eye.

                                                Hell, these "AI artists" have been booked to festivals, since people can't hear the difference, and are enjoying the music.

                                                I figure it will go the same way in other fields. The average consumer loses track of what's human made and what's AI made, and frankly won't care. The people "left behind" are the artists, craftspeople, etc. that are frustrated it came to this point.

                                                • unfitted2545 a day ago

                                                  Rather than an existential threat, I could see it becoming it's own genre rather than infecting every other genre - when in the future people collectively realise it's kinda bad but has it's place as an almost retro aesthetic.

                                                  Our idea of nostalgia was not that long ago. Also it could be generated on open weight local copyright free models that are super efficient in the future :P

                                                  • dyauspitr a day ago

                                                    There have been plenty of those is it AI or a real person music tests on the street you can find on YouTube. Almost no one knows which one is AI. There’s nothing there to be able to put them in different buckets.

                                                    • WarmWash 21 hours ago

                                                      People genuinely believe that a "trust me bro" system of denoting use of AI is viable approach to the problem.

                                                      • unfitted2545 21 hours ago

                                                        I mean I go to gigs of people I like, it's not hard to work out if someone is real if they're on stage/meeting up with fans afterwards

                                                        • dyauspitr 6 hours ago

                                                          You could probably put a bunch of AI music out to see what bites and then create a band post AI success that just plays what the AI was playing.

                                                  • cs02rm0 a day ago

                                                    > They seem to converge to the mean

                                                    I think that was the point being made; if you're looking at it from the perspective of being really good at something, its tendency towards an averaged result is substandard.

                                                    • mstade 21 hours ago

                                                      I think this probably says more about music in general and the long tail of people who think good enough is just spectacular, than to the brilliance of LLMs. Most music, just like most art, isn’t particularly original. It’s a shocker, I know, but there it is. Doesn’t mean it’s bad, just not particularly original.

                                                      Copying something that exists isn’t particularly difficult. It may require immense skill and incredible dexterity in the case of some musical instruments, but it doesn’t really require much more than time, patience and the ability to follow instructions. The blueprint already exists. With LLMs we now have the ability to skip the time and patience parts of the equation, we can produce mediocrity more or less instantly.

                                                      I don’t see this as particularly different from what happened at the turn of the last century and beyond, with machines being able to sow faster, carve wood and metals at a higher pace and precision, moving folks and goods between geographical points faster than ever before, etc. etc. It’s not much different from the IKEAs of the world making mediocre copies of brilliant designs, making fortunes selling to the large masses that think good enough is just great. Because honestly man, most of the time it probably is.

                                                      I’m not surprised people go to concerts to hear a recording made by an LLM either. People have been going to see DJs sling records for decades. It’s not the music, or the artist, it’s the community. Beyoncé is an amazing singer, but people don’t necessarily come to her shows to see just her, they come to see everyone else. They might say they want to see her, but they already have a thousand times in tickelitock and myfacespacebookgrams. They come to feel connected to something, to experience community.

                                                      LLMs are incredibly good at churning out stuff. Good stuff, bad stuff, just a ton of stuff. Nothing original but that’s ok, most things pre-LLMs weren’t either. We just have more of it now, and fewer trees. The creatives that are able to harness these tools will be able to do more with less. (Ostensibly at least, until the VC subsidies… subside.) Because they are creative they might be able to form an original idea and string together enough mediocrity to realize it. They’ll probably get drowned out in a sea of mediocre copies in the end, but that’s just the same as it always was. It’s just faster now.

                                                      The platform owners and hardware manufacturers will remain king until the technology can run on my TI calculator, maybe we’ll get there before the VC money runs out. No wonder Nvidia’s been killing it. Creativity and originality will return once this bubble bursts I’m sure, the world has this amazing ability to correct itself, even if violently so at times. Or we all die perhaps. Either way, all we can do I suppose is ride this wave of mediocrity into the sunset. :o)

                                                    • tainttickler a day ago

                                                      No you don't understand, AI is VERY BAD at front-end and CSS to the point you cannot use anything.

                                                      It's not passable even slightly.

                                                      Everybody with experience knows that FE has always been "harder" than BE - but BE the stakes are higher since it's the business. FE is often "just UI" and despite that being very important too, you can throw it away and start over a lot easier with a UI than you can with a BE platform.

                                                      I digress, AI sucks fucking dick at UI.

                                                      • mewpmewp2 21 hours ago

                                                        What is an example UI that AI would fail to create?

                                                        • dyauspitr a day ago

                                                          Google Stitch is pretty awesome at front end layouts.

                                                      • Zigurd a day ago

                                                        After years of writing native code for mobile apps I'm using Flutter, and finding that, if you do things step-wise, and check in intermediate results so you can easily roll back failed experiments, agent-assisted coding can accelerate your front end coding substantially, and you can deliver more polished results instead of obviously demo grade visual results that need refinement. And that makes it easier to communicate with your non-coder colleagues.

                                                        • Gualdrapo a day ago

                                                          If AI really sucked at front end I'd have a job right now.

                                                          • skillina a day ago

                                                            That assumes all companies care about providing a good front end experience. Many do not. Many are actively hostile to their users.

                                                            • dreis_sw 2 hours ago

                                                              If the economy wasn't completely broken you'd have a job right now.

                                                              • the_gipsy an hour ago

                                                                In general, AI is not replacing developers yet. It's a convenient excuse to fire people for other reasons, and to pay lower wages.

                                                                • squidbeak an hour ago

                                                                  If AI is being used to lower salary burdens, it categorically is partially or wholly replacing developers.

                                                                  Meanwhile, elsewhere in this discussion, you can read examples of people who have used AI entirely to build their product. Previously they'd have had to hire a developer or become one themselves. This suggests to me it is indeed replacing developers - just not where you are choosing to look.

                                                                  • the_gipsy 13 minutes ago

                                                                    No, it's the economy that is shifting and the reason developers are getting fired. This causes wage lowering. AI is the excuse that let's companies corporate-speak around the economy.

                                                                • nik282000 2 hours ago

                                                                  If management could tell the difference between a good product and some fragile slop they wouldn't be in management, they would have a productive job.

                                                                • coder68 a day ago

                                                                  AI is much better at front-end than me, it has really enabled me to build visual apps as a normally backend/ML guy.

                                                                  • faangguyindia a day ago

                                                                    Ai ain't gonna perform at level of top front end designer but you will get you halfway at significantly less cost.

                                                                    • totalwebtool 16 hours ago

                                                                      Exactly, it will do a decent job with designs using an established component library or design system. For most/many sites and web apps it will be better and faster than trying to design from scratch. There will continue to be a place for highly custom, unique designs but most smaller sites don't need to start there.

                                                                    • janpeuker 11 hours ago

                                                                      I don’t 100% agree with the “AI can’t see” because in a Ralph-loop against screenshots, it basically can (inefficiently). But more importantly I do find it generally curious how bad even frontier models are in spatial thinking. Say “Align these right to left unless it crosses the center” or “Keep this box always visible and collapse X to make space” and all hell break loose - maybe it might work but in an extremely slow, costly and tedious process.

                                                                      • darzu a day ago

                                                                        Does this website run at 10fps for anyone else? I'm on a mac M4 w/ safari. Really doesn't help the author's point.

                                                                        • lelandfe a day ago

                                                                          Wow, it's got some issues on Chrome (dropped frames on scroll) but Safari is another level. Selecting text takes time. Looking at Activity Monitor, I see "Safari Graphics and Media" using 200% of my CPU even at rest.

                                                                          A quick profile on Safari shows some layout recalc happening regularly, but surely that shouldn't cause this bad of perf...

                                                                          The last time I found something like this, it was because of 100's of box-shadows.

                                                                          Edit: Sure enough, this cures Safari:

                                                                              *, *::before, *::after { box-shadow: none !important; background: none !important }
                                                                          
                                                                          It's a combination of box-shadows and gradients.

                                                                          Edit 2: Ah, they're using shadow DOM for the img reflection, so we can't affect it. Good gravy is the shadow DOM stuff overwrought, it's 87 elements all told, just for one img.

                                                                          • photon_collider a day ago

                                                                            I thought it was just me. I'm running a M2 MacBook Pro and scrolling down the article on Safari is quite stuttery.

                                                                          • rgoulter a day ago

                                                                            My first instinct reading an article (especially one about LLMs) is to scroll down to see the structure..

                                                                            Anyway.

                                                                            Do people get the impression that LLMs are worse at frontend than not? I'd think it's same with other LLM uses: you benefit from having a good understanding of what you're trying to do; and it's probably decent for making a prototype quickly.

                                                                            • christophilus a day ago

                                                                              Dunno. It’s really good with Preact + Tailwind. And I have to say that I think most problems can be solved this way and don’t require a special one-of-a-kind UI. In fact, the fewer special UIs I see, the better. I prefer standardized patterns unless they truly don’t fit a domain.

                                                                              • linzhangrun 9 hours ago

                                                                                Is AI bad at frontend work? Perhaps if your page has some special aesthetic design constraints, reaching the realm of "art," and needs to follow a design mockup at the pixel level, then maybe that is true.

                                                                                But unfortunately, the vast majority of people's pages are not like that. They just need a page that works. Ease of use and visual polish are both more advanced goals. And frontend pages written by AI—with only a bit of guidance from prompts, not even necessarily very good prompts (though of course precisely defined CSS styles and similar details will naturally produce much better results)—can end up far more polished and complete than what they would have written themselves.

                                                                                Just look at the frontend work people made with Claude Code within only a few hours after the Claude Code source leak: https://news.ycombinator.com/item?id=47597085#47598853

                                                                                Or look at what frontend pages written in the pre-AI era were like. For example, Debian's: https://www.debian.org/index.zh-cn.html

                                                                                Or SQLite's: https://sqlite.org/

                                                                                Here is another example: the official FreeBSD website: https://www.freebsd.org/

                                                                                There are so many examples that I do not even need to pick them at random. These are at least world-famous major projects, and while their page design and practicality are not bad, they certainly cannot be called refined. As for the many much worse websites out there—sites that are genuinely painful to use—those are everywhere. Government websites are an obvious disaster zone. Or just look at the Japanese internet.

                                                                                Do not have unrealistic fantasies about the skill level of most frontend developers. In fact, I believe that among frontend engineers as a whole, if we ignore efficiency and look purely at display quality, Claude is already good enough to rank at least in the top 5%—and that is probably still an underestimate.

                                                                                I am in China, and in the past month I have heard two news stories: two well-known companies—iFlytek and NetEase—laid off all of their frontend staff and instead had backend engineers use Claude to generate the frontend.

                                                                                I am not a frontend engineer myself, and it is beyond doubt that without the help of LLMs, the visual quality of the projects I write would be much worse. Not to mention building Windows native applications that actually fit Fluent guidelines despite having absolutely no prior WinUI 3 background.

                                                                                • bryanhogan 8 hours ago

                                                                                  > Just look at the frontend work people made with Claude Code within only a few hours after the Claude Code source leak: https://news.ycombinator.com/item?id=47597085#47598853

                                                                                  I mean, yes look at the vibe coded sites people made after the second Claude Code leak! They are horrible, there are so many issues with them. Look at the existing comments some people with front-end / design knowledge made there.

                                                                                  Just because bad website existed before AI does not mean we should be happy to pump out more bad websites with AI.

                                                                                  • linzhangrun 6 hours ago

                                                                                    However, it is obvious that if it were humans, even several hours would clearly not be enough time to create not only a visually stunning website but even a basic one, such as the pure text site introducing Lua itself (https://www.lua.org/manual/5.5/) (which achieves such visual presentation by uniformly using a set of templates designed by Lua itself)—that's very difficult, isn't it? Given the author one or two days, I believe most those detail issues mentioned in the comments could be fixed. Most problems stem from the "rush to release a half-finished product within a few hours to gain traffic" approach. Of course, such impatience is a common issue in many VibeCoding projects, like OpenClaw, but this is not a problem with AI's capability to write front-end code.

                                                                                    • bryanhogan 6 hours ago

                                                                                      I mean, there's a fundamental missing understanding of how to build a coherent design, then there's also the problem of just poor implementation such as the animations.

                                                                                      The Lua site has some problems as well, like an uncessary border, text size and spacing, even when it's this minimal. You can get much faster and better results from using or taking inspiration from something like Astro Starlight or UnoCSS

                                                                                      Astro Starlight: https://starlight.astro.build/

                                                                                      UnoCSS: https://unocss.dev/

                                                                                      But of course, I agree that with AI you can create websites much faster, but it doesn't replace the knowledge needed to build a "good website".

                                                                                      • linzhangrun 5 hours ago

                                                                                        Yes, that is what I mean: most front-end work does not require exceptional creativity or especially polished visual effects. Many people comment that AI-generated pages are extremely mediocre, but that “mediocre” result is already quite good in practice. In the software-related examples I mentioned, whether it is Debian, FreeBSD, SQLite, or Lua—and even Python’s official site, which I would already consider one of the better examples in this category—the visual quality clearly does not reach the same level as the supposedly “mediocre” output generated by AI.

                                                                                        These are already some of the best projects in the world. At least their front-end interfaces still show traces of a coherent design language. As for what the broader landscape looks like, I do not think that needs much explanation. This is not really a matter of capability. It is simply that, before AI, people were generally unwilling to spend more effort on these pages. For people in the pre-AI era, this was already good enough.

                                                                                        Of course, websites for front-end-related tools tend to look better. Besides the two examples you mentioned, sites like Vue and Bun also look quite good. Even so, I do not think they necessarily have any significant visual advantage over what Claude generates.

                                                                                        Let’s return to the title: “Why AI Sucks at Front End?” Does Claude produce genuinely awful page designs? If so, then are not all the examples above—and many, many more—also quite awful by the same standard? That alone is enough to challenge the premise of the question. To criticize AI-generated pages for “lacking innovative design” and being “too mediocre” is really an overly rarefied standard. It forgets what most of the world’s front-end actually looks like, does it not?

                                                                                        • linzhangrun 5 hours ago

                                                                                          Suddenly remembered, isn't Hacknews itself the best counterexample of frontend design? Deliberately minimal styling to ensure content focus, lol :P I believe generating https://news.ycombinator.com with Claude should be a piece of cake.

                                                                                  • fny 21 hours ago

                                                                                    Aside from the obvious "AI can't see" criticism, AI sucks at frontend because frontend sucks. Why does frontend suck? Churn.

                                                                                    To quote the article:

                                                                                    1. "It trained on ancient garbage" which is the by product of massive churn and this attitude leads to even more churn

                                                                                    2. "It doesn't know WHY we do things" because we don't either... even the paradigms used in frontend dev have needlessly churned

                                                                                    My fix? I switched from React/Next to Vue/Nuxt. The React ecosystem is by far the worst offender.

                                                                                    • derwiki 20 hours ago

                                                                                      What about plain JS without React or another framework? I don’t do much front-end these days but I’d love to toss out as much front end-complexity as possible

                                                                                    • bushido a day ago

                                                                                      Design is an interesting beast.

                                                                                      Good design is not always logical. Color theory, if followed, results in pretty bad experiences. And interestingly, good design can't always be explained in a natural language.

                                                                                      Main thing is, it's very hard to get AI to have taste, because taste is not always statistically explainable.

                                                                                      The best I've gotten to is have it use something like ShadCN (or another well document package that's part of it's training) and make sure that it does two things, only runs the commands to create components, and does not change any stock components or introduce any Tailwind classes for colors and such. Also make it ensure that it maintains the global CSS.

                                                                                      This doesn't make the design look much better than what it is out of the box, but it doesn't turn it into something terrible. If left unprompted on these things, it lands up with mixing fonts that it has absolutely no idea if they look good or not, bringing serif fonts into body text, mixing and matching colors which would have looked really, really good in 2005. But just don't work any more.

                                                                                      • djeastm 21 hours ago

                                                                                        I thought reinforcement learning with human feedback was meant to get that quantification of "taste"

                                                                                      • hmontazeri a day ago

                                                                                        Kimi k2.5 has been so far the best model for frontend. At least from my experience so far

                                                                                        • jdmoreira 21 hours ago

                                                                                          Humm... better than Opus 4.6 or 5.4?

                                                                                          What are you using for the frontend? React component libraries?

                                                                                        • jncfhnb a day ago

                                                                                          Imo front end is what it’s best at.

                                                                                          • NewsaHackO 26 minutes ago

                                                                                            It really is, especially with frameworks. The author post reeks of feeling threatened by AI encroaching on his job, especially with the weird AI digs

                                                                                          • Zeff84 a day ago

                                                                                            Sure, but most companies don't seem to value Front End

                                                                                            • vaylian a day ago

                                                                                              Really? Front End is the customer-facing part of the web site. It's also the part of the stack, that non-technical people, including management, have opinions on.

                                                                                              Or do you mean something else?

                                                                                              • netghost a day ago

                                                                                                They might have opinions about it, but look at the pay for frontend engineers at the same company. It's not uncommon to see the same seniority be 20% lower than a backend role.

                                                                                            • WarmWash 21 hours ago

                                                                                              >It's notoriously bad at math,

                                                                                              If you are going to criticize LLMs for being out of date, at least make sure your understanding isn't out of date.

                                                                                              • schwede 8 hours ago

                                                                                                Isn’t this still true for the large language models and math is detected and handled by an external tool? Anything you can give as a source for the latest state of the art?

                                                                                              • rboyd a day ago

                                                                                                double down on betting your career on being a css expert? what could go wrong

                                                                                                • PaulShomo 15 hours ago

                                                                                                  Agreed on AI limitations in originality, but the industry sucked at UIs for so long, my expectations are low. I’m just hoping for widespread use of models that take the viewpoints of newbs for UI testing.

                                                                                                  • TexanFeller a day ago

                                                                                                    I'm a backend dev and I'm always hearing about how LLMs are dramatically better at frontend because of much more available training data etc. Maybe my perspective isn't as skewed as I've been led to believe and LLMs need close supervision and rework of their output there too.

                                                                                                    • 0x3f a day ago

                                                                                                      I would trust an LLM with backend much more than front-end. Especially if we're talking monolithic and good type system. Ideally compiled. When I say trust I mean it's not going to break the user-facing API contract, probably, even if internally it's a mess. If you let it do front-end blind, it will almost certainly embarrass you if you care at all about user experience.

                                                                                                      • viktorianer 2 hours ago

                                                                                                        Rails is a good example of why. One correct place for migrations. One expected controller structure. Validations on the model, callbacks with a defined lifecycle. When the framework defines where things belong, you can write automated rules that catch bad AI output: "no business logic in controllers," "no conditional assertions in tests." Each rule works because Rails narrows what "correct" means.

                                                                                                        Frontend has no equivalent constraint. A component can be structured a hundred different ways, and "does it look right" requires vision the model does not have.

                                                                                                        • clickety_clack 21 hours ago

                                                                                                          If you do backend blind, it will also almost certainly embarrass you. I’ve never had an experience beyond the most basic crud app where I didn’t have to somehow use my engineering experience to dig it out of a hole.

                                                                                                          • 0x3f 21 hours ago

                                                                                                            Works mostly fine for me on Rust backends. As long as I'm willing to accept tight contracts at the edges with spaghetti in the middle, or otherwise gate approval for everything it does.

                                                                                                            If I want good abstractions, sure, I can set up approvals and babysit it with reprompting, because it will do stupid things that an experienced engineer wouldn't. But the spaghetti also works in the sense that it takes the input types and largely correctly maps them to the output types.

                                                                                                            That doesn't emarrass me with customers because they never see the internals. On front-end, obviously they will see and experience whatever abomination it cooks up directly.

                                                                                                      • parski 21 hours ago

                                                                                                        AI is great at front end. Scroll based animations are the devil and these "boring" designs it defaults to are (more often than not) super intuitive. Sure, some design quirks it'll guess are annoying, but have you seen the web?

                                                                                                        • ronbenton a day ago

                                                                                                          Everything is nuanced and generalizations help no one. There are absolutely frontend apps where AI straight up crushes. Sure these much be less novel apps but most of what people work on is a CRUD-esque interface.

                                                                                                          • mewpmewp2 21 hours ago

                                                                                                            I'm wondering what would be a specific example that AI would fail to create front-end wise, since I've been having quite good experiences with it.

                                                                                                            • ronbenton 20 hours ago

                                                                                                              The author of the post is known for some pretty fancy CSS wizardry. I’m guessing AI is not great on some very specific, advanced CSS use cases where there isn’t much prior work. But again this is an edge case compared to what the vast majority of us are doing

                                                                                                              • mewpmewp2 18 hours ago

                                                                                                                But even then, what is a fancy CSS wizardry that AI couldn't do for instance, but would be trivial for the author?

                                                                                                                Or is it that AI is not as creative?

                                                                                                          • bulletsvshumans 21 hours ago

                                                                                                            One thing that helps with #2 ('It cannot see') -- Try playwright-cli. Your agent can use it to inspect the DOM, see what styles are applied to elements, simulate clicks, etc.

                                                                                                            • anonu a day ago

                                                                                                              Site has been slashdotted

                                                                                                              • est 21 hours ago

                                                                                                                I'd say UI is mostly a 2D tweaking + state management job, they don't exactly fit in a seq2seq style.

                                                                                                                • vfalbor a day ago

                                                                                                                  This is something that talk with some friends, How IA is doing things in front end is complelty different from Humans. Humans can select colors and themes based in their criteria, and IA only generate what they learn as a machine that they are, and It's not bad, but the thing is that people that use IA for develop front-end are adapting what IA generate, and in the other hand developer is adapting to client. Which are different approaches.

                                                                                                                  • PaulHoule a day ago

                                                                                                                    Who says it sucks at front end? Unlike Stackoverflow, AI does a great job of "center a div." I tend to like working from reference documentation which is great for Python and Java but challenging for CSS where you have to navigate roughly 50 documents that relate to each other in complex ways to find answers.

                                                                                                                    Like I don't give it 100% responsibility for front end tasks but I feel like working together with AI I feel like I am really in control of CSS in a way I haven't been before. If I am using something like MUI it also tends to do really good at answering questions and making layouts.

                                                                                                                    Thing is, I don't treat AI as an army of 20 slaves will get "shit" done while I sleep but rather as a coding buddy. I very much anthropomorphize it with lots of "thank you" and "that's great!" and "does this make sense?", "do you have any questions for me?" and "how would you go about that?" and if makes me a prototype of something I will ask pointed questions about how it works, ask it to change things, change the code manually a bit to make it my own, and frequently open up a library like MUI in another IDE window and ask Junie "how do i?" and "how does it work when I set prop B?"

                                                                                                                    It doesn't 10x my speed and I think the main dividend from using it for me is quality, not compressed schedule, because I will use the speed to do more experiments and get to the bottom of things. Another benefit is that it helps me manage my emotional energy, like in the morning it might be hard for me to get started and a few low-effort spikes are great to warm me up.

                                                                                                                    • moffkalast a day ago

                                                                                                                      CSS has definitely become a breeze to work with since LLMs have become a thing. Conceptually it's very "memorize how a billion possible combinations of obscure parameters interact with one another under various conditions" kind of setup so it's a perfect fit for machines and a terrible fit for humans.

                                                                                                                      The main limitation I think is that they're blind as a bat and don't understand how things stand visually and render in the end. Even the best VLMs are still complete trash and can't even tell if two lines intersect. Slapping on an encoder post training doesn't do anything to help with visual understanding, it just adds some generic features the text model can react to.

                                                                                                                      • PaulHoule a day ago

                                                                                                                        I'll grant that. A lot of times I want to give it a screenshot and say "here is what is wrong" and this is usually useless.

                                                                                                                        I will say though that multimodal capability varies between models. Like if I show Copilot a picture of a flower and ask for an id it is always wrong, often spectacularly so. If I show them to Google Lens the accuracy is good. Overall I wouldn't try anything multimodal with Copilot.

                                                                                                                        For that matter I am finding these days that Google's AI mode outperforms Copilot and Junie at many coding questions. Like faced with a Vite problem, Copilot will write a several-line Vite plugin that doesn't work, Google says "use the vite-ignore" attribute.

                                                                                                                      • bmurphy1976 a day ago

                                                                                                                        I still struggle with the design, but once that's locked in getting it to implement things is pretty straightforward. I do have to fight the AI a bit to make sure things are simple and clean, but it's pretty good at that with the right hand-holding.

                                                                                                                        The design is still a problem though, precisely because I am not a designer. I don't know what's actually good, I only know what's good enough for me. I can't tell the difference between "this is actually good" and "this is vibe-designed slop" but I have enough experience to at least make sure the implementation is robust.

                                                                                                                      • sys_64738 a day ago

                                                                                                                        No worse than humans then.

                                                                                                                        • 1a527dd5 a day ago

                                                                                                                          ...not in my experience. It does what I need it to do; center a div.

                                                                                                                          • TechSquidTV a day ago

                                                                                                                            ...Does AI suck at front-end? This is news to me.

                                                                                                                            • dbbk a day ago

                                                                                                                              Except... it doesn't