{"id":53782,"date":"2024-02-15T13:16:34","date_gmt":"2024-02-15T18:16:34","guid":{"rendered":"https:\/\/sdtimes.com\/?p=53782"},"modified":"2024-07-08T11:31:57","modified_gmt":"2024-07-08T15:31:57","slug":"the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality","status":"publish","type":"post","link":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/","title":{"rendered":"The importance of prevention: How shifting left, static analysis and unit testing create better code quality"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Developers are constantly balancing demands to provide quality features of the highest standard at a fast pace. Every aspect of business now relies on software, which means developers are constantly working to write and produce the best software they can. Continuous Integration (CI) and Continuous Delivery (CD) help facilitate the creation of that software, but without the right quality assurance steps in place, they can inadvertently let potentially major code issues fall through the cracks.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Maintaining a balance between building high-quality software and doing it quickly can be challenging. Shift-left often appears as a common solution, but to be truly lean and agile we must shift-left on quality that takes into consideration both unit testing and static code analysis. This way, developers can ensure they produce good, <\/span><a href=\"https:\/\/www.sonarsource.com\/solutions\/clean-code\/\"><span style=\"font-weight: 400;\">clean code<\/span><\/a><span style=\"font-weight: 400;\"> that results in top-quality software. By catching small bugs or quality issues early on in the process, developers can mitigate the possibility of writing code that causes security risk or breaks down further into the deployment process \u2014 at a high cost to the business.\u00a0<\/span><\/p>\n<p><b>Shifting Left on Quality<\/b><\/p>\n<p><span style=\"font-weight: 400;\">We must first agree on a new mindset \u2014\u00a0we shouldn\u2019t be focused on finding problems. We should be focused on preventing those problems in the first place. All developers strive to write the best code they possibly can, but errors tend to be inevitable. Testing software code early \u2014 shifting left \u2014 helps catch errors and bugs soon enough in the development process that they don\u2019t become sizable, expensive, disastrous problems later on. This kind of early testing on quality enables developers to create code that is reliable, adaptable, maintainable, and of course, secure. That\u2019s where shifting left toward a focus on the code quality first, versus finding security issues already existing in code, can create significant inroads and provide a clearer path.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Shifting left on quality can also help mitigate errors caused by an increasing dependency on AI code generators. While AI coding assistants can make an impact on the developer workload and help boost efficiency or productivity at a time when demands for output are greater than ever, they aren\u2019t a failsafe. They need to be thoughtfully governed and controlled. For example, in a recent <\/span><a href=\"https:\/\/arxiv.org\/pdf\/2307.12596.pdf\"><span style=\"font-weight: 400;\">study<\/span><\/a><span style=\"font-weight: 400;\">, it was found that ChatGPT-generated code is prone to various code quality issues, including compilation and runtime errors, wrong outputs, and maintainability problems. In fact, <\/span><a href=\"https:\/\/docs.github.com\/en\/copilot\/overview-of-github-copilot\/about-github-copilot-individual\"><span style=\"font-weight: 400;\">GitHub Copilot docs<\/span><\/a><span style=\"font-weight: 400;\"> acknowledge this, recommending that those using Copilot conduct rigours testing to ensure the generated code is of high quality:\u00a0<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">\u201cYou are responsible for ensuring the security and quality of your code. We recommend you take the same precautions when using code generated by GitHub Copilot that you would when using any code you didn&#8217;t write yourself. These precautions include rigorous testing, IP scanning, and tracking for security vulnerabilities.\u201d<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">Quality checks still rely on special tools and human review to ensure code quality overall. The more code we write with the help of AI, the more safeguards must be in place to check that the code is accurate and issue-free. That\u2019s why developers must enhance typical testing processes, shifting them further left, to avoid or help identify future errors that could also affect the quality of software. Employing the right combination of unit testing and static analysis throughout the software development lifecycle (SDLC) is a pivotal part of these guardrails that pave the path for top-quality software.<\/span><\/p>\n<p><b>Balancing Unit Testing and Static Analysis<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Developers often prioritize unit testing while embracing a shift-left mentality as a means of ensuring features and functionality work correctly. However, unit testing on its own cannot test for quality or cover every bug and problem within software code. The more bugs fall through the cracks, the more developers compromise the quality and security of their software as it reaches deployment.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The solution? Developers need to incorporate static code analysis, which can be done through automation. In comparison to dynamic analysis, which works at runtime, static analysis looks at the internal structure of an application and works on a variety of different code languages. By incorporating both unit testing and static analysis, developers can control code quality through the development stages, quickly detect and fix bugs, and improve overall software reliability.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Further, while developers may think of static analysis as purely a tool for finding bugs \u2014 or patterns that might lead to bugs \u2014 the right static analyzer can also help understand the <\/span><i><span style=\"font-weight: 400;\">why <\/span><\/i><span style=\"font-weight: 400;\">behind an issue or a better way to do something, helping them to learn as they code. Context matters, and becomes even more crucial for developers who are increasingly strapped for bandwidth.<\/span><\/p>\n<p><b>Clean code Makes Better Software<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A shift-left approach to quality that strikes a balance between static analysis and unit testing ultimately allows developers to write clean code \u2014 code that is consistent, intentional, adaptable, and responsible ultimately becomes easier to maintain. More than that, this <\/span><a href=\"https:\/\/www.sonarsource.com\/solutions\/our-unique-approach\/\"><span style=\"font-weight: 400;\">Clean-as-you-Code<\/span><\/a><span style=\"font-weight: 400;\"> process accelerates testing as a whole and gives developers the power to detect and address quality issues as soon as possible.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Earlier and more comprehensive testing in the SDLC enables a much more efficient way for developers to work. Waiting to address poor-quality code creates delays in deployment in addition to allowing that bad code to slip through to deployment, requiring reverting and refactoring of software code. The kind of feedback loops associated with checking for issues later in the process are lengthy and iterative, and can disrupt the development process by forcing a developer to return to work they might have done weeks or months ago, when it\u2019s no longer fresh on the brain.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As developers try to reuse or repurpose code where possible, making sure it\u2019s top quality is paramount. Incorporating static analysis with unit testing ultimately allows developers to continue building software they know is secure, maintainable, reliable, and accessible at any point in its lifecycle. It\u2019s the best way to keep up with increasing development speeds.<\/span><\/p>\n<p><b>Maintaining Code Quality<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Particularly as developers balance increasing workloads with new AI coding assistants and tools, quality assurance is more important than ever. While some tools may enable more efficiency and developer productivity, they\u2019re never a full replacement for the kind of analysis that prohibits costly bugs and mistakes from slipping through to production.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Developer teams must understand that a shift-left on quality approach, employing both unit testing and static analysis, helps strike the necessary balance between delivering software quickly and delivering software that\u2019s high-quality. As those two characteristics become more and more crucial to developer demands, quality, maintaining that balance, and understanding the principles behind it, puts teams in a position to help their organizations see business results.<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">To learn more about Kubernetes and the cloud native ecosystem, plan to attend KubeCon + CloudNativeCon Europe in Paris from March 19-22.<\/span><\/i><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Developers are constantly balancing demands to provide quality features of the highest standard at a fast pace. Every aspect of business now relies on software, which means developers are constantly working to write and produce the best software they can. Continuous Integration (CI) and Continuous Delivery (CD) help facilitate the creation of that software, but  &hellip; <a class=\"read-more\" href=\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/\">continue reading<\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1205,"featured_media":53784,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"cybocfi_hide_featured_image":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[3999,6116,4,1706],"coauthors":[16859],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The importance of prevention: How shifting left, static analysis and unit testing create better code quality - SD Times<\/title>\n<meta name=\"description\" content=\"Shift-left often appears as a common solution, but to be truly lean and agile we must shift-left on quality that takes into consideration both unit testing and static code analysis.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The importance of prevention: How shifting left, static analysis and unit testing create better code quality - SD Times\" \/>\n<meta property=\"og:description\" content=\"Shift-left often appears as a common solution, but to be truly lean and agile we must shift-left on quality that takes into consideration both unit testing and static code analysis.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/\" \/>\n<meta property=\"og:site_name\" content=\"SD Times\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SDTimesD2\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-15T18:16:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-08T15:31:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Peter McKee\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sdtimes\" \/>\n<meta name=\"twitter:site\" content=\"@sdtimes\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Peter McKee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/\"},\"author\":{\"name\":\"Peter McKee\",\"@id\":\"https:\/\/sdtimes.com\/#\/schema\/person\/f5db650a2b97c76f4b0a61f4b4748cb9\"},\"headline\":\"The importance of prevention: How shifting left, static analysis and unit testing create better code quality\",\"datePublished\":\"2024-02-15T18:16:34+00:00\",\"dateModified\":\"2024-07-08T15:31:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/\"},\"wordCount\":1139,\"publisher\":{\"@id\":\"https:\/\/sdtimes.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp\",\"keywords\":[\"shift-left\",\"static analysis\",\"testing\",\"unit-testing\"],\"articleSection\":[\"Latest News\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/\",\"url\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/\",\"name\":\"The importance of prevention: How shifting left, static analysis and unit testing create better code quality - SD Times\",\"isPartOf\":{\"@id\":\"https:\/\/sdtimes.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp\",\"datePublished\":\"2024-02-15T18:16:34+00:00\",\"dateModified\":\"2024-07-08T15:31:57+00:00\",\"description\":\"Shift-left often appears as a common solution, but to be truly lean and agile we must shift-left on quality that takes into consideration both unit testing and static code analysis.\",\"breadcrumb\":{\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#primaryimage\",\"url\":\"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp\",\"contentUrl\":\"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp\",\"width\":1024,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sdtimes.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The importance of prevention: How shifting left, static analysis and unit testing create better code quality\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sdtimes.com\/#website\",\"url\":\"https:\/\/sdtimes.com\/\",\"name\":\"SD Times\",\"description\":\"Software Development News\",\"publisher\":{\"@id\":\"https:\/\/sdtimes.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sdtimes.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/sdtimes.com\/#organization\",\"name\":\"SD Times\",\"url\":\"https:\/\/sdtimes.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sdtimes.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/sdtimes.com\/wp-content\/uploads\/2014\/05\/deafaultlogo.png\",\"contentUrl\":\"https:\/\/sdtimes.com\/wp-content\/uploads\/2014\/05\/deafaultlogo.png\",\"width\":225,\"height\":90,\"caption\":\"SD Times\"},\"image\":{\"@id\":\"https:\/\/sdtimes.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/SDTimesD2\",\"https:\/\/x.com\/sdtimes\",\"https:\/\/www.linkedin.com\/company\/sdtimes\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/sdtimes.com\/#\/schema\/person\/f5db650a2b97c76f4b0a61f4b4748cb9\",\"name\":\"Peter McKee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sdtimes.com\/#\/schema\/person\/image\/717ae005705b662528c9d67a32521074\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d38ded02d8127fb6f578e8d8ceadf96a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d38ded02d8127fb6f578e8d8ceadf96a?s=96&d=mm&r=g\",\"caption\":\"Peter McKee\"},\"url\":\"https:\/\/sdtimes.com\/author\/peter-mckee\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The importance of prevention: How shifting left, static analysis and unit testing create better code quality - SD Times","description":"Shift-left often appears as a common solution, but to be truly lean and agile we must shift-left on quality that takes into consideration both unit testing and static code analysis.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/","og_locale":"en_US","og_type":"article","og_title":"The importance of prevention: How shifting left, static analysis and unit testing create better code quality - SD Times","og_description":"Shift-left often appears as a common solution, but to be truly lean and agile we must shift-left on quality that takes into consideration both unit testing and static code analysis.","og_url":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/","og_site_name":"SD Times","article_publisher":"https:\/\/www.facebook.com\/SDTimesD2","article_published_time":"2024-02-15T18:16:34+00:00","article_modified_time":"2024-07-08T15:31:57+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp","type":"image\/webp"}],"author":"Peter McKee","twitter_card":"summary_large_image","twitter_creator":"@sdtimes","twitter_site":"@sdtimes","twitter_misc":{"Written by":"Peter McKee","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#article","isPartOf":{"@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/"},"author":{"name":"Peter McKee","@id":"https:\/\/sdtimes.com\/#\/schema\/person\/f5db650a2b97c76f4b0a61f4b4748cb9"},"headline":"The importance of prevention: How shifting left, static analysis and unit testing create better code quality","datePublished":"2024-02-15T18:16:34+00:00","dateModified":"2024-07-08T15:31:57+00:00","mainEntityOfPage":{"@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/"},"wordCount":1139,"publisher":{"@id":"https:\/\/sdtimes.com\/#organization"},"image":{"@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#primaryimage"},"thumbnailUrl":"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp","keywords":["shift-left","static analysis","testing","unit-testing"],"articleSection":["Latest News"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/","url":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/","name":"The importance of prevention: How shifting left, static analysis and unit testing create better code quality - SD Times","isPartOf":{"@id":"https:\/\/sdtimes.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#primaryimage"},"image":{"@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#primaryimage"},"thumbnailUrl":"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp","datePublished":"2024-02-15T18:16:34+00:00","dateModified":"2024-07-08T15:31:57+00:00","description":"Shift-left often appears as a common solution, but to be truly lean and agile we must shift-left on quality that takes into consideration both unit testing and static code analysis.","breadcrumb":{"@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#primaryimage","url":"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp","contentUrl":"https:\/\/sdtimes.com\/wp-content\/uploads\/2024\/02\/DALL\u00b7E-2024-02-15-13.16.17-An-illustrative-and-compelling-image-that-encapsulates-the-theme-The-Importance-of-Prevention_-How-Shifting-Left-Static-Analysis-and-Unit-Testing-Cr.webp","width":1024,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/sdtimes.com\/test\/the-importance-of-prevention-how-shifting-left-static-analysis-and-unit-testing-create-better-code-quality\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sdtimes.com\/"},{"@type":"ListItem","position":2,"name":"The importance of prevention: How shifting left, static analysis and unit testing create better code quality"}]},{"@type":"WebSite","@id":"https:\/\/sdtimes.com\/#website","url":"https:\/\/sdtimes.com\/","name":"SD Times","description":"Software Development News","publisher":{"@id":"https:\/\/sdtimes.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sdtimes.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/sdtimes.com\/#organization","name":"SD Times","url":"https:\/\/sdtimes.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sdtimes.com\/#\/schema\/logo\/image\/","url":"https:\/\/sdtimes.com\/wp-content\/uploads\/2014\/05\/deafaultlogo.png","contentUrl":"https:\/\/sdtimes.com\/wp-content\/uploads\/2014\/05\/deafaultlogo.png","width":225,"height":90,"caption":"SD Times"},"image":{"@id":"https:\/\/sdtimes.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/SDTimesD2","https:\/\/x.com\/sdtimes","https:\/\/www.linkedin.com\/company\/sdtimes\/"]},{"@type":"Person","@id":"https:\/\/sdtimes.com\/#\/schema\/person\/f5db650a2b97c76f4b0a61f4b4748cb9","name":"Peter McKee","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sdtimes.com\/#\/schema\/person\/image\/717ae005705b662528c9d67a32521074","url":"https:\/\/secure.gravatar.com\/avatar\/d38ded02d8127fb6f578e8d8ceadf96a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d38ded02d8127fb6f578e8d8ceadf96a?s=96&d=mm&r=g","caption":"Peter McKee"},"url":"https:\/\/sdtimes.com\/author\/peter-mckee\/"}]}},"_links":{"self":[{"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/posts\/53782"}],"collection":[{"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/users\/1205"}],"replies":[{"embeddable":true,"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/comments?post=53782"}],"version-history":[{"count":4,"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/posts\/53782\/revisions"}],"predecessor-version":[{"id":55117,"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/posts\/53782\/revisions\/55117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/media\/53784"}],"wp:attachment":[{"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/media?parent=53782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/categories?post=53782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/tags?post=53782"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/sdtimes.com\/wp-json\/wp\/v2\/coauthors?post=53782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}