News for hackers. Stuff that matters.
Re:Using Claude Code: The unreasonable effectiveness of HTML by momojo on Saturday May 09, 2026 @01:59AM (#48072225)
When exploring a new idea or tool, my go to prompt is

``` In a single index.html, no dependencies, sparse styling, create an app that <idea> ```

Even before AI, it's how I built small tools, and there's something lovely about being able to email my friends the tool, and tell them "If you want to make a change, toss it to your LLM!"

Re:Using Claude Code: The unreasonable effectiveness of HTML by rsolva on Saturday May 09, 2026 @04:18AM (#48073056)
This is the way!

It is incredible how far you get with a single HTML-file, containing styles and JS, when building dashboards, small apps and other utilities that can interact with an API or otherwise fetch data from somwhere.

I just drop it on my personal ~ folder on the shared server at work and voilà, everyone can check it out and use it immediately!

Re:Using Claude Code: The unreasonable effectiveness of HTML by momojo on Saturday May 09, 2026 @12:12PM (#48076085)
And you get sandboxxing for free! My company got tailscale recently, and its just the final cherry on top: `tailscale serve` my `/tools`, and I don't even have to worry about auth!
Re:Using Claude Code: The unreasonable effectiveness of HTML by drob518 on Saturday May 09, 2026 @02:19AM (#48072346)
I never really thought about this use case before, and I feel a bit dumb because of that. It’s so obvious that it would be useful. My focus with LLMs so far has been on The App, not all the ancillary stuff around The App. All that ancillary stuff doesn’t have to be fully complete or polished and doesn’t have to handle every possible case. It just needs to be functional enough to be useful. When you’re done with it, throw it away and generate a new one tomorrow.
Re:Using Claude Code: The unreasonable effectiveness of HTML by l3x4ur1n on Saturday May 09, 2026 @02:47AM (#48072497)
Same. When I iterate on a design for a new client, I create a simple index.html with inline CSS and when I'm satisfied with the result I take the file and insert it next to my project template files and just ask the LLM to take the design from index.html and work it in the template files.
Re:Using Claude Code: The unreasonable effectiveness of HTML by Hasbaranews on Saturday May 09, 2026 @04:09AM (#48072999)
Bump
Re:Using Claude Code: The unreasonable effectiveness of HTML by djyde on Saturday May 09, 2026 @05:37AM (#48073526)
I recommend allowing AI to use TailwindCSS and Alpine in the context, as this would generate great lightweight dynamic web pages.
Re:Using Claude Code: The unreasonable effectiveness of HTML by solomonb on Saturday May 09, 2026 @11:43AM (#48075861)
I agree! I get much better results when I give LLMs some light architectural constraints such as to use tailwind and alpine.
Re:Using Claude Code: The unreasonable effectiveness of HTML by djyde on Saturday May 09, 2026 @04:03PM (#48077771)
I don't know why my comment was down voted. Can someone tell me why?
Re:Using Claude Code: The unreasonable effectiveness of HTML by sevenseacat on Sunday May 10, 2026 @05:02AM (#48082227)
because the original prompt specifically said no dependencies, and now you've introduced two dependencies.
Re:Using Claude Code: The unreasonable effectiveness of HTML by throwatdem12311 on Saturday May 09, 2026 @08:26AM (#48074431)
My manager does this and with a straight face comes to me after with it and goes “put this in production” and wonders why it takes more than 5 minutes.

I absolutely hate the absolute rot these tools have caused to people’s brains.

Re:Using Claude Code: The unreasonable effectiveness of HTML by BowBun on Saturday May 09, 2026 @10:57AM (#48075492)
Last week, we discovered our 'AI-native' marketing VP put his team's entire documentation hub on a public Github Pages site for an entire week. This included prospect lists, meetings, marketing metrics like CaC/lead times, funnel metrics, etc. He did not solicit feedback from engineering and violated multiple points in our AI policy. Of course there will be no repercussions.
Re:Using Claude Code: The unreasonable effectiveness of HTML by throwatdem12311 on Saturday May 09, 2026 @11:31AM (#48075769)
We had a CSM vibe code a dashboard and put it on publically avaiable unauthenticated Firebase. Leaked a bunch of customer PII.

We fired him.

He’s suing for wrongful termination and…homophobia.

People are completely cooked. These tools are too powerful and normies are too stupid to use them responsibily.

Re:Using Claude Code: The unreasonable effectiveness of HTML by hgoel on Saturday May 09, 2026 @11:05PM (#48080610)
I have to draw a very sharp line in generating these kinds of tools, I treat them as single use throwaway things and do my best to never have anyone besides myself even see the tools themselves (e.g. reviewing some calculation results).

Else I fully expect to get saddled with turning a temporary thing for a very narrow problem into something production ready.

Re:Using Claude Code: The unreasonable effectiveness of HTML by mock-possum on Saturday May 09, 2026 @11:15AM (#48075649)
Same - and always had been, really, even before LLM codegen. Always try it out in the smallest quickest simplest case first! You can always make it bigger and more complicated later.
Re:Using Claude Code: The unreasonable effectiveness of HTML by solomonb on Saturday May 09, 2026 @11:41AM (#48075847)
A while back I figured out this trick and used it to crank out a bunch of calculators for analog electronics: https://cofree.coffee/~solomon/calculators/

its super convenient to be able to throw tools like this together and load them on a static site.

Re:Using Claude Code: The unreasonable effectiveness of HTML by mcintyre1994 on Saturday May 09, 2026 @02:21PM (#48077029)
This is also what Claude does on web when you ask for html (it creates it as an artifact), so the model is probably really well trained for it.