Viewing a single comment thread. View all comments

VisibleSignificance t1_iy0gi66 wrote

> writing repetitive code

... how much repetitive code do you even need to write anyway?

0

turbofisherman t1_iy0ochj wrote

Unit tests, for one, are much easier to write with Copilot. Huge time saver!

6

Pixelmixer t1_iy0qky7 wrote

Dude generating unit tests directly from properly written specs would be a godsend. Consequently, properly written specs would be a godsend.

2

imnos t1_iy0xy2v wrote

Er, a lot? If your codebase is well structured most of it will follow similar patterns which you just need to repeat, with different class/variable names etc. That makes it ripe for automation with Copilot.

Then there's unit tests which cover the above - if you keep the structure similar then copilot can fly through it.

Likewise for generating things like seed data. Need to create some seeds for your database just write out what you need in a comment and Copilot gets it mostly right.

So much time saved.

1

imnos t1_iy0ynmm wrote

I spoke about repetitive code but it's also helpful for when you don't know something - saves you the step of Googling or checking documentation.

1