6 ms·
Surely at any point after "Make the "Add to Cart" button blue", it'd be faster to just do it yourself: "grep -r "Add to Cart", insert "addToCart" as a class to
by OkayPhysicist 9d ago
Surely at any point after "Make the "Add to Cart" button blue", it'd be faster to just do it yourself: "grep -r "Add to Cart", insert "addToCart" as a class to the html element, then crack open style.css to stick "button.addToCart {background-color: blue}"
I'm counting maybe 80 keystrokes? That's shorter than your second prompt.
This idea generalizes. Large Language Models are poorly suited for tasks that we have already purpose-built systems to be easy for humans to use. The easiest way to tell your website that you want a button to look a certain way is to update the code. If you know exactly how you want something done, we have developed an incredibly efficient way to tell computers how something should be done: it's called source code.
LLMs work best when they're handed tasks that you don't want to figure out how to do.