Clean Apex Code
eBook - ePub

Clean Apex Code

Software Design for Salesforce Developers

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Clean Apex Code

Software Design for Salesforce Developers

About this book

Many developers excel at building solutions in Apex but lack formal training in the core principles of professional software engineering. This book changes that and provides a no-nonsense guide for experienced Salesforce developers ready to master the art of software design.

Pragmatic, approachable, and to the point, this book focuses on essential practices like modularity, coupling, cohesion, and testing—not just to write better code, but to improve how teams deliver software. By emphasizing object-oriented programming, dependency injection, and boundaries, it equips you to design systems that are easier to maintain, test, and scale. With fast, reliable tests as a cornerstone, you’ll learn how great design enables true continuous integration and high-performance software delivery.

Through actionable examples and clear explanations, you’ll learn how to design better systems, reduce complexity, and create codebases that stand the test of time. If you’re serious about your craft, Clean Apex Code will give you the tools and mindset to think like a professional software engineer and deliver software at a higher level.

What You Will Learn

  • Use better names in all software constructs to improve readability and maintainability
  • Apply core software design principles to Apex development
  • Embrace modularity, abstraction, and boundaries to simplify complex systems
  • Leverage dependency injection, and mocking to write fast, modular tests
  • Practice real continuous integration with reliable, high-speed testing

Who This Book Is For

Experienced Salesforce developers and professional software engineers

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Information

Table of contents

  1. Cover
  2. Front Matter
  3. 1. Refactoring Apex Code: First Steps
  4. 2. Naming: Simple Techniques for Better Software Design
  5. 3. Doing One Thing: Abstraction, Boolean Parameters, and Design Patterns
  6. 4. How Long Should Methods Be: Length, Depth, and Subtasks
  7. 5. Comments Don’t Lie, Developers Do
  8. 6. Null, Validations, and Guard Clauses
  9. 7. Cascading Failures in Trigger Boundaries
  10. 8. Object-Oriented Programming in Apex
  11. 9. Software Design Principles
  12. 10. Modularity, Coupling, and Cohesion
  13. 11. Dependency Injection and Boundaries
  14. 12. Unit Tests, Stubs, and Mocking the Salesforce Database
  15. 13. The Apex Well-Architected Framework
  16. Back Matter

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Clean Apex Code by Pablo Gonzalez in PDF and/or ePUB format, as well as other popular books in Computer Science & Entreprise Applications. We have over one million books available in our catalogue for you to explore.