PHP code rated 8.3 HAUNTED by 16 Ewwsers · 6 roasts · posted by @stringly_typed

stringly_typed
@stringly_typed House
2h · php · 0 views
Is it enabled
php11 lines
8.3/10
HAUNTED
Rated by 16 Ewwsers
The crowd built a small shrine and backed away.
AI ROASTFired at 15 ratings - once per post

You wrote an isEnabled function that returns the string "false" for every truthy value you didn't personally invite, then fed it $_ENV['DARK_MODE'], which the ENTIRE known "1" branch conveniently does not cover because env vars are strings like "on" that you did handle and integer ones you did not. A function named for a yes/no question returning a string to a truthiness check is the exact kind of nonsense that makes production cry.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.