Code boilerplate: Is it always bad?
It&#x27;s always bad.
The second line makes you understand with a glance what it does because it is declarative and explains <i>what</i> is doing instead of <i>how</i>.
The go code is awful (personal opinion, although I <i>hope</i> it is widely accepted), much more verbose and it opens you up to a whole series of errors that are just impossible in the python version.
Boilerplate code by definition is just duplication and it is always bad because opens you up to bugs in a specific part of the boilerplate while you can&#x27;t have any bug at all in any boilerplate if you don&#x27;t have any of it.
Honestly I can&#x27;t really see how anyone can prefer code that is more verbose and bug-prone to code that is more concise, clear and with less bugs.