<?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 Lev Kulakov on Medium]]></title>
        <description><![CDATA[Stories by Lev Kulakov on Medium]]></description>
        <link>https://medium.com/@leokulakao?source=rss-6cfd9c4c825b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Y8zFlitr9Tglts2ehBiD0A.jpeg</url>
            <title>Stories by Lev Kulakov on Medium</title>
            <link>https://medium.com/@leokulakao?source=rss-6cfd9c4c825b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:09:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@leokulakao/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[Stop Confusing Your Users: The Art of Writing Changelogs That Actually Matter]]></title>
            <link>https://medium.com/@leokulakao/stop-confusing-your-users-the-art-of-writing-changelogs-that-actually-matter-5b19aaa1dc51?source=rss-6cfd9c4c825b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b19aaa1dc51</guid>
            <category><![CDATA[release-notes]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[project-management]]></category>
            <dc:creator><![CDATA[Lev Kulakov]]></dc:creator>
            <pubDate>Thu, 31 Jul 2025 16:44:20 GMT</pubDate>
            <atom:updated>2025-07-31T16:44:20.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cu00-7TQf0DoiU3gq458wA@2x.jpeg" /><figcaption>Photo by <a href="https://behance.net/thehalaldesign">Ubaid E. Alyafizi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Current project development methodologies are laser-focused on iteration. This approach helps us keep our products in a state of constant evolution – which is perfectly normal since stakeholders continuously request new features while demanding stability in the current product.</p><p>Have you ever experienced a client asking what exactly changed in the latest application update, only to realize they have no clue? Or perhaps your developers are wandering around confused, unsure which version of their product is actually running in production? While this article won’t dive into team coordination failures, we will explore a topic that can structure the entire lifecycle of your product.</p><p>But first, let’s revisit the core concepts behind changelogs and release notes.</p><h3>📝 What is a Changelog?</h3><p>A <strong>changelog</strong> is a file containing a chronologically ordered list of notable changes for each version of a project. When Git revolutionized version control, the concept of chronological lists became essential to our projects – after all, we’re all accustomed to making commits.</p><p>A chronological list makes it effortless for consumers to see exactly what changes have been implemented within a product. As products grow and the number of contributors increases, a chronological history provides the same context to everyone. The primary audience for changelogs are contributors – those who stay informed about features and primarily develop the project itself.</p><p>Since we’re discussing this in a programming context, this article will reference the <a href="https://www.conventionalcommits.org/en/v1.0.0/"><strong>Conventional Commits</strong></a> specification, which pairs beautifully with the <a href="https://semver.org/"><strong>SemVer</strong></a><strong> </strong>versioning specification.</p><p><a href="https://github.com/angular/angular">Angular Github</a> serves as an excellent example of conventional commits with SemVer. By glancing at their commit list, you can instantly grasp what’s happening in the project and identify commits that directly influence the project code (feat, refactor, fix) versus those that add documentation or other related materials (docs, chore, build).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ssFdw0fwGkeqE8wbocTe-A@2x.jpeg" /></figure><p>A systematic commit history enables you to generate clean, precise changelogs. Additionally, using <strong>SemVer</strong> establishes version identifiers that clearly communicate how the version impacts consumers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AslS5AqJwSqh9eEMxWbn7g@2x.jpeg" /></figure><p>In this PATCH version example, our changelog contains only fixes for existing features, indicating that changes are completely compatible with the previous version.</p><h3>🎉 What are Release Notes?</h3><p><strong>Release notes</strong> serve as your users’ gateway to new features. They’re documents describing changes between product versions, primarily focused not on contributors, but on end consumers.</p><p>Every release begins with release notes because they define the new version itself. Distribution systems like the App Store, Google Play, or your product’s own website provide perfect venues for sharing brief updates about feature improvements.</p><p>But what should you include in release notes? Answering this question requires intimate knowledge of your feature development process as requested by stakeholders. In other words, understanding what you’re building and maintaining solid planning helps you identify which features – or parts of them – are included in your version.</p><p><a href="https://blog.angular.dev/angular-19-2-is-now-available-673ec70aea12">Angular</a> provides an excellent example of comprehensive, well-explained release notes through their blog articles, as does <a href="https://expo.dev/changelog/sdk-53">Expo</a> with their detailed explanations and examples. While these release notes target programmers, they remain completely comprehensible to library consumers. They don’t expose the development history but rather provide update explanations that answer: <em>What changed in the new version? How does the new version benefit me?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t0t0tF8qK2ElsomG3cx_IQ@2x.jpeg" /></figure><p>Release notes can also be concise when there aren’t extensive changes or lengthy explanations aren’t necessary. Such brief notes work well for organizations wanting to keep consumers informed when changes don’t significantly impact the public enough to warrant detailed examples.</p><p>In the following example, we see release notes from the <a href="https://www.craft.do/">Craft</a> app in the App Store, briefly explaining exactly what changed and how it benefits users. We don’t see the development history, but we get a snapshot of what matters to us. When platforms don’t allow extended explanations, provide more comprehensive information through other channels – as Craft did with their “<a href="https://www.craft.do/whats-new">What’s New</a>” page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*Y_iQcuJDX6xnjtX_pPGd6Q@2x.jpeg" /></figure><h3>🌟 Simplify Your Life</h3><p>As the tech world moves at breakneck speed, we need to organize work within our products to provide transparency and clarity to both contributors and consumers.</p><p>Implementing structured <strong>changelogs</strong> and thoughtful <strong>release notes</strong> isn’t just about documentation – it’s about creating a sustainable development culture where everyone knows what’s happening, when it’s happening, and why it matters. Your future self (and your team) will thank you for this organizational foresight.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b19aaa1dc51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Solo to Duo: Transitioning to Pair Programming]]></title>
            <link>https://medium.com/@leokulakao/from-solo-to-duo-transitioning-to-pair-programming-5d03d12577e3?source=rss-6cfd9c4c825b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d03d12577e3</guid>
            <category><![CDATA[training]]></category>
            <category><![CDATA[pair-programming]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[productivity-hacks]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Lev Kulakov]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 11:53:12 GMT</pubDate>
            <atom:updated>2025-03-28T11:53:12.152Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HDm57USAS_B9Z-E8" /><figcaption>Photo by <a href="https://unsplash.com/@claybanks?utm_source=medium&amp;utm_medium=referral">Clay Banks</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When we talk about programming, we often mention estimates, construction, design, requirements, testing, and more. An integral part that links all these elements is collaboration. Collaboration among different team members and across various teams is what makes reaching the final goal possible.</p><p>By the nature of technical and engineering professions, we often work in solitude to achieve greater concentration and flexibility when making certain decisions. This allows us to have more flexibility and care for our mental and emotional state. However, we still need to use certain collaboration techniques that are more effective in specific areas. In this article, we’ll explore the benefits of pair programming and how to implement it if you’ve never participated in a pairing session.</p><h3>What is Pair Programming?</h3><p>Pair programming is a software development technique where two programmers work together at the same workstation. One programmer acts as the “driver,” who writes the code, while the other serves as the “observer” or “navigator,” who reviews the work, offers suggestions, and looks for errors. This approach fosters collaboration, improves code quality, and allows programmers to learn from each other.</p><p>Pair programming began to gain popularity in the early 2000s, especially with the spread of agile methodologies and the development of Extreme Programming (XP). Every year, software becomes more complex, requiring more programmers to work as a team, which creates a need for training and increased productivity.</p><h4>Keys to Success with Pair Programming</h4><p>Implementing this development technique isn’t easy, especially if you’ve been working solo or are unfamiliar with tools that can make your life easier. In the book <em>Code Complete</em>, Steve McConnell highlighted several key points to achieve success with this technology, most of which make perfect sense. However, I’d like to emphasize a few of them and introduce a couple of additional points that I think might be useful for beginners:</p><ul><li><strong><em>Support pair programming with coding standards.</em></strong> The fundamental principle of collaboration is when the entire team is aligned with the team’s principles or rules. When doubts arise, this forces us to reevaluate certain principles or rules, which enhances the quality of our code.</li><li><strong><em>Encourage pairs to match each other’s pace.</em></strong> Although it might seem like a minor point, the team’s speed depends on synchronization among members, rather than the speed of a few members.</li><li><strong><em>Focus on catching errors instead of testing.</em></strong> The cost of an error uploaded to the release candidate servers can be multiplied by a thousand compared to the cost of an error discovered during programming. With each merge request or commit, we introduce more errors that remain unknown if we focus only on final testing. Knowing the coding standards can help the “driver” detect potential risks that may still be easy to resolve.</li></ul><h4>Less Obvious Benefits</h4><ul><li>Reduced stress and increased motivation to maintain code according to established standards.</li><li>Improved code quality.</li><li>Establishes a team pace that enhances productivity.</li><li>Rapid training of other members.</li></ul><h3>How to Start?</h3><p>Humans tend to quickly learn bad habits, which means we need to strive much harder to achieve something fruitful. In many small companies where work is done in a “good enough” manner, fighting this tendency can be challenging. Here are some steps that can help you start with pair programming:</p><ol><li><strong>Advocate for coding standards within your team</strong>. None of us like to be corrected or shown where we need to improve. However, being someone who primarily follows established principles and rules makes this spirit contagious to others.</li><li><strong>Start with easy tasks. </strong>To go far, it’s generally recommended to take small steps and reach the goal as soon as possible.</li><li><strong>Talk to your colleagues and express the benefits of pair programming.</strong> Often, to help others see the positive side of a technique, it’s necessary to highlight positive and practical points that will help the entire team improve.</li></ol><h3>Conclusion</h3><p>Pair programming is a perfect tool for certain scenarios. It not only helps improve code quality but also assists in training others, following the principles and norms within the programming team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d03d12577e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Basics: Advanced Techniques for Testing Angular Guards with Router State]]></title>
            <link>https://medium.com/@leokulakao/beyond-basics-advanced-techniques-for-testing-angular-guards-with-router-state-835d9ae9f3d8?source=rss-6cfd9c4c825b------2</link>
            <guid isPermaLink="false">https://medium.com/p/835d9ae9f3d8</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angular-guards]]></category>
            <dc:creator><![CDATA[Lev Kulakov]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 16:38:44 GMT</pubDate>
            <atom:updated>2025-02-01T08:48:27.530Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hWaO4R4KiaZbHtvK" /><figcaption>Photo by <a href="https://unsplash.com/@focuspro?utm_source=medium&amp;utm_medium=referral">Razvan Cristea</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>With the release of Angular 7.2, developers have been granted a powerful feature: <strong>Router State</strong>, which represents the state of the router as a tree of activated routes. This allows for ephemeral state data to be passed between components without the need for auxiliary services.</p><p>In this article, I will eschew a deep dive into the internal workings of Router State, as there is comprehensive official Angular documentation available for that. Instead, we will explore a <strong>practical example</strong> of how to <strong>effectively test</strong> a <strong>Guard</strong>.</p><h3>Why Test a Guard?</h3><p>Guards are crucial in Angular applications as they protect routes and regulate access to specific parts of an application based on certain criteria, such as user authentication or authorization levels. By testing Guards, developers can ensure that these functionalities are implemented correctly and remain consistent over time, thus safeguarding the application’s integrity.</p><h3>Router State and Guard</h3><p>Router State is an integral part of Angular’s routing toolkit, and it’s quite likely you’ll want to utilize Router State within one of your Guards. Let’s consider a <strong>real-world example</strong> of a Guard.</p><p>Suppose we have a route, products/remove, where the goal is to delete products but first ensure that the user is aware of the products they intend to remove.</p><pre>export const canOpenProductsRemovePageGuard: CanActivateFn = () =&gt; {<br>  const router = inject(Router);<br>  const productsGuid = (router.getCurrentNavigation()?.extras?.state?.[&#39;productsGuid&#39;] ?? null) as string[] | null;<br>  return productsGuid != null &amp;&amp; productsGuid.length &gt; 0 ? true : false;<br>};</pre><p>Now, we can navigate to the page covered by this guard using the following method:</p><pre>this.router.navigateByUrl(&#39;/products/remove&#39;, { state: { productsGuid: [...] } });</pre><h3>How to Test It</h3><p>To effectively test this Guard, we need to mock the ActivatedRouteSnapshot and RouterStateSnapshot, as these are involved when the Guard executes.</p><pre>const mockRoute: ActivatedRouteSnapshot = {} as unknown as ActivatedRouteSnapshot;<br>const mockState: RouterStateSnapshot = {} as unknown as RouterStateSnapshot;</pre><p>Since the Guard uses the getCurrentNavigation() method, we can mock this to return the necessary data, allowing us to focus solely on the Guard&#39;s functionality.</p><pre>const mockRouter = {<br>  getCurrentNavigation: jest.fn().mockReturnValue({ extras: { state: { productsGuid } } }),<br>};</pre><p>Next, prepare the test environment and mock the Router by injecting mockRouter, ensuring it returns the required values.</p><pre>TestBed.configureTestingModule({<br>  providers: [<br>    {<br>      provide: Router,<br>      useValue: mockRouter,<br>    },<br>  ],<br>});</pre><p>After setting this up, we can write test cases to validate our Guard logic. In this scenario, our goal is to verify that when productsGuid is present, the Guard returns true; otherwise, it returns false. While this example demonstrates a simple Guard, real-world applications often involve more intricate logic.</p><pre>it(&#39;should return true if router state has products guid&#39;, () =&gt; {<br>  // set products guid for test<br>  setup([...]);<br><br>  const result = executeCanOpenProductsRemovePageGuard(mockRoute, mockState);<br><br>  expect(result).toBeTruthy();<br>});<br><br>it(&#39;should return false if router state does not have products guid&#39;, () =&gt; {<br>  setup([]);<br><br>  const result = executeCanOpenProductsRemovePageGuard(mockRoute, mockState);<br><br>  expect(result).toBeFalsy();<br>});</pre><p>Execute the Guard in an isolated context using dependency injection (TestBed.runInInjectionContext). This simulates the execution environment of the Guard, allowing it to be tested independently.</p><pre>const executeCanOpenProductsRemovePageGuard: CanActivateFn = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) =&gt;<br>  TestBed.runInInjectionContext(() =&gt; canOpenProductsRemovePageGuard(route, state));</pre><p>After all the preceding steps, we’ve constructed a robust tests for our Angular Guard:</p><pre>describe(&#39;Can Open Products Remove Page Guard&#39;, () =&gt; {<br>  const mockRoute: ActivatedRouteSnapshot = {} as unknown as ActivatedRouteSnapshot;<br>  const mockState: RouterStateSnapshot = {} as unknown as RouterStateSnapshot;<br><br>  const executeCanOpenProductsRemovePageGuard: CanActivateFn = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) =&gt;<br>    TestBed.runInInjectionContext(() =&gt; canOpenProductsRemovePageGuard(route, state));<br><br>  function setup(productsGuid: string[] | undefined) {<br>    const mockRouter = {<br>      getCurrentNavigation: jest.fn().mockReturnValue({ extras: { state: { productsGuid } } }),<br>    };<br><br>    TestBed.configureTestingModule({<br>      providers: [<br>        {<br>          provide: Router,<br>          useValue: mockRouter,<br>        },<br>      ],<br>    });<br>  }<br><br>  it(&#39;should return true if router state has products guid&#39;, () =&gt; {<br>    // set products guid for test<br>    setup([...]);<br><br>    const result = executeCanOpenProductsRemovePageGuard(mockRoute, mockState);<br><br>    expect(result).toBeTruthy();<br>  });<br><br>  it(&#39;should return false if router state does not have products guid&#39;, () =&gt; {<br>    setup([]);<br><br>    const result = executeCanOpenProductsRemovePageGuard(mockRoute, mockState);<br><br>    expect(result).toBeFalsy();<br>  });<br>});</pre><h3>Conclusion</h3><p>There are indeed several methodologies to test Guards, including fully mocking navigation between pages. In some cases, especially when dealing with complex logic within the Guard, this might be more effective. However, when the objective is to mock just the input to ascertain that the Guard functions as intended, the approach outlined here is an excellent option. By ensuring that all components work in harmony, developers can craft robust and secure applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=835d9ae9f3d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlock the Power of Nullable Types in React Native]]></title>
            <link>https://medium.com/@leokulakao/unlock-the-power-of-nullable-types-in-react-native-5290ece7790f?source=rss-6cfd9c4c825b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5290ece7790f</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[nullability]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Lev Kulakov]]></dc:creator>
            <pubDate>Sat, 25 Jan 2025 13:31:47 GMT</pubDate>
            <atom:updated>2025-02-01T08:49:09.889Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone who develops in TypeScript has encountered numerous errors by incorrectly using null or undefined, which in turn leads to chaos and a low-quality product.</p><p>When programming, we want to handle errors only within the closed context of a function and be confident that the application will not break if some non-essential information is missing for the application’s operation. When we write code, we want to be as precise as possible.</p><h4>Null or Undefined?</h4><p>Null and undefined are fundamentally different from each other. Let’s compare null and undefined to boxes:</p><ul><li>The first box (null) is an empty box. You intentionally opened it and confirmed that there is nothing inside. It’s like saying, “I know that this is empty.”</li><li>The second box (undefined) is a box about which you know nothing at all. No one has even opened it, and no one has checked what’s inside. It’s like saying, “I have no idea what’s going on with this box — maybe there’s something in it, maybe there isn’t.”</li></ul><p>So what is best to use? Like everything, it depends on the specific case. One thing remains clear: knowing how to apply these concepts will allow you to create beautiful and concise code.</p><h4><strong>Enable Strict Null Checks</strong></h4><p>Enabling the strictNullChecks compiler option in your tsconfig.json file forces you to handle null and undefined values explicitly, improving type safety.</p><pre>{<br>  &quot;compilerOptions&quot;: {<br>    &quot;strictNullChecks&quot;: true<br>  }<br>}</pre><h4><strong>Optional and Nullable Properties in Interfaces</strong></h4><p>You can make properties optional within interfaces using the ? syntax, allowing them to be either a specific type or undefined. At the same time you can use null to set empty value</p><pre>interface UserProfile {<br>  id: number;<br>  name: string;<br>  email: string | null; // email can be a string or null<br>  phoneNumber?: string;  // phoneNumber can be a string or undefined<br>}</pre><p>How do you understand where to use null or undefined in interfaces? Let’s return to our boxes. One is completely empty, while we know nothing about the second. We apply the same principle to specific data:</p><ul><li><strong>email</strong> can be a string or null. In this case, it represents a user who has explicitly stated they don’t have an email (null). This can be applied when something is expected from this property in the interface (the box may have nothing, but we must be aware that it exists). This will help us understand exactly what is happening with the data.</li><li><strong>phoneNumber</strong> is optional and can be either a string or undefined. This can be applied when, from the component’s perspective, it doesn’t matter whether the user has a phone number or not. In this case, we don’t even.</li></ul><h4><strong>Handle Null Values Gracefully</strong></h4><p>Provide default values or fallback UI for properties that can be null or undefined.</p><pre>const UserProfile: React.FC&lt;{ user: UserProfile }&gt; = ({ user }) =&gt; (<br>  &lt;View&gt;<br>    &lt;Text&gt;{user.name}&lt;/Text&gt;<br>    &lt;Text&gt;{user.email ? user.email : &quot;Email not provided&quot;}&lt;/Text&gt;<br>    {user.phoneNumber != null &amp;&amp; (<br>      &lt;Text&gt;{user.phoneNumber}&lt;/Text&gt;<br>    )}<br>  &lt;/View&gt;<br>);</pre><h4>Conclusion</h4><p>By leveraging nullable types in TypeScript and applying best practices in your React Native applications, you can create more robust and maintainable code. Handling nullability effectively ensures that your application can gracefully handle missing or undefined values, leading to a better user experience and higher-quality products.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5290ece7790f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>