This is why your Salesforce deployments suck

If your Salesforce deployments suck and are painful, it only means 1 thing:

You need to deploy more often.

Rather than avoiding the pain of deployments, you should lean into it and learn what it's telling you.

Maybe it's telling you your org architecture is not good enough, or your tests are not really testing the right things, etc.

By doing it more often, you also practice. You'll become more proficient at catching deployment errors, missing dependencies, etc.

This mentality is inspired by this statement from a book I was reading:

"𝘤𝘰𝘯𝘵𝘪𝘯𝘶𝘰𝘶𝘴 𝘥𝘦𝘭𝘪𝘷𝘦𝘳𝘺 𝘪𝘴 𝘯𝘰𝘵 𝘮𝘢𝘨𝘪𝘤. 𝘐𝘵’𝘴 𝘢𝘣𝘰𝘶𝘵 𝘤𝘰𝘯𝘵𝘪𝘯𝘶𝘰𝘶𝘴, 𝘥𝘢𝘪𝘭𝘺 𝘪𝘮𝘱𝘳𝘰𝘷𝘦𝘮𝘦𝘯𝘵 — 𝘵𝘩𝘦 𝘤𝘰𝘯𝘴𝘵𝘢𝘯𝘵 𝘥𝘪𝘴𝘤𝘪𝘱𝘭𝘪𝘯𝘦 𝘰𝘧 𝘱𝘶𝘳𝘴𝘶𝘪𝘯𝘨 𝘩𝘪𝘨𝘩𝘦𝘳 𝘱𝘦𝘳𝘧𝘰𝘳𝘮𝘢𝘯𝘤𝘦 𝘣𝘺 𝘧𝘰𝘭𝘭𝘰𝘸𝘪𝘯𝘨 𝘵𝘩𝘦 𝘩𝘦𝘶𝘳𝘪𝘴𝘵𝘪𝘤 “𝘪𝘧 𝘪𝘵 𝘩𝘶𝘳𝘵𝘴, 𝘥𝘰 𝘪𝘵 𝘮𝘰𝘳𝘦 𝘰𝘧𝘵𝘦𝘯, 𝘢𝘯𝘥 𝘣𝘳𝘪𝘯𝘨 𝘵𝘩𝘦 𝘱𝘢𝘪𝘯 𝘧𝘰𝘳𝘸𝘢𝘳𝘥.” Jez Humble, Continuous Delivery

Subscribe for exclusive Salesforce Engineering tips, expert DevOps content, and previews from my book 'Clean Apex Code' – by the creator of HappySoup.io!
fullstackdev@pro.com
Subscribe