Submitted by nick7566 t3_z5yqw9 in singularity
VisibleSignificance t1_iy0gi66 wrote
Reply to comment by imnos in Google Has a Secret Project That Is Using AI to Write and Fix Code by nick7566
> writing repetitive code
... how much repetitive code do you even need to write anyway?
turbofisherman t1_iy0ochj wrote
Unit tests, for one, are much easier to write with Copilot. Huge time saver!
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.
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.
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.
Viewing a single comment thread. View all comments