<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rashad Yusifli on Medium]]></title>
        <description><![CDATA[Stories by Rashad Yusifli on Medium]]></description>
        <link>https://medium.com/@swe.rashad?source=rss-3ea03ac9009b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aXp-F-DoMFEDRhpwoWKPVQ.png</url>
            <title>Stories by Rashad Yusifli on Medium</title>
            <link>https://medium.com/@swe.rashad?source=rss-3ea03ac9009b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 11:07:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swe.rashad/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Optimizing Merge Requests with Danger.js: Automating Code Review Workflows]]></title>
            <link>https://medium.com/@swe.rashad/optimizing-merge-requests-with-danger-js-automating-code-review-workflows-adc78db60e9f?source=rss-3ea03ac9009b------2</link>
            <guid isPermaLink="false">https://medium.com/p/adc78db60e9f</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Rashad Yusifli]]></dc:creator>
            <pubDate>Mon, 07 Sep 2026 08:36:50 GMT</pubDate>
            <atom:updated>2026-09-07T08:36:50.529Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yycEZZ2t7wGPocCIuYk5eg.png" /></figure><p>Code review is an important part of software development. It helps teams find problems, improve code quality, and share knowledge.</p><p>However, when a project becomes bigger, code review can also become repetitive. Reviewers often check the same things again and again:</p><ol><li>Is the Merge Request description filled in?</li><li>Is the MR too large?</li><li>Were tests added?</li><li>Was the changelog updated?</li><li>Are there unnecessary files?</li><li>Is there any unnecessary debugging code?</li><li>Does this change need a specific reviewer?</li></ol><p>These checks are usually simple and predictable. So, instead of asking developers to check them manually every time, we can automate them. This is where <strong>Danger.js</strong> can be useful.</p><h3><strong>What is Danger.js?</strong></h3><p>Danger is a NPM module that evals a Dangerfile. You set up a Dangerfile per-project. The Dangerfile contains a collection of home-grown rules specific to your project as a dangerfile.js or dangerfile.ts.</p><p><strong>Danger.js</strong> helps us automate checks for Pull Requests and Merge Requests. We can define our own rules using JavaScript or TypeScript.</p><p><strong>For example:</strong></p><pre>// rules/checkMrDescription.ts<br>if (danger.gitlab.mr.description.length &lt; 20) {<br>   warn(&quot;Please provide a more detailed description for this MR.&quot;);<br>}</pre><p>Now, every Merge Request can be checked automatically.</p><p>The goal is not to replace code review. The goal is to remove repetitive checks so reviewers can focus on more important things.</p><h3>Installing Danger JS</h3><p>You can find the installation instructions in the official <a href="https://danger.systems/js/">Danger JS documentation</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*plSYAWKySRhA2HwSPGXeIg.png" /></figure><p><strong>Danger JS </strong>is usually integrated into your CI/CD pipeline, where it runs automatically during Pull Request or Merge Request workflows. It can be used with platforms such as GitHub, GitLab, and Bitbucket to review changes and provide automated feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZod0d5rYwRORjQAR5CBzg.png" /></figure><h3>The Problem with Large Merge Requests</h3><p>One common problem is having very large Merge Requests. Large MRs are harder to review because the reviewer needs to understand a lot of changes at once.</p><pre>Changed files: 47<br>Lines added: 1,823<br>Lines removed: 642</pre><p>This can make the review process slower and also increase the chance of missing something.</p><p>We can use Danger.js to detect large MRs:</p><pre>// rules/checkLargeMr.ts<br>const modifiedFiles = danger.git.modified_files;<br>if (modifiedFiles.length &gt; 30) { <br>  warn(`This MR modifies ${modifiedFiles.length} files. Consider splitting it into smaller MRs.`); <br>}</pre><p>This doesn’t have to block the MR. It simply warns the developer that the change may be too large.</p><h3>Checking for Tests</h3><p>Another useful check is looking for tests.</p><p>For example, if source code changes but no test files are changed, <strong>Danger.js</strong> can warn the developer.</p><pre>// rules/modifiedTestFiles.ts<br><br>const modifiedFiles = danger.git.modified_files;<br><br>const hasTests = modifiedFiles.some(file =&gt;<br>/\.(test|spec)\.(ts|tsx|js|jsx)$/.test(file)<br>);<br><br>const hasSourceChanges = modifiedFiles.some(file =&gt;<br>/^src\/.*\.(ts|tsx|js|jsx)$/.test(file)<br>);<br><br>if (hasSourceChanges &amp;&amp; !hasTests) {<br>warn(&quot;Source code changed, but no test files were modified.&quot;);<br>}</pre><p>Of course, not every code change needs a new test. For this reason, this should usually be a warning instead of a hard failure. The purpose is to remind the developer, not to block every MR.</p><h3>Checking MR Titles and Jira Tickets</h3><p>Another useful thing we can check is the Merge Request title. In many teams, there is a simple naming convention for MRs. For example:</p><p><strong>Good</strong></p><pre>[PROJ-123] Add transaction filters</pre><p><strong>Not so good</strong></p><pre>fix stuff</pre><p>If the project uses Jira, we can also make sure that the Jira ticket is included in the MR title.</p><p>This makes it easier to understand what the MR is about and connect the code change with the related task.</p><p>For example:</p><pre>[SME-123] Update payment form validation</pre><p>is much more useful than:</p><pre>Update payment form</pre><p>Checking Jira ticket pattern in MR title. For example:</p><pre>// rules/checkMrTitle.ts<br>const mrTitle = danger.gitlab.mr.title;<br>const jiraPattern = /[A-Z]+-\d+/;<br><br>if (!jiraPattern.test(mrTitle)) {<br>  warn(&quot;Please include a Jira ticket key in the MR title (e.g., [SME-123]).&quot;);<br>}</pre><h3>Conclusion</h3><p>Automation won’t replace human judgment, and it shouldn’t. Tools like Danger.js simply clear away the repetitive work. Like checking description length or formatting , so engineering teams can focus on what actually matters: code architecture, security, and logic etc..</p><p>Once you automate the basics in your CI/CD pipeline, code reviews get faster, reviewers save time, and your codebase stays clean without extra effort.</p><h3>Thank you for reading ❤️</h3><p><strong>Linkedin: </strong><a href="https://www.linkedin.com/in/rashad-yusifli-521a46202/">https://www.linkedin.com/in/rashad-yusifli-521a46202/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adc78db60e9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trunk-Based Development: Why Small Changes Win]]></title>
            <link>https://medium.com/@swe.rashad/trunk-based-development-why-small-changes-win-133b15e6c8aa?source=rss-3ea03ac9009b------2</link>
            <guid isPermaLink="false">https://medium.com/p/133b15e6c8aa</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Rashad Yusifli]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 12:10:16 GMT</pubDate>
            <atom:updated>2026-08-13T12:10:16.723Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>What is Trunk-Based Development?</em></strong></h3><p>Trunk-Based Development is a way of working where developers avoid keeping their changes in separate branches for a long time.</p><p>Instead, they make small changes and merge them into the <strong>main</strong> branch frequently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZIgXHuihA3uxxyYCFMvKwg.png" /></figure><p>The idea is simple: <strong>don’t keep your code separate from the rest of the team for too long.</strong></p><p><strong>This doesn’t mean branches are forbidden.</strong> Short-lived branches are still fine. The important part is that they don’t stay separate from main for too long.</p><h3>What problem does it solve?</h3><p>The main problem is merging changes after working separately for a long time.</p><p>Imagine you create a branch and work on it for a few days.</p><p>During this time,<strong> other developers are changing the same code</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i00JhaHIIiGDoRCJhlnnUg.png" /></figure><p>Meanwhile<strong>, your branch still has:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYm3YOZgEShgH7Fz34ap7g.png" /></figure><p>After a few days, you try to <strong>merge your branch</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w4U-AacNULvg-5l2GPtM_g.png" /></figure><p>Now you have to figure out which changes should stay and which ones should be removed.</p><p>The problem isn’t only Git conflicts. During this time:</p><ul><li>other code has changed;</li><li>APIs may have changed;</li><li>requirements may have changed;</li><li>your implementation may no longer fit the rest of the application.</li></ul><p>Trunk-Based Development reduces this problem by bringing small changes into<strong> </strong>main<strong> </strong>regularly instead of combining a huge amount of work at the end<strong>.</strong></p><h3>But what if the change isn’t ready for production?</h3><p>With Trunk-Based Development, we want to merge small changes into main frequently. But sometimes the code is ready to be merged while the feature itself isn&#39;t ready for users.</p><p>This is where <strong>Feature Flags</strong> help.</p><p>A feature flag is simply a switch that controls whether a feature is enabled or disabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WhnVZYsCbKl3rKqNU2Eotw.png" /></figure><p>The code can be merged and deployed to production while the flag is still false.</p><p>When the feature is ready:</p><p>the feature flag should be on: <strong><em>featureFlags</em></strong><em>.</em><strong><em>isNewPaymentFlowEnabled=true</em></strong></p><p>This allows us to deploy the code without releasing the feature to users.<br>Instead of keeping unfinished work in a long-lived branch, we can merge it into main and enable it when it&#39;s ready.</p><h3><strong>Thank you for reading </strong>❤️</h3><p><strong>Linkedin: </strong><a href="https://www.linkedin.com/in/rashad-yusifli-521a46202/">https://www.linkedin.com/in/rashad-yusifli-521a46202/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=133b15e6c8aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Frontend Development Still Just About Building UI?]]></title>
            <link>https://medium.com/@swe.rashad/is-frontend-development-still-just-about-building-ui-4e10ee929e15?source=rss-3ea03ac9009b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e10ee929e15</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Rashad Yusifli]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 15:46:44 GMT</pubDate>
            <atom:updated>2026-08-13T12:07:48.796Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*t9lD7EmPt2mc7we4OfJUiw.jpeg" /><figcaption>That’s what the jQuery era was like 🙂</figcaption></figure><p>A few years ago, when JQuery ruled the web, the frontend developer&#39;s job was simple. You built the UI, integrated CRUD operations with Jquery Ajax, and manipulated the DOM based on the response.</p><p>Back then, most frontend developers wrote their code inside server-side rendered files like PHP templates and Blade files.</p><p><strong>That does not mean it was too easy</strong></p><p>Building complex UI interactions with JQuery required real skill. Smooth animations, dynamic content updates, cross-browser compatibility, these were genuinely hard problems to solve because there wasn’t much libraries compared to today. but the frontend development’s concepts were fewer.</p><p>Even in the jQuery era, large-scale systems like Twitter and WordPress were built with complex UI interactions. The foundations of good software engineering mattered then just as they do now.</p><h3>But today, things are very different compared to the past.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*a_nvzvzc2d7-5VdhCaRppQ.jpeg" /><figcaption>The picture literally explain, how hard to center a div 😅</figcaption></figure><p>When <strong>Angular</strong>, <strong>Vue</strong>, <strong>React</strong>, and <strong>TypeScript</strong> started rising, modern frontend development introduced a whole new set of concepts.</p><p>Simply knowing how to manipulate the DOM was no longer enough. Frontend developers also needed to understand the <strong>Virtual DOM</strong>, <strong>two-way data binding</strong>, <strong>MVC patterns</strong>, <strong>component-based architecture</strong>, and <strong>state management.</strong></p><p>Deep knowledge of <strong>JavaScript</strong> alone is no longer enough. Today, you also need to understand how <strong>SSR</strong> works, what <strong>hydration</strong> means, when to use <strong>server components,</strong> and the principles of <strong>SPA</strong> architecture.</p><h3>Same job title, Different Reality</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FH25XXp-rUr4BokWtiDjtA.jpeg" /></figure><p>With modern SSR frameworks such as <strong>Next.js, Nuxt.js</strong>. The role of a frontend developer has evolved even further.</p><p>Today, frontend developers are not just writing client-side code. They are also working with server-side rendering, routing systems, API layers, caching strategies, and performance optimizations, that previously belonged mostly to backend development.</p><p>In many cases, most of frontend developers now handle how<strong> </strong>server-side logic works, how rendering happens on the server, and how modern deployment tools deliver applications to production.</p><p>Because of these changes, the modern frontend developer is no longer just a “frontend developer”. The role now often requires understanding server-side behavior, testing strategies, deployment workflows, infrastructure and the overall lifecycle of a product.</p><p>The job title may be the same, but the reality of frontend development has changed completely.</p><p><strong>Thank you for reading </strong>❤️</p><p><strong>Linkedin: </strong><a href="https://www.linkedin.com/in/rashad-yusifli-521a46202/">https://www.linkedin.com/in/rashad-yusifli-521a46202/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e10ee929e15" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>