News for hackers. Stuff that matters.
Re:GitHub Copilot available for JetBrains and Neovim by pc86 on Wednesday October 27, 2021 @02:43PM (#29017328)
Writing a slightly abstracted library to handle populating a list isn't necessarily "fixing" something. It might be, for sure, but is going to be very use case dependent, and there are a lot of instances where it's better to have 5, 10, or yes even 15-20+ nearly-identical lines and be done in a minute or two (or 5 seconds with Copilot IME) than spend half a day tweaking test coverage on your one-off library.
Re:GitHub Copilot available for JetBrains and Neovim by capableweb on Wednesday October 27, 2021 @04:45PM (#29018880)
> Writing a slightly abstracted library to handle populating a list

> than spend half a day tweaking test coverage on your one-off library

If you need to write a library and spend half a day to populate a list, you have bigger problems than boilerplate.

Nothing wrong with having duplicate lines. The problem becomes when writing those lines become automated so you start spewing those all over the place.