logoalt Hacker News

ErroneousBoshyesterday at 7:14 PM0 repliesview on HN

> I'm not saying I've had zero positive experiences but the number of negative experiences is so high that it's just super scary.

Just for shits and giggles I decided to let Copilot (whatever the default in vscode is) write a Makefile for a simple avr-gcc project. I can't remember what the prompt I gave it was, but it was something along the lines of "given this makefile that is old but works, write a new makefile for this project that doesn't have one" and a link to a simple gist I wrote years ago.

Fuuuuuuuuck me.

It's 2500 lines long. It's not just bigger than the codebase it's supposed to build, it's just about bigger than all the C files in all the avr-gcc projects in that entire chunk of my ~/devel/ directory. I couldn't even begin to make sense of what it's trying to do.

It looks mostly like it's declaring variables over and over, concatenating more bits on as it goes. I don't know for sure though.

I won't be using it.