The Big List of Slop
Web page · https://ohadravid.github.io/posts/2026-11-list-of-slop
First seen by Oriel on .
AI summary
The author ranks ten recurring “slop” patterns—statistically likely code that provides no value—and recommends removing needless abstractions, encoding invariants in types, and fixing root design problems.
- Highest-risk examples include MacGyver Class primitives built from low-level components and Sneaky Dict Side Dish APIs that hide important data in untyped dictionaries.
- Validate, Don’t Parse adds runtime checks without encoding guarantees; the suggested alternative is a type such as SortedVec<T> that preserves the invariant.
- Paranoia-Driven Tests and Insanity-Driven Tests assert impossible cases or implementation details, becoming change detectors rather than valuable behavioral checks.
- Other patterns include obsolete façades, thesaurus-driven names, uncommon abbreviations, regex-based structured-data parsing, and named closures, structs, or interfaces used only once.
- The remedies emphasize deletion, direct and conventional naming, typed documented APIs, established parsers, and checking whether supposedly load-bearing code is still needed.
#software engineering #code quality #llms #testing
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Lobsters: 182, latest observation ; +181 over observed period since
Comments
Comment count reported by the source.
- Lobsters: 44, latest observation ; +44 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | 5kmyma | https://ohadravid.github.io/posts/2026-11-list-of-slop/ Read discussion |