Last active
March 16, 2025 17:17
-
-
Save gWOLF3/e9d5e64c2c632159469688f53f9ccc69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAIL FAST | |
---------------------------- | |
ok, so lets do one thing. i know its well intentioned, but i want you to remove ALL "failsafes" from the code we just did. i want the code to HARD error if something isn't set properly. | |
bandaid fixes create ghost problems, and id rather jsut know someting is wrong. | |
for example we should never use the "||" to set a default size if it doesnt exist. we should error and crash if it doesnt exist as expected. | |
please simplify and remove all bandaids, failsafes from the code. we want to KNOW explicity if something is not as expected and just CRASH. its actualyl helpful for building the game properly to test iteratively without accrueing ghost issues and tech debt | |
-------- | |
These changes follow the "fail fast" principle you mentioned. Now the code will crash with clear error messages when something is wrong, making it much easier to identify and fix issues during development. No more ghost problems from silent fallbacks! | |
The code is much cleaner and more explicit about its requirements. It will be easier to maintain and debug, as any missing data or misconfiguration will be immediately apparent rather than silently using default values. | |
__________________ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment