Development Best Practices
  • Home
  • Clean Code
  • Apex
    • Naming Conventions
    • Triggers
    • Unit Testing
    • Principles
      • KISS
      • DRY
      • Single Responsibility
      • Open/Closed
      • YAGNI
    • Patterns
    • SOQL
    • Exception Handling
    • Magic Strings
  • Lightning Components
    • Aura
    • LWC
  • Automation
    • Process Builder
  • Salesforce DX and VSCode
  • Git Source Control
    • Install Git
    • Using Git
    • Development Workflow
      • The Rules
    • Feature Branch Workflow
Powered by GitBook
On this page
  1. Apex
  2. Principles

YAGNI

You aren't gonna need it

Do not add any functionality until it's deemed necessary; in other words, write the code which you need in the current situation.

Add your code logic for the present, don't think of what may be needed in the future.

PreviousOpen/ClosedNextPatterns

Last updated 5 years ago