Hacker News new | ask | show | jobs
by formerly_proven 1156 days ago
Go does actually embody the DRY principle (Do Repeat Yourself).
1 comments

I prefer calling it WET (We Enjoy Typing)
These days Copilot tremendously helps me with those kinds of repetitive code.
This 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.

reading multiple lines of what would amount to a single scan/find/map/reduce is still a pain in the ass though