u/ColdMachine

Claude Code and CSS

Hey just wanted to write this post and ease some of the gloom that might surround AI and job replacement sentiment.

I'm a Frontend dev and my strong suit is around CSS. I asked Claude to make a simple modal where two of the inner cards (side by side) expand equally depending on the content of either card, so if one card had a longer name, they both would increase in width.

Claude insisted that we had to use JS and when I pushed back multiple times, it gave me a number or reasons why this isn't easily accomplished with CSS. I accepted its answer cause I was on a deadline but it didn't sit right with me; so I went back and told it to use grid: 1fr auto 1fr (the auto is for an arrow icon). Well what do you know, a few lines of css saved us the trouble of using a useEffect and some references.

I'm not saying Claude won't replace your job but I've noticed for a few months now that for at least CSS, AI's doesn't have very good practices.

reddit.com
u/ColdMachine — 1 day ago