frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How to properly code a website with AI?

2•worldsavior•1h ago
I need to build a website, with a database and the other obvious stuff. I hate designing, and I would love to give Claude to just code for me some website.

The things I worry about most are performance and security. How should I approach this?

Comments

basilikum•1h ago
> I need to build a website, with a database and the other obvious stuff.

There is nothing obvious about needing a database for a website.

cmpalmer52•1h ago
As much as we’d like to say “Make me a website that does X, Y, and Z” and then taking a nap, I’ve found breaking it down is best, even if each step is done by AI.

I started with just ChatGPT for the preliminaries.

I wrote a description, loose set of requirements then had the AI review the requirements for completeness and consistency, then draft them into a requirements.md file.

Then I gave the requirements to the AI and had it generate an architecture and design doc.

Then I had the AI review the design against the requirements a few times, refining them.

I also did a couple of rough paper sketches of layout and photographed them (digital or scan would be fine/better of course).

Only then did I switch the agentic coding AI.

Again, I broke it down into steps.

First, mock up the UI/UX with dummy data.

Implement the backend needed to support the UI.

Hook it all up.

Refine and add features.

Have it do code reviews to remove dead code, consolidate redundancies, etc. Always make sure it meets its requirements and design (modify design if necessary so that it documents the real state). It can also maintain your Readme.md.

I did this in a long afternoon to create a utility site that tracked Azure DevOps PRs across multiple projects and repos, creating links to YouTrack tickets, and providing basic searching and sorting (so a lot of API calls and state persistence, but no local database). I only had a step “fail” once or twice, usually due to misunderstanding or vagueness. No real errors.

By the end of the afternoon, I gave the tool to my team and it’s been being used without error since. a few new features were requested and I did the last few steps for each new features - add feature, code review, requirements review, update design and Readme.md.

lucideng•1h ago
For security (or anything else really), you can ask the LLMs to implement those features, but it is up to you to verify that they are implemented correctly. The OWASP Top 10 are a good place to start.

Don't just trust it. I've done websites as sample projects to work with LLMs to understand them better.... and while sometimes brilliant, they can miss really obvious things. One time it did user login but never actually verified the password set for a user login.

Treat it like an intern/assistant, not a magical thing that does work for you. While sometimes brilliant, they can miss obvious things, especially if you don't hold its hand. Verify, verify, verify.

XAI Joins SpaceX

https://x.ai/news/xai-joins-spacex
1•beklein•13s ago•0 comments

Show HN: Polymcp and Ollama for Simple Local and Cloud LLM Execution

1•justvugg•2m ago•0 comments

King County, WA eviction levels hit an all-time high, again

https://www.seattletimes.com/business/real-estate/king-county-wa-eviction-levels-hit-an-all-time-...
1•petethomas•2m ago•0 comments

Mamdani Report

https://iamwillwang.com/mamdani-report/
1•wxw•2m ago•0 comments

XAI Joins SpaceX

https://www.spacex.com/updates#xai-joins-spacex
3•g-mork•3m ago•0 comments

SpaceX Has Acquired xAI

https://twitter.com/i/status/2018440335140024383
4•mudil•6m ago•1 comments

Shedding Light on Iran's Longest Internet Blackout

https://www.theverge.com/policy/871848/iran-blackout-internet-mahsa-alimardani
1•stevenwoo•6m ago•0 comments

Unpacking Lobster Mania – Moltbook, Clawd, and Learnings from Their Predecessors

https://twitter.com/0xBebis_/status/2018413737213149650
1•bebis1•6m ago•0 comments

DOE announces NEPA exclusion for advanced reactors

https://www.ans.org/news/article-7727/doe-announces-nepa-exclusion-for-advanced-reactors/
1•geox•7m ago•0 comments

Mspace – World Wide Workspace

https://mspaces.de/en-gb/start/
1•doener•7m ago•0 comments

Emdash – An open-source agentic development environment

https://www.emdash.sh/
1•kaitak•7m ago•0 comments

Giving coding agents file outlines to save tokens on ultra-large files

https://blog.sweep.dev/posts/read-file
1•williamzeng0•9m ago•0 comments

24-year-old Frenchman shows up at hospital with WW1 shell lodged in his rectum

https://english.elpais.com/international/2026-02-02/a-24-year-old-frenchman-shows-up-at-hospital-...
6•TMWNN•10m ago•1 comments

I spent 1 year building my SaaS and only then realized I built the wrong thing

1•oaba_omar•12m ago•0 comments

Linux Prepares to Support Microsoft's Turn on Display DSM Address Laptop Issues

https://www.phoronix.com/news/Linux-ACPI-DSM-Turn-On-Display
2•Bender•12m ago•0 comments

Removing macOS 26 Tahoe's unwanted menu icons

https://weblog.rogueamoeba.com/2026/01/10/removing-tahoes-unwanted-menu-icons/
3•fanf2•12m ago•0 comments

Statue of computing pioneer Ada Lovelace unveiled in Hinckley

https://www.bbc.com/news/articles/czdqm19d89no
2•rmason•13m ago•2 comments

Context Management and MCP

https://cra.mr/context-management-and-mcp/
1•coloneltcb•13m ago•0 comments

Claude is autonomously livecoding a major port (CPP –> WebGPU)

https://www.youtube.com/watch?v=mgFHMieDvo8
1•logicallee•14m ago•1 comments

Some Remarks on the Risks of Lawful Access

https://mort.io/blog/cosi-lawful-access/
1•mon_•16m ago•0 comments

AI Exorcism

https://twitter.com/notevenwrongg/status/2018435451699281994
1•georgestrakhov•17m ago•0 comments

Making physical Japanese flashcards: The full walkthrough from zero to launch

https://alt-romes.github.io/posts/2026-01-30-from-side-project-to-kickstarter-a-walkthrough.html
1•romes•18m ago•2 comments

Show HN: Lobster.email – open-source email your agent can sign up for by itself

1•anthonySs•19m ago•0 comments

Why can nobody build an algorithm that works like a worm?

https://ccli.substack.com/p/the-biggest-mystery-in-neuroscience
1•Kotlopou•19m ago•1 comments

Spatial transcriptomics reveals expression gradients in developing wheat flowers

https://academic.oup.com/plcell/article/38/1/koaf282/8379514?login=false
1•PaulHoule•21m ago•0 comments

China finalizes proposed ban on Tesla-style hidden door handles for safety

https://electrek.co/2026/02/02/china-finalizes-proposed-ban-on-tesla-style-hidden-door-handles-fo...
6•Bender•22m ago•0 comments

OpenAI is unsatisfied with some Nvidia chips and looking for alternatives

https://www.reuters.com/business/openai-is-unsatisfied-with-some-nvidia-chips-looking-alternative...
2•layer8•23m ago•0 comments

Tesla (TSLA) can't find the bottom in Europe

https://electrek.co/2026/02/02/tesla-tsla-cant-find-bottom-europe-2026-brutal-decline/
6•Bender•23m ago•2 comments

A Three-Way Race for China's AI Super-App

https://chinai.substack.com/p/chinai-345-a-three-way-race-for-chinas
1•yorwba•24m ago•1 comments

Lumen Completes Sale of Consumer Fiber-to-the-Home Business to AT&T

https://ir.lumen.com/news/news-details/2026/Lumen-Completes-Sale-of-Consumer-Fiber-to-the-Home-Bu...
1•exportsmedia•24m ago•0 comments