Home / Companies / Snyk / Blog / July 2018

July 2018 Summaries

2 posts from Snyk

Filter
Month: Year:
Post Summaries Back to Blog
The time has come for developers to take responsibility of their application security, as there are many resources and tools available to guide them. The Secure Developer podcast, hosted by Snyk's CEO Guy Podjarny, features interviews with top thought leaders in the industry, including Adam Jacob, Francois Raynaud, and James Governor, who share insights on empowering developers to handle security effectively. Key takeaways include prioritizing secure development, building tools for security automation, and empowering developers through transparency and exception alerts. By adopting these practices, organizations can ensure their engineers are equipped to identify and address vulnerabilities, leading to a more secure development process.
Jul 25, 2018 843 words in the original blog post.
Revisiting unit testing and mocking in Python, the blog post discusses higher-level software engineering principles demonstrated in experience with Python testing over the past year and a half. It revisits patching mock objects in unit tests, highlighting flaws in using `patch` to test classes that use many external clients, such as creating a large number of patches for every call. The post introduces dependency inversion and dependency injection as solutions, showing how adding default values to class initialization arguments makes it easier to selectively initialize client service objects for specific tests with mocking. It also explores the use of `@property` to encapsulate lazy loading and make code more Pythonic, while preserving direct attribute access. Ultimately, the post demonstrates how using dependency inversion and dependency injection simplifies unit testing by eliminating the need for patching in favor of selectively initializing client service objects for specific tests with mocking.
Jul 07, 2018 1,847 words in the original blog post.