---
title: "Comment by Blake on \"Common anti-patterns in Go\" | Hashnode"
description: "This is a good article but these aren&#39;t really anti-patterns, right? Like, if we were talking C, and I said: Bad Practice: i = i + 1; Good Practice: i++; Th"
url: "https://hashnode.com/posts/common-anti-patterns-in-go/605ad82747b0d2243d4ab7ba/comment/6071e7b78b2b857c0bdb61b8"
---

[Discussion](https://hashnode.com/posts/common-anti-patterns-in-go/605ad82747b0d2243d4ab7ba)

Comment [Common anti-patterns in Go](https://hashnode.com/posts/common-anti-patterns-in-go/605ad82747b0d2243d4ab7ba)

[Blake](https://hashnode.com/@dsbw)

[Apr 10, 2021](https://hashnode.com/posts/common-anti-patterns-in-go/605ad82747b0d2243d4ab7ba/comment/6071e7b78b2b857c0bdb61b8)

This is a good article but these aren't really anti-patterns, right? Like, if we were talking C, and I said:

Bad Practice: i = i + 1;

Good Practice: i++;

The first example isn't so much an anti-pattern as a novice mistake, not idiomatic or stylistic. One can, and many have, written perfectly fine software with misunderstandings or incomplete understanding of how a language works.

To be an anti-pattern, it has to be "ineffective and/or counterproductive in practice". And I think generally, if they're not straight-up wrong, they have to be a smell—an indication of a poor design choice. #1 works counts, I think.

#9 is akin to a "poltergeist" (an anti-pattern where an object does nothing but act through another object) but it's interesting to note that, in Go, this is far less serious because it's far less hidden. A lot of this stuff is something an experience Go programmer would just say, "Oh, yeah, you don't need that," and take it out on a casual pass-through.

Anti-patterns usually require more serious refactoring.

[Jorge Florian](https://hashnode.com/@jorgeflorian)

[Apr 14, 2021](https://hashnode.com/posts/common-anti-patterns-in-go/605ad82747b0d2243d4ab7ba/comment/6071e7b78b2b857c0bdb61b8#reply-6076b40ba3407a32d704119c)

Agree. I would call this some kind of coding best practices in the language.
