# universal-anti-patterns > ______________________________________________________________________ - Author: Na'aman Hirschfeld - Repository: kreuzberg-dev/ai-rulez - Version: 20260102103410 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/kreuzberg-dev/ai-rulez - Web: https://mule.run/skillshub/@@kreuzberg-dev/ai-rulez~universal-anti-patterns:20260102103410 --- ______________________________________________________________________ ## priority: critical # Universal Anti-Patterns **Never use:** - Any type (Python, TypeScript) - use Unknown/generics - Class-based tests (Python) - function-based only - Mocking internal services (any language) - use real objects - Manual dependency management - use lock files - Blocking I/O in async code (Python/TypeScript) - fully async paths - Bare exception handlers - catch specific types only - Magic numbers - extract to named constants - Inheritance for code reuse - prefer composition - Global state - dependency injection - f-strings in logging - structured key=value logging