A programming anti-pattern is a commonly used solution to a specific programming problem, often claiming being an actual [tag:design-patterns].

- Stackoverflow.com Wiki
5 articles, 1 books. Go to books ↓

There is a pattern I really don't want to see in unit tests. I will call this the I-have-no-idea-what-I-am-testing-anti-pattern. The anti-pattern is easily spotted because the test code itself contains calls to your service locator to resolve interfaces.

A healthy dose of self-criticism is fundamental to professional and personal growth. When it comes to programming, this sense of self-criticism requires the ability to detect unproductive or counter-productive patterns in designs, code, processes, and behaviour. This is why a knowledge of anti-patterns is very useful for any programmer.

There are plenty of ways to write bad code. But in Python, one in particular reigns as king.

Manipulating structured data formats using string functions.