If you want to see more resources like this, become a Patreon supporter!
"An anti-pattern is like a pattern, except that instead of a solution it gives something that looks superficially like a solution, but isn't one." —Andrew Koenig, who originally coined the term in 1995
This working document aims to present all the ways modders write "bad Papyrus" and how to avoid doing so. It is modeled after The Little Book of Python Anti-Patterns.
- Not returning a value on all code paths
- Not using a break condition in a loop
- Not validating arrays before accessing array elements
- Not validating objects or arguments before calling a function
- Not validating the length of a dynamic array
- Passing a zero denominator to a division or modulus operation