<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Software-Development on</title><link>https://codeinfocus.com/series/software-development/</link><description>Recent content in Software-Development on</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 06 Sep 2021 11:22:18 +0300</lastBuildDate><atom:link href="https://codeinfocus.com/series/software-development/index.xml" rel="self" type="application/rss+xml"/><item><title>Circular Dependencies</title><link>https://codeinfocus.com/blog/2021-09/circular-dependencies/</link><pubDate>Mon, 06 Sep 2021 11:22:18 +0300</pubDate><guid>https://codeinfocus.com/blog/2021-09/circular-dependencies/</guid><description>&lt;p&gt;&lt;em&gt;Updated on January 3, 2023&lt;/em&gt;&lt;/p&gt;
&lt;h2 id="what-are-circular-dependencies"&gt;What are Circular Dependencies?&lt;/h2&gt;
&lt;p&gt;A circular dependency is when one of your modules imports another modules, which directly or via other modules imports the first module.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Examples:&lt;/em&gt;
Direct reference: &lt;code&gt;A -&amp;gt; B -&amp;gt; A&lt;/code&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-javascript" data-lang="javascript"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;// a.js
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;import&lt;/span&gt; { &lt;span style="color:#a6e22e"&gt;b&lt;/span&gt; } &lt;span style="color:#a6e22e"&gt;from&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#39;./b.js&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;// b.js
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;import&lt;/span&gt; { &lt;span style="color:#a6e22e"&gt;a&lt;/span&gt; } &lt;span style="color:#a6e22e"&gt;from&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#39;./a.js&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Indirect reference: &lt;code&gt;A -&amp;gt; B -&amp;gt; C -&amp;gt; A&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>