3 ms·
Go does actually embody the DRY principle (Do Repeat Yourself).
by formerly_proven 4y ago
Go does actually embody the DRY principle (Do Repeat Yourself).
- nodejsblogger7 4y agoI prefer calling it WET (We Enjoy Typing)
- vbezhenar 4y agoThese days Copilot tremendously helps me with those kinds of repetitive code.
- _v7gu 4y agoreading multiple lines of what would amount to a single scan/find/map/reduce is still a pain in the ass though
- snorremd 4y agoThis is my experience as well. GitHub Copilot has been very efficient at generating variants of boiler plate code. It allows you to efficiently repeat code so you can delay code abstraction or generalisations until you are confident a generalisation makes sense. Having worked as a developer for many years I now much prefer to repeat code a bit to making the wrong abstractions to early. The tedium of writing out code is now reduced thanks to well performing language models.