4 ms·
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
by pc86 5y ago
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.
- capableweb 5y ago> 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.