←back to thread

2127 points bakugo | 1 comments | | HN request time: 0s | source
Show context
epistasis ◴[] No.43164232[source]
It's pretty fascinating to refresh the usage page on the API site while working [0].

After initialization it was up to 500k tokens ($1.50). After a few questions and a small edit, I'm up to over a million tokens (>$3.00). Not sure if the amount of code navigation and typing saved will justify the expense yet. It'll take a bit more experimentation.

In any case, the default API buy of $5 seems woefully low to explore this tool.

[0] https://console.anthropic.com/settings/usage

replies(3): >>43164249 #>>43165625 #>>43166632 #
koakuma-chan ◴[] No.43164249[source]
It also produces terrible code even though it's supposed to be good for front-end development.
replies(1): >>43164305 #
trekkie1024 ◴[] No.43164305[source]
Could you share an example?
replies(1): >>43164474 #
koakuma-chan ◴[] No.43164474[source]
TLDR: told it to implement a grid view as an alternative to the existing list view, and specifically told it to DRY the code. What it did? Copy and pasted the list view implementation (definitely not DRY), and tried to make it a grid, and even though it is a grid, it looks terrible (https://i.imgur.com/fJiSjq4.png).

I don't understand how people use cursor and all that other shit when it cannot follow such simple instructions.

Prompt (Claude Code): Implement an alternative grid view that the users can switch to. Follow the existing code style with empty comments and line breaks for improved code readability. Use snake case. DRY the code, avoid repetition of code. Do not change the font size or weight.

Output: https://github.com/mayo-dayo/app/compare/0.4...claude-code-g...

replies(3): >>43164549 #>>43165259 #>>43169840 #
1. fragmede ◴[] No.43169840{3}[source]
Points for being specific with it's shortcomings! Expecting it to get it in one shot isn't how to work best with them. It takes some cajoling and at this point in time, sometimes it is still faster to do it the old fashioned way of you already know what you're doing.