Urgent.News

What's breaking now, across hundreds of outlets.

AI

LLM UI Smells: The Anti-Patterns Every Developer Is Shipping in AI Product Interfaces — and How to Refactor Them

Originally published on tamiz.pro . LLM-powered interfaces are popping up everywhere, but most of them are built on UI patterns that were never designed for token streams, non-deterministic responses, or prompt-injection attacks. The result is a new class of "UI smells"—code that works in a demo but collapses under real users. This deep-dive walks through seven of the most common anti-patterns I…

The article addresses common UI design pitfalls in LLM-powered interfaces, known as "UI smells," which can lead to poor user experiences. It outlines seven such anti-patterns, including the "Loading Spinner of Doom," "Prompt Injection Vector," and "Chat Bubble Monolith." For each, it explains the issue, why it occurs, and provides a production-ready refactor.

The article emphasizes the importance of handling LLM responses as streams, not atomic units, and suggests using Server-Sent Events (SSE) or fetch with ReadableStream to consume tokens incrementally, updating the UI on each chunk.

Brief written by urgent.news; may contain errors — check the original. How we use AI.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

We track opens and clicks to improve the newsletter.

See today's edition · More options

More in AI

London's AI Boom Is Short on Jobs, Oxford Economics Warns

A boom in AI spending is making London the “engine of the UK’s growth” once again, economists have said, as the country is set to benefit from higher investment than European peers.

  • London is UK's AI growth engine, with 44% of ICT output in 2024
  • AI-related factors driving boom, but labor market lagging
  • London's ICT employment growth not matching output gains

More from Sunday, 6 December 2026 →