Comment by verifex
3 days ago
Some of my favorite things to use AI for when coding (I swear I wrote this not AI!):
- CSS: I don't like working with CSS on any website ever, and all of the kludges added on-top of it don't make it any more fun. AI makes it a little fun since it can remember all the CSS hacks so I don't have to spend an hour figuring out how to center some element on the page. Even if it doesn't get it right the first time, it still takes less time than me struggling with it to center some div in a complex Wordpress or other nightmare site.
- Unit Tests: Assuming the embedded code in the AI isn't too outdated (caveat: sometimes it is, and that invalidates this one sometimes). Farming out unit tests to AI is a fun little exercise.
- Summarizing a commit: It's not bad at summarizing, at least an initial draft.
- Very small first-year-software-engineering-exercise-type tasks.
I'm not trying to be presumptuous about the state of your CSS knowledge so tell me to get lost if I'm off base. But if you haven't updated yourself on where CSS is at these days I'd recommend spending an afternoon doing a deep dive. Modern-day CSS is way less kludgy and hacky than it used to be. It's not so hard now to manage large CSS codebases and centering elements is relatively simple now.
Having said that I still lean heavily on AI to do my styling too these days.
Interesting, I found AIs annoyingly incapable of writing good CSS. But I understand the appeal of using it for a task that you do not like to do yourself. For me it's writing ticket descriptions which it does way better than me.
Can you give an example?
Descriptions for things was the #1 example for me where LLMs are a hindrance, so I'm surprised to hear this. If the LLM (not working at this company / having a limited context window) gets your meaning from bullet points or keywords and writes nice prose, I could just read that shorthand (your input aka prompt) and not have to bother with the wordiness. But apparently you've managed to find a use for it?