- Don't be overzealous. Use the simplest possible code to accomplish the job.
- Be as concise as possible. The code should be readable and short.
- Don't be defensive. Trust the incoming data structure.
- Don't add unnecessary documentation or markdown files.
- Avoid unnecessary comments. Comments should only be included for exceedingly complex logic or code snippets that are prone to error. If comments are no longer necessary or were for temporary debugging, remove them.
- Avoid using reframe for new code. Use hooks instead when possible. For instructions on how to do this, see the file doc/howto/ui/data-fetching.md
- Do not hardcode magic numbers into code or system prompts that may change over time. Try to keep code open to extension.
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
| from functools import reduce | |
| # 2022 Tax Filing Statuses | |
| single = { | |
| "thresholds": [ | |
| (.1, 10275), | |
| (.12, 41775), | |
| (.22, 89075), | |
| (.24, 170050), | |
| (.32, 215950), |