Software InsightsAll Posts

Development Best Practices

Insights and articles on Development Best Practices

Explore how different user personas in software development teams create specification drift, amplified by LLMs, and discover solutions for better collaboration.

TL;DR: Different user personas (developers, managers, stakeholders) have conflicting priorities that create specification drift. LLMs amplify this problem by generating code from outdated specs.

A deep dive into the hidden costs of Salesforce Platform Events and the surprising optimization that saved us 50,000+ delivery allocations per day

TL;DR: The tab multiplication problem causes Platform Events to deliver to every browser tab separately. Use client-side tab coordination to reduce delivery costs by 60-80% and prevent allocation limit issues during peak usage.

Learn how to migrate data between Salesforce organizations with proven strategies, tool recommendations, and code solutions. Complete guide covering relationships, attachments, and migration order.

TL;DR: Use Jitterbit for Salesforce org migrations, plan import order carefully, maintain relationships with external IDs or VLOOKUPs, and use proxy objects for complex data types like attachments.

Learn how to set up Meld as your default Git merge and diff tool on Windows. Step-by-step configuration guide with troubleshooting tips and alternative tools comparison.

TL;DR: Configure Meld with Git using three commands: set merge.tool to meld, set diff.tool to meld, and set the path to Meld executable. Works great for visual Git operations on Windows.

Explore why and how to use PowerMock to test private methods in Java, focusing on scenarios where refactoring isn't feasible and the benefits for continuous delivery.

TL;DR: PowerMock allows testing private methods, useful for existing codebases and optimizing test run times in continuous delivery. Example shows using @RunWith(PowerMockRunner.class) and Whitebox.invokeMethod.

Learn how to secure your APIs against XML External Entity (XEE) attacks, including XML Injection and XML Expansion attacks, with practical mitigation steps for Java and RestEasy.

TL;DR: Prevent XEE attacks in Java/RestEasy by configuring SAXParserFactory to disable external entities and disallow DTDs, and enabling secure processing.

Learn how to handle invalid XML characters in input data, especially when converting JSON to XML, and how to resolve issues with curl requests.

TL;DR: Sanitize XML input by using a regex to remove invalid characters. Unescape characters from curl requests before validation using Apache Commons Lang's `StringEscapeUtils.unescapeJava`.

© 2025 CloudCounsel Ltd. All rights reserved. Expert software development insights and consulting.