Skip to content

Glossary: Software Design Patterns in Go

Rule of three

The first time, just write the code; the second time, notice the repeat; the third time, extract the shared part. By then you know what really varies.

Where the book teaches it

Related terms

Premature abstractionYAGNI