Reader small image

You're reading from  Mastering Apex Programming

Product typeBook
Published inNov 2020
Reading LevelIntermediate
PublisherPackt
ISBN-139781800200920
Edition1st Edition
Languages
Right arrow
Author (1)
Paul Battisson
Paul Battisson
author image
Paul Battisson

Paul Battisson is the CEO of Groundwork Apps, a Salesforce ISV Partner, a 9- time Salesforce MVP, and a current MVP Hall of Fame member. He has spoken at numerous Salesforce events including Dreamforce, London's Calling, the Salesforce London World Tour, India Dreamin, and DreamOle. He runs the Leeds Developer Group in the UK and the CloudBites TV website and YouTube channel where he helps Salesforce developers, consultants, admins and architects. He is the author of multiple books and training courses on Salesforce programming.
Read more about Paul Battisson

Right arrow

Prevention is better than a cure

All problems are best dealt with before they actually occur and become a problem. This may sound overly simplistic or even stupid, but it is extremely true when it comes to software development. Bugs cause side effects, both on data by inhibiting it from moving through its intended life cycle, and on the reputation of the system and its developers. Anything we can do to avoid a bug being found in the wild will help us to limit and mitigate this. We won't stop all bugs, but any bugs we can stop will be a help.

The first thing I wish to advocate, therefore, is extremely thorough Apex testing. Some of you may have just groaned audibly, but I will ask you to bear with me while I explain why for me this is the first step in debugging. And if you know and have taken a Test-Driven Development (TDD) approach here, you may just be laughing.

Firstly, tests can assist in pre-empting bugs. We will discuss in Chapter 5, Testing Apex Code, why testing...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering Apex Programming
Published in: Nov 2020Publisher: PacktISBN-13: 9781800200920

Author (1)

author image
Paul Battisson

Paul Battisson is the CEO of Groundwork Apps, a Salesforce ISV Partner, a 9- time Salesforce MVP, and a current MVP Hall of Fame member. He has spoken at numerous Salesforce events including Dreamforce, London's Calling, the Salesforce London World Tour, India Dreamin, and DreamOle. He runs the Leeds Developer Group in the UK and the CloudBites TV website and YouTube channel where he helps Salesforce developers, consultants, admins and architects. He is the author of multiple books and training courses on Salesforce programming.
Read more about Paul Battisson