Live data from Hacker News

Ask HN: Am I missing something with AI

news.ycombinator.com

11–20 of 29 posts

Re: Ask HN: Am I missing something with AI

#11
post #6

We're reaching a point currently where output quality is very much determined by input quality. Previously output quality was hampered fundamentally by model knowledge, hallucinations, and model quality. Now, we have better knowledge of prompting as people have learnt what to say, models are better, models make use of memory from other conversations, they have skills written by humans or even themselves on how to do…

>> Now, we have better knowledge of prompting as people have learnt what to say

Can you back up this claim? what do you mean exactly by "better knowledge" ?

Re: Ask HN: Am I missing something with AI

#14
post #3

I am shocked how much my experience is different from yours. I wrote Claudine, my own version of Claude Code, almost 2 years ago. This experience gave me the understanding of how the technology works. Since then I've produced maybe 300k lines of open source code, and all of it meaningful to the bones. What kind of projects are you working on, maybe it's the specificity of your domain?

Can you share the code, since it's open source?

Re: Ask HN: Am I missing something with AI

#15

Are you treating it like a genie to build huge things in one shot or working on small incremental changes? I’ve found the latter works way better

This I found to be true, too. "One-shotting" a prompt and getting the AI to build you a working "mock-up" or "pre-Prototype" is satisfying but won't scale. As soon as you want to add features on top of that which you have not specified in the first prompt, AI will drag you down into bugfixing both the code and trying to make the AI behave. My personal best practice for using AI is this: Describe the problem you have, then let the AI explain to you the common solutions to that - after all, it's training data contains the aggregation information of the internet, including the newest paradigms, frameworks, and best practices. I then let it teach me how these work so that I can build them into the code myself.

Re: Ask HN: Am I missing something with AI

#16
This is a common experience for everyone. A combination of small models with overly abbreviated prompts will produce poor and faulty output. This is where what's called "prompt engineering" comes in. With practice, you'll see that detailed, well-structured, and regularly large requests will yield better results. You'll also find that you can establish dialogues with the agents to refine ideas and ask them to take structured notes before starting implementation work. The idea of achieving good results with a lot of agent work stemming from a small prompt should be dismissed. It requires a lot of conversation, planning, and design on our part. Don't give up; it's just a matter of getting used to this "language" for communicating with the agents.

Re: Ask HN: Am I missing something with AI

#17
Use this prompt, thank me later...

  Create an online sports betting platform following these rules:

  - Create a web app for betting on sports like baseball, basketball, football, hockey and soccer
  - App name is BetMax

  Use this tech stack:
  - Use node js and express for server code, ejs for templates and UI, postgresql for database management
  - Use only HTML, JS and CSS for web pages
  - Create a public folder with fonts, icons, media, scripts and styles subfolders
  - Place respective files in each folder according to its function

  Styling:
  - Design in light mode and dark mode
  - Design in responsive mode for mobile devices
  - Use one single file for shared styles named common.css, and one file for every web page for custom styles related to that page if necessary, each stylesheet file will be named like the page that it customizes but using .css extension
  - Create a header and footer component, include them in every html file directly at the top and the bottom according to ejs, passing vars when needed

  Authentication:
  - User registration, login, logout, forgot password, and all the forms for user and session management
  - Once registered, users can top up their wallet with money, we will use Binance wallet for that
  - Binance integration will be done later, for now leave placeholders
  - No avatar is required
  - Use node:crypto Sha256 encryption instead of bcrypt

  Betting info:
  - Once registered, landing page will show five buttons, one for every sport: baseball, basketball, football, hockey, soccer
  - Once clicked on the desired sport, daily schedule will be shown with all the games for that day, showing teams, times, odds
  - Users will be able to pick one or more winners in parlay mode, recalculating the max winning amount based on the odds of selected teams
  - They can bet all the money they want up to a limit per user, stored in the user config info
  - Once ready, the user will finish the bet, deduct a payment from their wallet balance, and the betting ticket will be stored in the database and shown in the screen
  - Keep in mind some matches can be postponed or cancelled, use a status field for that

  Other pages neded:
  - Landing page: make it professional, light/dark themed, responsive, minimalist but be creative
  - Once the user is registered, show the sports selection page
  - Once the sport is selected, show the schedule for games of the day
  - They can pick their teams, confirm the purchase and get their betting ticket
  - Once the match has finished and results available, admins will enter them in the database and calculate winners, payouts and commissions
  - Keep a history of tickets so users can know their outcome, winner or loser

  Rules:
  - Place views in 'views' folder
  - html file extensions as .html not .ejs, make changes in express for that
  - Keep the style in all pages, make it uniform
  - Try not to use popups, use linked pages most of the time, save user state while navigating between pages
  - Design the database tables and fields, create a database.sql file with all commands to create the DB
  - Use dummy data for now, create a dummydata.sql file for that. Make it easy to replace dummy data for db calls in the future
  - Place all db commands and queries in a class stored in a single database.js file that can be accessed from any module
  - Use an .env file for all keys, secrets and configuration

  Thank you

Re: Ask HN: Am I missing something with AI

#18
post #17

Use this prompt, thank me later... Create an online sports betting platform following these rules: - Create a web app for betting on sports like baseball, basketball, football, hockey and soccer - App name is BetMax Use this tech stack: - Use node js and express for server code, ejs for templates and UI, postgresql for database management - Use only HTML, JS and CSS for web pages - Create a public folder with fonts,…

Oh and btw, it costs less than 5 cents using DeepSeek

Re: Ask HN: Am I missing something with AI

#20
post #8
post #6

We're reaching a point currently where output quality is very much determined by input quality. Previously output quality was hampered fundamentally by model knowledge, hallucinations, and model quality. Now, we have better knowledge of prompting as people have learnt what to say, models are better, models make use of memory from other conversations, they have skills written by humans or even themselves on how to do…

The way AI is able to interact with outside resources is pretty impressive, but the quality of code it produces to me is still questionable, more so in the larger scope, and the errors it produces are sometimes hard to catch because they're not normal human errors. Recently I tried to get Claude to write a script that produces large amounts of code so I could profile a compiler. The script ended up outputing code tha…

This caught my eye:

> The script ended up outputing code that uses variables outside of their scope, didn't utilize like 90% of the features of the language

Using variables outside of their scope sounds very unusual to me for Claude. You are using Claude Opus (4.5 or higher) and have set the thinking to High or above, right? Make sure you're not using Claude Haiku. Sonnet can be okay, but I'm sure the developers you've heard raving about it are all using Opus 4.8 or GPT 5.5, and all using it from within Claude Code or Codex (or OpenCode or Pi, tools like that anyway).

Claude should catch something like variables being outside of scope immediately when compiling, and fix it as soon as it notices the compiler bug.

> The script itself was also written in really weird way, utilizing recursion for pretty much everything when most of what it did could be done in simple loops...

That's actually a great opportunity to develop a new prompt to give to Claude. AI is really good at pattern matching. Take one of those weird recursion methods Claude came up with, then rewrite it as that simple loop that you would prefer, and show both to Claude. Then ask in the same turn: "This is how I prefer to write this code. Can you suggest a prompt to me that would encourage you to write this style of code instead in future?"

See if you can get Claude to reduce that down to a simple maxim or principal you can include in a startup prompt you provide at the start of each session, or into your global CLAUDE.md file that is loaded at the start of every Claude Code session. It might end up being a guideline like "Prefer simple loops over recursion whenever appropriate."

It's possible that the developers you've heard raving about AI have already developed startup prompts / CLAUDE.md files filled with similar maxims & principals, tailored specifically to how they like to code & work, evolved from months of working with AI.

Post reply on HN