Hacker News new | ask | show | jobs
by FaridIO 772 days ago
Quality very much depends on the language I've noticed. I don't use ChatGPT but I do use Github's Copilot. The main way I've been using it lately is to make manually written algorithms more efficient. So I'll write an algorithm, select it and ask it to figure out a more time/space efficient way of doing it. Still makes a mistake every now and then, but at the very least it helps me quickly see things from a different perspective.
1 comments

I mainly use copilot for its ability to figure out patterns. It’s pretty nice when working with frontend code with tailwind. Not perfect but has sped development up a bit. One thing I like is if I put a rem size in css and wanted to comment what the equivalent pixel value is it does the math.
But the equivalent pixel value depends on the root element font size, so the comment will be wrong when that changes. If you leave the math to the browser dev tools you'll get accurate results without any AI figuring out patterns.
Yep but in our workflow we’ve never deviated from 16px base. The comments in the code are purely to help when translating designs to rem in particular with tailwind.