MHN

Ask HN: By what percentage has AI changed your output as a software engineer?

33 points by nomilk·337 days ago·Show in HN

Compared to the era before AI coding tools (say, ~2 years ago), if you had to put a number on it, how much has your productivity as a SWE changed?

I think about this a lot; am keen to hear what others' perceptions are. For me; the short answer: about 2x (i.e. 100% faster than pre LLMs). Long answer:

When I thoroughly understand the domain (i.e. business logic and real world problem I'm solving), and am familiar with the tech stack, I'm about ~10x faster for the same or better code quality.

When I don't understand the domain, prompts will be ambiguous or inadequate, the LLM will guess, it will do a month's work in a day, but I'll spend the next 3 weeks refactoring and realising how trash the code was, due to how trash the prompt was. All in all, it's probably still faster than pre AI, but can give a demoralising psychological phenomena where you think something's nearly completed only to spend weeks debugging it, refactoring, and often tossing it away and starting over.

In an unfamiliar tech stack, I can't always spot obvious mistakes (mistakes caused by the AI or the prompt), so it's less productive and more risky.

10-15% of the productivity improvement is due to improvements in the dev environment. I open ~/dotfiles with cursor and tell it a problem I have or ask for a specific improvement. It usually modifies .zshrc, .vimrc or similar (and iterates as necessary if the first attempt didn't work). Due to how fast this is (e.g. 5 minutes), I've made about 20 little tweaks that previously didn't justify the time. They definitely make me happier as well as a bit more productive.

But overall, taking everything into account, I'd say I'm about 2x as productive as before LLMs.

Add a comment on Hacker News →
2 of 91 comments
  1. Extremely context-dependent for me.

    For boilerplate stuff like generating tests against a well-defined API, in a compiled language, maybe 2-3x. Far less in languages and frameworks like Ruby/Rails where the distance between generating the code and figuring out if it’s even valid or not is large.

    Mechanical refactors that are hard to express via e.g. regex but easy in natural language: maybe 5x.

    HTML and CSS, where I know exactly what I want and can clearly articulate it: 2-5x.

    For anything architecture-y, off the beaten path, or where generating a substantial amount of code is required: near 0%. Often in the negatives.

  2. Engineer at a unicorn SaaS startup: comparing the number of Github PRs for two spikes of my maximum output (had to write a lot of production code for weeks) before and after AI shows 27% increase.