{"id":8386,"date":"2025-09-12T06:10:10","date_gmt":"2025-09-12T06:10:10","guid":{"rendered":"https:\/\/studysection.com\/blog\/?p=8386"},"modified":"2025-09-12T06:15:47","modified_gmt":"2025-09-12T06:15:47","slug":"what-are-code-smells","status":"publish","type":"post","link":"https:\/\/studysection.com\/blog\/what-are-code-smells\/","title":{"rendered":"What Are Code Smells?"},"content":{"rendered":"<p>Code smells are patterns in code that may indicate a deeper problem. They don\u2019t break your program, but they often:<\/p>\n<ul>\n<li>Make the system harder to maintain<\/li>\n<li>Increase the risk of future bugs<\/li>\n<li>Complicated testing and debugging<\/li>\n<li>Cause failure under complex conditions<\/li>\n<\/ul>\n<p><strong>Refactoring<\/strong><\/p>\n<p>Refactoring involves enhancing a program\u2019s internal structure while keeping its external behavior unchanged, making the code more readable and maintainable.<br \/>\nCode smells are signals that refactoring is needed.<\/p>\n<p><strong>Benefits of Refactoring<\/strong><\/p>\n<ul>\n<li>Reduces code complexity<\/li>\n<li>Improves clarity and readability<\/li>\n<li>Makes future updates easier<\/li>\n<li>Helps enforce design principles<\/li>\n<li>Enables easier testing and debugging<\/li>\n<\/ul>\n<p><strong>Common Code Smells and How to Address Them<\/strong><\/p>\n<p><strong>1. Excessive Comments<\/strong><\/p>\n<p>Comments are helpful when used appropriately, but too many comments may suggest that the code isn&#8217;t self-explanatory.<\/p>\n<p><strong>Bad Example:<\/strong><br \/>\n<a href=\"https:\/\/studysection.com\/blog\/command-design-pattern-in-python\/\">python<\/a><\/p>\n<pre><code># Calculate final price with tax\r\nfinal_price = price * 1.18<\/code><\/pre>\n<p><strong>Refactored:<\/strong><br \/>\npython<\/p>\n<pre><code>final_price = calculate_price_with_tax(price)\r\ndef calculate_price_with_tax(price):\r\nreturn price * 1.18<\/code><\/pre>\n<p><strong>Use comments when:<\/strong><\/p>\n<ul>\n<li>Explaining &#8220;why&#8221; something is done a certain way<\/li>\n<li>Clarifying complex or unusual logic<\/li>\n<li>Leaving notes for future improvements or fixes<\/li>\n<li>Highlighting assumptions (e.g., &#8220;user_data is already validated&#8221;)<\/li>\n<\/ul>\n<p><strong>Avoid comments like:<\/strong><br \/>\npython<\/p>\n<pre><code>x = 5  # Set x to 5  # Obvious and unnecessary<\/code><\/pre>\n<p><strong>2. Long Methods<\/strong><br \/>\nA method that does too many things becomes difficult to read, test, and maintain.<br \/>\n<strong>Example of a long method:<\/strong><br \/>\npython<\/p>\n<pre><code>def generate_report(data):\r\n# Processes data, calculates stats, prints results\r\n...<\/code><\/pre>\n<p><strong>Refactored:<\/strong><br \/>\nBreak into focused helper methods:<br \/>\npython<\/p>\n<pre><code>def generate_report(data):\r\ntotal, count, average = calculate_summary(data)\r\nprint_summary(total, count, average)\r\nprint_high_value_sales(data)\r\nprint_returns(data)<\/code><\/pre>\n<p>Each method now does one task, following the Single Responsibility Principle.<\/p>\n<p><strong>3. Long Parameter List<\/strong><br \/>\nFunctions that require many parameters can be confusing and error-prone.<\/p>\n<p><strong>Bad:<\/strong><br \/>\ncsharp<\/p>\n<pre><code>RegisterUser(string firstName, string lastName, string email, string phone, string address, DateTime dob, string password)<\/code><\/pre>\n<p><strong>Improved:<\/strong><\/p>\n<ul>\n<li>Use a data class<\/li>\n<\/ul>\n<pre><code>public void RegisterUser(UserRegistrationInfo info)<\/code><\/pre>\n<ul>\n<li>Use optional parameters if applicable<\/li>\n<li>For more flexibility, apply the Builder Pattern<\/li>\n<\/ul>\n<p><strong>4. Large Class<\/strong><br \/>\nA class handling too many responsibilities becomes hard to maintain.<br \/>\n<strong>Problematic Class:<\/strong><\/p>\n<pre><code>public class Employee\r\n{\r\n\/\/ Manages data, business logic, reporting, and persistence\r\n}<\/code><\/pre>\n<p><strong>Refactored Approach:<\/strong><br \/>\nSplit into multiple classes:<\/p>\n<ul>\n<li>Employee: Data and business rules<\/li>\n<li>PayrollService: Handles salary calculations<\/li>\n<li>ReportingService: Generates reports<\/li>\n<li>EmployeeRepository: Manages database operations<\/li>\n<\/ul>\n<p>This approach aligns with the Single Responsibility Principle.<\/p>\n<p><strong>5. Inconsistent Naming<\/strong><br \/>\nPoor naming conventions reduce readability and introduce confusion.<br \/>\n<strong>Bad Example:<\/strong><\/p>\n<pre><code>public class emp { public int id; public string name; }<\/code><\/pre>\n<p>Improved:<\/p>\n<p>public class Employee<\/p>\n<pre><code>{\r\npublic int EmployeeId { get; set; }\r\npublic string FullName { get; set; }\r\n}<\/code><\/pre>\n<p><strong>Recommended Naming Conventions:<\/strong><\/p>\n<table style=\"border-collapse: collapse; width: 100%; text-align: left;\" border=\"1\" cellspacing=\"0\" cellpadding=\"8\">\n<thead style=\"background-color: #f2f2f2;\">\n<tr>\n<th>Element<\/th>\n<th>Convention<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Classes<\/td>\n<td>PascalCase<\/td>\n<td>Employee, Order<\/td>\n<\/tr>\n<tr>\n<td>Methods<\/td>\n<td>PascalCase (or snake_case in Python)<\/td>\n<td>CalculateTotal()<\/td>\n<\/tr>\n<tr>\n<td>Properties<\/td>\n<td>PascalCase<\/td>\n<td>FirstName, Amount<\/td>\n<\/tr>\n<tr>\n<td>Fields<\/td>\n<td>camelCase or _camelCase<\/td>\n<td>totalPrice, _count<\/td>\n<\/tr>\n<tr>\n<td>Local variables<\/td>\n<td>camelCase<\/td>\n<td>userId, balance<\/td>\n<\/tr>\n<tr>\n<td>Constants<\/td>\n<td>PascalCase<\/td>\n<td>MaxLimit, TaxRate<\/td>\n<\/tr>\n<tr>\n<td>Interfaces<\/td>\n<td>Prefix with &#8216;I&#8217;<\/td>\n<td>IRepository<\/td>\n<\/tr>\n<tr>\n<td>Enums<\/td>\n<td>PascalCase<\/td>\n<td>OrderStatus<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>6. Deep Nesting<\/strong><br \/>\nNested code blocks make logic harder to follow and maintain.<br \/>\n<strong>Deep Nesting Example:<\/strong><\/p>\n<pre><code>if (list != null)\r\n{\r\n    foreach (var item in list)\r\n    {\r\n        if (item &gt; 0)\r\n        {\r\n            if (item % 2 == 0)\r\n            {\r\n                Console.WriteLine(item);\r\n            }\r\n        }\r\n    }\r\n}<\/code><\/pre>\n<p><strong>Refactored Using Guard Clauses:<\/strong><\/p>\n<pre><code>if (list == null) return;\r\n\r\nforeach (var item in list)\r\n{\r\n    if (item &lt;= 0 || item % 2 != 0) continue;\r\n\r\n    Console.WriteLine(item);\r\n}\r\n\r\nFurther Refactor:\r\nMove logic to a helper method:\r\n\r\n\r\nforeach (var item in list)\r\n{\r\n    ProcessItem(item);\r\n}\r\n\r\nvoid ProcessItem(int item)\r\n{\r\n    if (item &lt;= 0 || item % 2 != 0) return;\r\n    Console.WriteLine(item);\r\n} <\/code><\/pre>\n<p><strong>Replacing Conditional Logic with Strategy Pattern<\/strong><br \/>\nBefore (using if-else):<\/p>\n<pre><code>if (type == \"Regular\") return amount * 0.05;\r\nelse if (type == \"Premium\") return amount * 0.1;\r\nelse return 0;\r\n\r\nRefactored using Strategy Pattern:\r\nCreate an interface:\r\n\r\ncsharp\r\n\r\npublic interface IDiscountStrategy\r\n{\r\n    double GetDiscount(double amount);\r\n}\r\n\r\nImplement different strategies:\r\n\r\ncsharp\r\n\r\npublic class RegularDiscount : IDiscountStrategy\r\n{\r\n    public double GetDiscount(double amount) =&gt; amount * 0.05;\r\n}\r\n\r\npublic class PremiumDiscount : IDiscountStrategy\r\n{\r\n    public double GetDiscount(double amount) =&gt; amount * 0.10;\r\n}\r\n\r\nUse a factory or context to apply the strategy:\r\n\r\ncsharp\r\n\r\npublic class DiscountContext\r\n{\r\n    private readonly IDiscountStrategy _strategy;\r\n\r\n    public DiscountContext(IDiscountStrategy strategy)\r\n    {\r\n        _strategy = strategy;\r\n    }\r\n\r\n    public double ApplyDiscount(double amount) =&gt; _strategy.GetDiscount(amount);\r\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Code smells are patterns in code that may indicate a deeper problem. They don\u2019t break your program, but they often:<\/p>\n","protected":false},"author":1,"featured_media":8387,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What Are Code Smells?<\/title>\n<meta name=\"description\" content=\"Code smells are patterns in code that may indicate a deeper problem. Code smells are signals that refactoring is needed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/studysection.com\/blog\/what-are-code-smells\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Are Code Smells?\" \/>\n<meta property=\"og:description\" content=\"Code smells are patterns in code that may indicate a deeper problem. Code smells are signals that refactoring is needed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/studysection.com\/blog\/what-are-code-smells\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Posts on famous people, innovations and educational topics\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/studysection\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-12T06:10:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-12T06:15:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2025\/09\/Memento-Pattern-in-Python-with-Examples-3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"940\" \/>\n\t<meta property=\"og:image:height\" content=\"788\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin-studysection-blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@studysection\" \/>\n<meta name=\"twitter:site\" content=\"@studysection\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin-studysection-blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/studysection.com\/blog\/what-are-code-smells\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/what-are-code-smells\/\"},\"author\":{\"name\":\"admin-studysection-blog\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\"},\"headline\":\"What Are Code Smells?\",\"datePublished\":\"2025-09-12T06:10:10+00:00\",\"dateModified\":\"2025-09-12T06:15:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/studysection.com\/blog\/what-are-code-smells\/\"},\"wordCount\":372,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"articleSection\":[\"Learn and Grow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/studysection.com\/blog\/what-are-code-smells\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/studysection.com\/blog\/what-are-code-smells\/\",\"url\":\"https:\/\/studysection.com\/blog\/what-are-code-smells\/\",\"name\":\"What Are Code Smells?\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/#website\"},\"datePublished\":\"2025-09-12T06:10:10+00:00\",\"dateModified\":\"2025-09-12T06:15:47+00:00\",\"description\":\"Code smells are patterns in code that may indicate a deeper problem. Code smells are signals that refactoring is needed.\",\"breadcrumb\":{\"@id\":\"https:\/\/studysection.com\/blog\/what-are-code-smells\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/studysection.com\/blog\/what-are-code-smells\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/studysection.com\/blog\/what-are-code-smells\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/studysection.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What Are Code Smells?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/studysection.com\/blog\/#website\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"name\":\"Blog Posts on famous people, innovations and educational topics\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/studysection.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/studysection.com\/blog\/#organization\",\"name\":\"StudySection\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"contentUrl\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"width\":920,\"height\":440,\"caption\":\"StudySection\"},\"image\":{\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/studysection\",\"https:\/\/twitter.com\/studysection\",\"https:\/\/www.instagram.com\/study.section\/\",\"https:\/\/www.linkedin.com\/company\/studysection\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\",\"name\":\"admin-studysection-blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"caption\":\"admin-studysection-blog\"},\"url\":\"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Are Code Smells?","description":"Code smells are patterns in code that may indicate a deeper problem. Code smells are signals that refactoring is needed.","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:\/\/studysection.com\/blog\/what-are-code-smells\/","og_locale":"en_US","og_type":"article","og_title":"What Are Code Smells?","og_description":"Code smells are patterns in code that may indicate a deeper problem. Code smells are signals that refactoring is needed.","og_url":"https:\/\/studysection.com\/blog\/what-are-code-smells\/","og_site_name":"Blog Posts on famous people, innovations and educational topics","article_publisher":"https:\/\/www.facebook.com\/studysection","article_published_time":"2025-09-12T06:10:10+00:00","article_modified_time":"2025-09-12T06:15:47+00:00","og_image":[{"width":940,"height":788,"url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2025\/09\/Memento-Pattern-in-Python-with-Examples-3.png","type":"image\/png"}],"author":"admin-studysection-blog","twitter_card":"summary_large_image","twitter_creator":"@studysection","twitter_site":"@studysection","twitter_misc":{"Written by":"admin-studysection-blog","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/studysection.com\/blog\/what-are-code-smells\/#article","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/what-are-code-smells\/"},"author":{"name":"admin-studysection-blog","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402"},"headline":"What Are Code Smells?","datePublished":"2025-09-12T06:10:10+00:00","dateModified":"2025-09-12T06:15:47+00:00","mainEntityOfPage":{"@id":"https:\/\/studysection.com\/blog\/what-are-code-smells\/"},"wordCount":372,"commentCount":0,"publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"articleSection":["Learn and Grow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/studysection.com\/blog\/what-are-code-smells\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/studysection.com\/blog\/what-are-code-smells\/","url":"https:\/\/studysection.com\/blog\/what-are-code-smells\/","name":"What Are Code Smells?","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/#website"},"datePublished":"2025-09-12T06:10:10+00:00","dateModified":"2025-09-12T06:15:47+00:00","description":"Code smells are patterns in code that may indicate a deeper problem. Code smells are signals that refactoring is needed.","breadcrumb":{"@id":"https:\/\/studysection.com\/blog\/what-are-code-smells\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/studysection.com\/blog\/what-are-code-smells\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/studysection.com\/blog\/what-are-code-smells\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/studysection.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What Are Code Smells?"}]},{"@type":"WebSite","@id":"https:\/\/studysection.com\/blog\/#website","url":"https:\/\/studysection.com\/blog\/","name":"Blog Posts on famous people, innovations and educational topics","description":"","publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/studysection.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/studysection.com\/blog\/#organization","name":"StudySection","url":"https:\/\/studysection.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","contentUrl":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","width":920,"height":440,"caption":"StudySection"},"image":{"@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/studysection","https:\/\/twitter.com\/studysection","https:\/\/www.instagram.com\/study.section\/","https:\/\/www.linkedin.com\/company\/studysection"]},{"@type":"Person","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402","name":"admin-studysection-blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","caption":"admin-studysection-blog"},"url":"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/"}]}},"views":66,"_links":{"self":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/8386"}],"collection":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/comments?post=8386"}],"version-history":[{"count":4,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/8386\/revisions"}],"predecessor-version":[{"id":8391,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/8386\/revisions\/8391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media\/8387"}],"wp:attachment":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media?parent=8386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/categories?post=8386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/tags?post=8386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}