<?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 Dinda Adriani on Medium]]></title>
        <description><![CDATA[Stories by Dinda Adriani on Medium]]></description>
        <link>https://medium.com/@dinda.adriani?source=rss-8c903230da1b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9QYZW8K6xkUCwbPxoB7BUg.jpeg</url>
            <title>Stories by Dinda Adriani on Medium</title>
            <link>https://medium.com/@dinda.adriani?source=rss-8c903230da1b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:51:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dinda.adriani/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[Cracking the Code: Software Testing, Test Coverage, and Quality Assurance]]></title>
            <link>https://medium.com/@dinda.adriani/cracking-the-code-software-testing-test-coverage-and-quality-assurance-95da048a7ae?source=rss-8c903230da1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/95da048a7ae</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[mock-objects]]></category>
            <category><![CDATA[test-coverage]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Dinda Adriani]]></dc:creator>
            <pubDate>Sat, 27 May 2023 09:10:30 GMT</pubDate>
            <atom:updated>2023-05-27T09:11:12.711Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MLS81JX5mmKBndU1" /><figcaption>src: usersnap</figcaption></figure><p>Welcome to the rollercoaster ride of software development! You’re crafting exquisite lines of code, molding them into the masterpiece you envision. But there’s an ingredient that’s crucial to this process, one that can transform your good code into robust and reliable software. It’s software testing.</p><p>Today, let’s have a casual chat about software testing, focusing on the fun parts like mock objects and test isolation and how they help create top-notch software.</p><h4>The Detectives of the Software Realm: Software Testing &amp; Test Coverage</h4><p>Software testing is like your digital Sherlock Holmes, dedicated to ensuring your software behaves as expected (ISTQB Glossary, 2020). Think of it as a detective constantly seeking out elusive bugs.</p><p>Alongside software testing, test coverage acts as your reliable yardstick, measuring the extent of your software that has been scrutinized by tests (ISTQB Glossary, 2020). It’s like a health check for your software, the higher the coverage, the healthier your software is likely to be.</p><h4>The Unsung Heroes: Mock Objects and Test Isolation</h4><p>Mock objects and stubs are like the unsung heroes of software testing, saving the day when you need to focus on a particular part of your software, undisturbed by other components.</p><p>A mock object imitates the behavior of actual components, a bit like stand-ins for an actor in a movie, allowing you to center the tests around the real star of the scene (Gerard Meszaros, “xUnit Test Patterns”). On the other hand, a stub provides the expected response of a component without getting into complex logic, much like a movie prop (Steve Freeman, Nat Pryce, “Growing Object-Oriented Software Guided by Tests”).</p><h4>Code Chronicles: Implementing Mocks and Test Isolation</h4><p>During a recent project, my team embarked on testing a sidebar component of our product, aspiring. The challenge was to ensure that it was rendered accurately and interacted correctly with other parts of the application. To conduct these tests effectively, mock objects and test isolation became invaluable.</p><pre>import { cleanup, render } from &quot;@testing-library/react&quot;;<br>import mockRouter from &quot;next-router-mock&quot;;<br>import { Sidebar } from &quot;@/components&quot;;<br>import { Popover } from &quot;@radix-ui/react-popover&quot;;<br>jest.mock(&quot;firebase/auth&quot;);<br>jest.mock(&quot;next/router&quot;, () =&gt; require(&quot;next-router-mock&quot;));<br>beforeEach(() =&gt; mockRouter.push(&quot;/&quot;));<br>afterEach(cleanup);</pre><p>The first step in the test was to mock the router and Firebase’s authentication. Mocking these allowed us to simulate the interactions of the Sidebar component with these external dependencies, thus effectively isolating our Sidebar component. The ‘beforeEach’ and ‘afterEach’ functions ensure that the mock router is correctly set up and cleaned up for each test.</p><p>The ‘describe’ and ‘test’ functions encapsulate individual test scenarios, providing an organized structure for the test suite. Using the ‘render’ function from the <a href="http://twitter.com/testing">@testing</a>-library/react package, we could simulate the rendering of the Sidebar component within these tests, interacting with the component as a user would.</p><pre>describe(&quot;components - Sidebar&quot;, () =&gt; {<br>  test(&quot;should render&quot;, () =&gt; {<br>    const { queryByText } = render(&lt;Sidebar /&gt;);<br>    expect(queryByText(&quot;Feeds&quot;)).toBeTruthy();<br>    expect(queryByText(&quot;Weekly Challenge&quot;)).toBeTruthy();<br>    expect(queryByText(&quot;Sample Portfolio&quot;)).toBeTruthy();<br>  });<br>  //...<br>});</pre><p>In these tests, we used mock objects to simulate the behavior of the Sidebar component, enabling the isolation and thorough testing of each of its elements. By asserting the presence of specific text within the component, we could confirm that the Sidebar was rendering as expected.</p><p>Quality Assurance (QA) is the guardian angel of software, ensuring it meets customer requirements while providing an optimal user experience (International Organization for Standardization, ISO 9000:2015). Software testing forms a crucial pillar of QA, aiding in early detection and resolution of issues, thus maintaining the integrity of software and fulfilling the QA promise.</p><p>So the takeaway is that software testing isn’t just an obligatory chore; it’s an integral part of creating high-quality, reliable software. By employing strategies like using mock objects and test isolation, you’re crafting applications that stand up to the stringent standards of quality assurance. So, keep exploring, keep testing, and remember — every line of code you write holds the potential to create something extraordinary.</p><p>References:</p><ul><li>ISTQB Glossary (2020). International Software Testing Qualifications Board. <a href="https://glossary.istqb.org/en/search/">https://glossary.istqb.org/en/search/</a></li><li>Gerard Meszaros (2007). “xUnit Test Patterns: Refactoring Test Code”. Pearson Education.</li><li>Steve Freeman, Nat Pryce (2010). “Growing Object-Oriented Software Guided by Tests”. Addison-Wesley.</li><li>International Organization for Standardization (2015). ISO 9000:2015 Quality management systems — Fundamentals and vocabulary. <a href="https://www.iso.org/standard/45481.html">https://www.iso.org/standard/45481.html</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95da048a7ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unraveling Team Dynamics: Lessons from Aspiring]]></title>
            <link>https://medium.com/@dinda.adriani/unraveling-team-dynamics-lessons-from-aspiring-6eb433387485?source=rss-8c903230da1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eb433387485</guid>
            <dc:creator><![CDATA[Dinda Adriani]]></dc:creator>
            <pubDate>Thu, 25 May 2023 21:59:58 GMT</pubDate>
            <atom:updated>2023-05-27T09:21:45.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*BWMuNhxNPFKzsBTnPRLvAQ.png" /></figure><p>“Individually, we are one drop. Together, we are an ocean.” — Ryunosuke Satoro</p><p>This old adage perfectly encapsulates my experience as a member of the Aspiring. This journey was a beautiful interplay of building relationships, understanding people, fostering team dynamics, and tackling challenges head-on. Let’s embark on this adventure together.</p><h4>The Art of Connection: Making Friends and Establishing Relations</h4><p>Strong relationships and friendships are fundamental to successful teamwork (Lavy, 2019). One doesn’t need to be the loudest or the most outgoing to create these connections. Instead, it’s about sincerity, understanding, and respect for diverse perspectives. During my time in Aspiring, my less vocal, more action-oriented approach allowed me to form meaningful relationships with my teammates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HnM3LFkgFGCPJ2KSLOD41w.png" /></figure><h4>Upholding Positivity: Weathering Challenges Together</h4><p>Challenges and stressful situations are inevitable in any project. But it’s the shared responsibility of every team member to maintain positivity and resilience during these times (Fredrickson, 2009). In Aspiring, we all tried our best to foster a positive atmosphere, even in the face of difficulties. Our shared commitment to uplifting each other’s spirits kept us productive and focused.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*CoGKzdiqWevGtKI9wIv-DA.png" /></figure><h4>Fostering Team Dynamics: Harmonizing Individual Strengths</h4><p>Team dynamics are the invisible forces that operate in a team between different people (West, 2012). In Aspiring, I became part of this harmonic symphony, where each member’s distinct melody contributed to our collective success story. We each had a unique part to play, mine involved actively engaging with team members and taking part in team discussions and activities.</p><h3>Encouraging Growth: Team Capacity Building</h3><p>Team capacity building is a shared journey of growth, wherein every member works towards enhancing their individual and collective skills (Cummings &amp; Worley, 2014). As an Aspiring member, I participated actively in various capacity-building activities, contributing to our collective learning curve.</p><h4>Servant Leadership: A Testament to Team-Centric Leadership</h4><p>The Servant Leadership concept prioritizes the team’s needs above individual interests (Greenleaf, 1977). Marcel, a member of our team, embodied this principle. His dedication to serving the team and prioritizing their needs fostered a supportive and collaborative environment, contributing significantly to the project’s success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rO_kIOoBJgne1gjoLGaDAQ.png" /></figure><h4>The Helping Hand: Salute to Sabyn (<a href="https://medium.com/u/df50501f7132">Sabyna Maharani</a>)</h4><p>In our diverse group ‘Aspiring,’ there was Sabyn — a member always ready to lend a hand. She embodied a unique quality: altruism. Her consistent efforts to support others contributed greatly to our unity and team spirit, reminding us that our collective success is tied to each member’s contribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*bAlPkHehIAf2Q_Q9XLdXxg.png" /></figure><h4>Epilogue: Every Member Counts</h4><p>Every journey is made of stories, and every team member has a unique story to tell. In Aspiring, my story was one of engagement, participation, and learning. As an active member, I found my voice and made it count. This experience underlined the value of every member’s contribution, echoing the fact that success is indeed a team sport.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QXiIy515SwxnwI6212_tkg.png" /></figure><p><strong>Special note to the aspiring team, </strong>our journey has been a unique learning experience. I value our unity, resilience, and the friendship we’ve built along the way. Thanks for everything <strong>🤞🌷♥</strong></p><h4>References:</h4><ol><li>Lavy, S. (2019). The ties that bind: The role of interpersonal relationships in school settings. Child Development Perspectives, 13(4), 236–241.</li><li>Fredrickson, B. (2009). Positivity: Top-Notch Research Reveals the Upward Spiral That Will Change Your Life. Crown Archetype.</li><li>West, M. A. (2012). Effective Teamwork: Practical Lessons from Organizational Research. Wiley-Blackwell.</li><li>Keller, S. (2017). Beyond Performance 2.0: A Proven Approach to Leading Large-Scale Change. Wiley.</li><li>Cummings, T. G., &amp; Worley, C. G. (2014). Organization Development and Change. Cengage Learning.</li><li>Greenleaf, R. K. (1977). Servant Leadership: A Journey into the Nature of Legitimate Power and Greatness. Paulist Press.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eb433387485" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating Team Collaboration Tools: Enhancing Efficiency and Productivity in Real-World Projects]]></title>
            <link>https://medium.com/@dinda.adriani/navigating-team-collaboration-tools-enhancing-efficiency-and-productivity-in-real-world-projects-2695f0d9ff71?source=rss-8c903230da1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2695f0d9ff71</guid>
            <dc:creator><![CDATA[Dinda Adriani]]></dc:creator>
            <pubDate>Thu, 25 May 2023 21:03:32 GMT</pubDate>
            <atom:updated>2023-05-25T21:03:32.698Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DNOAHi-b3dSpObF_.jpg" /><figcaption>CHERRY PICKING xD, src: ultimagz</figcaption></figure><p>Over the course of aspiring, my team and I have used advanced Git functionalities, robust project management features, and performance monitoring tools to make our workflow more efficient and productive. This article explores how we harnessed the power of these tools, specifically focusing on GitLab, and how they can transform the way you work on your projects.</p><h4>Embracing Advanced Git</h4><p>When working on a team-based project, managing different versions of the codebase efficiently is critical. Git, a distributed version control system, plays a significant role. While most of us are familiar with basic Git commands like commit, push, and pull, let&#39;s delve into some advanced Git commands we found incredibly useful in our project.</p><p><strong>Cherry-pick</strong></p><p>The cherry-pick command is a powerful tool that allows you to apply changes introduced by one or more existing commits. Imagine a scenario where you made a fix on a separate branch and want to apply that fix to the main branch without merging the whole branch. That&#39;s where cherry-pick comes into play.</p><p>In our university project, we frequently used this command to apply changes from one branch to another selectively. This allowed us to maintain the integrity of our main branch while ensuring that important fixes were implemented.</p><p><strong>Revert</strong></p><p>Mistakes happen, and sometimes a commit can introduce more problems than it solves. Git’s revert command creates a new commit that undoes the changes made in a previous commit. This was incredibly useful for us when we needed to rollback changes that introduced unforeseen issues in our project.</p><p><strong>Stash</strong></p><p>git stash is a command that temporarily saves changes that you don&#39;t want to commit immediately. During our project, we found this command useful when we needed to switch branches but weren&#39;t ready to commit the changes in our current branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*sni9h1Lwx4kLi0VQ374vOA.png" /></figure><h4>Leveraging GitLab’s Features</h4><p>While Git forms the backbone of our version control system, we used GitLab as our primary development platform. GitLab’s advanced project management and development features, like GitLab Issues, were instrumental in keeping our project organized.</p><p><strong>GitLab Issues</strong></p><p>GitLab Issues is a feature that helps manage and keep track of tasks within your project. In our project, we used GitLab Issues for bug tracking, feature development tracking, and general task management. It helped keep our team on the same page about what needed to be done, who was responsible for what, and the status of each task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTWwgH4bPq5La0u4iNWX8g.png" /><figcaption>Aspiring’s GitLab Issues board</figcaption></figure><p><strong>Embracing Agile with Burndown Charts</strong></p><p>One of the principles we embraced in our project was Agile methodology. GitLab’s burndown charts provided us with a visual representation of the amount of work remaining over time, helping us monitor our progress and adjust our strategies when necessary.</p><p>These charts were pivotal in keeping us focused, understanding our velocity, and providing transparency to all stakeholders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EbkLEfqM2KTsmQRg7P_7Mw.png" /><figcaption>Aspiring’s burndown chart</figcaption></figure><p>Advanced Git commands, combined with GitLab’s robust features and Agile methodologies, have made aspiring a rewarding experience. Not only did they streamline our workflow, but they also improved our collaboration, productivity, and code quality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2695f0d9ff71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Paving the Way to Consistency with UI Standardization]]></title>
            <link>https://medium.com/@dinda.adriani/paving-the-way-to-consistency-with-ui-standardization-6b015a0352c2?source=rss-8c903230da1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b015a0352c2</guid>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[Dinda Adriani]]></dc:creator>
            <pubDate>Thu, 25 May 2023 18:39:24 GMT</pubDate>
            <atom:updated>2023-05-25T18:39:24.066Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Design, it said, is not just what it looks like and feels like. Design is how it works — Steve Jobs.</blockquote><p>In today’s digital era, User Interface (UI) design is crucial to making software or an app stand out. This article will explore UI Standardization, how it influences product branding, and the potency of Design Kits using the example of Figma. We’ll also touch upon a university project that utilised these elements to give you a more practical understanding.</p><h3>Consistency in Chaos: UI Standardization</h3><p>UI Standardization is about maintaining a design that is consistent throughout a product. It makes the user interaction smooth and predictable, improving the user experience by reducing the cognitive load.</p><p>In Aspiring development, we implemented UI standardization to enhance the user’s experience, making the interface visually coherent and easy to navigate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*iVnqDSx1xKsjpB7oZQSTfg.png" /><figcaption>Aspiring’s Logo</figcaption></figure><h3>The Silent Communicator: UI Standardization in Product Branding</h3><p>Product branding is more than just a logo or a tagline; it is about creating a distinct identity that sets your product apart. A consistent UI acts as the silent communicator of your brand’s ethos, helping establish a strong brand identity and improve user engagement and loyalty.</p><p>During our university project, we built a strong brand identity through a consistent UI design, which significantly enhanced user engagement.</p><p>Figma: A Symphony of Design Elements</p><p>Figma is a versatile, cloud-based design tool that enables collaborative interface design. It offers a comprehensive design kit that simplifies and enhances the design process.</p><p>In Aspiring development, Figma is our design tool of choice. Its collaborative nature facilitated synchronized work amongst our team, leading to a more efficient and cohesive design process. The Figma Design Kit ensured our UI design remained consistent, coherent, and true to our brand identity.</p><h3>The Designer’s Palette: Style Guide</h3><p>A style guide serves as a crucial tool in maintaining consistency and coherence throughout the design process. A style guide acts as a comprehensive reference document that outlines the visual and interaction guidelines, design principles, and best practices for the UI components and elements.</p><p><strong>Benefits of a Style Guide:</strong></p><ol><li><strong>Consistency</strong>: A style guide establishes a consistent visual language by defining the usage of colors, typography, iconography, spacing, and other design elements. This consistency enhances the user experience by creating familiarity and predictability, enabling users to navigate the interface seamlessly.</li><li><strong>Efficiency</strong>: By providing a centralized resource of design guidelines and specifications, a style guide accelerates the design process. Designers can reference the style guide for consistent implementation, saving time and effort that would otherwise be spent on repeatedly reinventing design choices.</li><li><strong>Collaboration</strong>: In collaborative design environments, a style guide serves as a shared reference point for all team members. It aligns designers, developers, and stakeholders, ensuring a unified vision and reducing misinterpretation or inconsistencies.</li><li><strong>Scalability</strong>: As digital products evolve and grow, a style guide facilitates scalability. Design updates, expansions, and the introduction of new features can be executed seamlessly by following the established guidelines, maintaining visual harmony and reducing the risk of fragmentation.</li></ol><p><strong>Key Elements of a Style Guide:</strong></p><p><strong>Color Palette — </strong>We define color palette establishes the gray, primary, secondary, error, warning, and success colors to be used throughout the UI. We have eleven shades for each color types that can be implemented. We chose each color thoroughly considering our product’s personality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rg-z58EtgTx0qrRjLIQ3Og.png" /><figcaption>Apiring’s Color Palette</figcaption></figure><p><strong>Typography — </strong>We provide guidelines for font choices, font sizes, line heights, and letter spacing. It ensures consistency in typography across different devices and screen sizes, contributing to a cohesive visual experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2QZsK8R3F_WwQpExrEgH1w.png" /><figcaption>Apiring’s Typography</figcaption></figure><p><strong>Iconography — </strong>Guidelines for icon design and usage play a vital role in UI standardization. The style guide outlines icon libraries, sizing, grid systems, and principles for maintaining consistency in iconography. We use</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Z_teR6RkRKksqhun18_Fw.png" /><figcaption>Apiring’s Iconography</figcaption></figure><p><strong>UI Components —</strong> We create catalogs reusable UI components, such as buttons, badges, forms, cards, and navigation elements. It defines their appearance, behavior, and usage patterns, allowing designers and developers to implement consistent and functional interfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*xPjx4UYio-bUjP_cGvpStA.png" /><figcaption>Apiring’s Badge Component</figcaption></figure><p><strong>Additional Patterns —</strong> Beyond colors, typography, and icons, there are subtle elements like shadows, blur, spacing, and grids. They might appear small, but they play a significant role in enhancing UI and standardization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*OTnxX7J4z3SvTVYLstUFpg.png" /><figcaption>Aspiring’s Spacing</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*XA62VbfT1ahQPLJlmJHzVA.png" /><figcaption>Aspiring’s Shadow</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*GTnrmGq0lVLVOtTfll7TlQ.png" /><figcaption>Aspiring’s Shadow</figcaption></figure><h3>Conclusion: The Journey of UI Standardization</h3><p>In the fast-paced world of digital design, UI Standardization and product branding are critical. Tools like Figma and its Design Kit empower designers to create seamless, user-friendly interfaces that resonate with the product’s brand identity.</p><p>My experience during Aspiring’s development taught us the importance of UI Standardization and the role of design kits in creating visually appealing and user-friendly designs. These are not merely optional tools; they are essential ingredients in the recipe for a successful interface.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b015a0352c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Symphony of Code: Best Practices and SOLID Principles in Programming]]></title>
            <link>https://medium.com/@dinda.adriani/the-symphony-of-code-best-practices-and-solid-principles-in-programming-e4b2aa25c85d?source=rss-8c903230da1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4b2aa25c85d</guid>
            <dc:creator><![CDATA[Dinda Adriani]]></dc:creator>
            <pubDate>Thu, 25 May 2023 18:11:20 GMT</pubDate>
            <atom:updated>2023-05-25T18:11:48.965Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ck7w2063x4ZRce5R.png" /><figcaption>src: <a href="https://blog.knoldus.com/">https://blog.knoldus.com/</a></figcaption></figure><p>As a software developer, imagine yourself as a composer. You are orchestrating a symphony, creating beautiful music that must be both pleasing to the ear and precisely structured. This article will take you through the elegant symphony of software development, emphasizing best programming practices and SOLID principles. Throughout, we will explore the nuances of object-oriented programming and the essential facets of SOLID principles while referencing an example from one of my codes for aspiring.</p><h4>Orchestrating Harmony: Best Practices in Programming</h4><p>In software development, the best practices are akin to the guidelines that composers follow to create a harmonious symphony. Best practices make your code more organized, easier to understand, and more efficient to execute (McConnell, 2004). The following snippet from our project serves as an example of such practices:</p><pre>const ReactionButton: FC&lt;ReactionButtonProps&gt; = memo(<br>  ({ reaction, sendReaction, deleteReaction, updateReaction }) =&gt; {<br>    //...<br>    const onReact = useCallback(<br>      (newReaction: ReactionType) =&gt; {<br>        if (!profile) {<br>          toast.error(&quot;Something went wrong, please try again&quot;);<br>          return;<br>        }<br>        //...<br>      },<br>      [deleteReaction, profile, reaction, sendReaction, updateReaction]<br>    );<br>    //...<br>  }<br>);</pre><p>This code demonstrates the use of memoization and the useCallback hook, two best practices that enhance the performance of your React applications. Here, the useCallback hook is used to create a memoized version of the onReact function, ensuring that it doesn’t change between renders unless its dependencies do. This enhances the performance of your application by minimizing unnecessary re-renders.</p><h4>The Quintessential Quintet: SOLID Principles</h4><p>The SOLID principles are a set of object-oriented design principles aimed at making software designs more understandable, flexible, and maintainable (Martin, 2000). These principles can be seen as the notes that form the beautiful melody of your code. Let’s explore each of these principles with examples from our project:</p><p>Single Responsibility Principle (SRP): Consider a class UserManager that manages user-related functionalities in a software application. According to SRP, this class should focus on user management tasks only and should not handle unrelated tasks such as connecting to a database or sending email notifications. Each of these tasks should be managed by its own specialized class.</p><pre>class UserManager {<br>  createUser(user) { /*...*/ }<br>  deleteUser(user) { /*...*/ }<br>  // Other user management tasks...<br>}</pre><p>Open-Closed Principle (OCP): Suppose we are building a report generation system where different types of reports can be generated, such as XMLReport, CSVReport, and JSONReport. In this case, the ReportGenerator class should be designed in a way that it can generate any type of report without modification. If we need to add a new report type, we just need to extend our existing system by creating a new class for the new report type.</p><pre>class ReportGenerator {<br>  generate(report) {<br>    report.create();<br>  }<br>}<br><br>class XMLReport {<br>  create() {<br>    // Generate an XML report<br>  }<br>}<br><br>class CSVReport {<br>  create() {<br>    // Generate a CSV report<br>  }<br>}<br><br>// Usage<br>const reportGenerator = new ReportGenerator();<br>const xmlReport = new XMLReport();<br><br>reportGenerator.generate(xmlReport); // This will generate an XML report</pre><p>Liskov Substitution Principle (LSP): Suppose we have a base class Bird and a subclass Duck. If we have a function that uses the Bird class, we should be able to substitute it with the Duck class without affecting the behavior of the function.</p><pre>class Bird {<br>  fly() {<br>    // Flying logic here...<br>  }<br>}<br><br>class Duck extends Bird {<br>  quack() {<br>    // Quacking logic here...<br>  }<br>}</pre><p>Interface Segregation Principle (ISP): If we have a Printer class, it should not be forced to implement unnecessary methods which it doesn&#39;t need. If a printer can print and scan but doesn&#39;t have fax functionality, it should not implement a fax method.</p><pre>interface Printer {<br>  print();<br>  scan();<br>}<br><br>class HPprinter implements Printer {<br>  print() {<br>    // Print logic<br>  }<br>  scan() {<br>    // Scan logic<br>  }<br>}</pre><p>Dependency Inversion Principle (DIP): High-level modules should not depend directly on low-level modules. Instead, they should depend on abstractions. Suppose we have a NotificationService that depends on EmailService. Instead of hard-coding the EmailService into NotificationService, we should depend on an abstraction, like so:</p><pre>class NotificationService {<br>  constructor(private messageService: MessageService) {}<br>  <br>  notify() {<br>    this.messageService.sendMessage();<br>  }<br>}<br><br>class EmailService implements MessageService {<br>  sendMessage() {<br>    // Send email<br>  }<br>}<br><br>// Usage<br>const emailService = new EmailService();<br>const notificationService = new NotificationService(emailService);<br>notificationService.notify();  // This will send an email</pre><p>By integrating the SOLID principles into our code, we can enhance our applications’ readability, maintainability, and scalability, making the development process more efficient and enjoyable.</p><h4>Encore: Applying SOLID and Best Practices</h4><p>Incorporating SOLID principles and programming best practices into your work can drastically improve the quality of your code, making it more readable, maintainable, and efficient. They are like the rules and regulations that govern the production of a harmonious symphony, ensuring each note is in place and the composition is perfect.</p><p>In the first example given, the use of useCallback is an optimization technique that avoids unnecessary renders, embodying the SRP by keeping the scope of its responsibility limited. Similarly, the structure of the ReactionButton component adheres to the OCP. It can be extended by adding additional features or reactions without altering the existing code.</p><p>It’s equally important to remember the LSP principle, even though it may not be explicitly demonstrated in this example. Let’s say we decided to create a subclass of ReactionButton, such as AnimatedReactionButton, the substitution should be seamless wherever a ReactionButton is expected.</p><p>Adherence to ISP is shown in how the ReactionButtonProps interface is defined. It only includes what ReactionButton really needs, reducing unnecessary dependencies. Finally, DIP is reflected in how the high-level ReactionButton component is independent of the details of how the reactions are processed. This separation is ensured by making both high-level and low-level modules depend on abstractions, such as ReactionButtonProps.</p><h4>Last, Nurturing Excellence in Programming</h4><p>Just as each note matters in a symphony, every line of code contributes to a program’s overall performance and readability. Adopting the SOLID principles and other best programming practices can help in building robust, maintainable, and efficient software applications. Whether you are a novice programmer or an experienced developer, these principles form the bedrock of excellent programming and are key to mastering the art of software development.</p><h4>References:</h4><ol><li>Martin, R. C. (2000). Design Principles and Design Patterns. Object Mentor, 1(1), 34–40.</li><li>McConnell, S. (2004). Code Complete: A Practical Handbook of Software Construction. Microsoft Press.</li></ol><p>Remember, the SOLID principles and best programming practices are not just rules but a mindset. They guide the process of composing a perfect symphony of code, contributing to better and more enjoyable software development. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4b2aa25c85d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elevating Software Quality with Power of Static Analysis]]></title>
            <link>https://medium.com/@dinda.adriani/elevating-software-quality-with-power-of-static-analysis-a622ec6bb7ae?source=rss-8c903230da1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a622ec6bb7ae</guid>
            <category><![CDATA[sonarqube]]></category>
            <category><![CDATA[qodana]]></category>
            <dc:creator><![CDATA[Dinda Adriani]]></dc:creator>
            <pubDate>Thu, 25 May 2023 17:05:03 GMT</pubDate>
            <atom:updated>2023-05-25T17:05:03.470Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*gGCMn6Rvhqh_cZNS.jpeg" /><figcaption>sonarqube’s logo</figcaption></figure><p>In the dynamic realm of software development, we often hears the term “quality” being said. However, quality in software isn’t just about functionality — it’s also about maintainability, readability, performance, and security.</p><p><strong>Software Quality Assurance (SQA)</strong> is the systematic process that ensures a software product meets the specified requirements and is defect-free. Here, I aim to delve into the fascinating world of <strong>SQA</strong>, with a particular focus on static analysis and two best combination tools —<strong> Sonarqube </strong>and <strong>Qodana</strong>, drawing upon my experiences from a university project.</p><h3>Software Quality Assurance: The Guardian of Quality💂‍♂️</h3><p>SQA encompasses a wide range of activities including requirements analysis, design reviews, code reviews, and testing, all aimed at ensuring the delivery of high-quality software. It’s the safety net that guards against errors and ensures a software product meets its intended requirements.</p><p>In a recent university project, Aspiring’s team adopted SQA principles to maintain the robustness of our code using tools of Qodana and Sonarqube. By doing so, we were able to preemptively address potential issues and significantly enhance the overall quality of our software product.</p><h3>Static Analysis: The Crystal Ball of Code Reviews🌟</h3><p>One key technique in SQA is static analysis, where code is examined without being executed, to detect potential flaws, bugs, and vulnerabilities. This includes checking coding standards, reviewing cyclomatic complexity, and identifying security loopholes.</p><p>In Aspiring’s development, we employed static analysis tools to scrutinize our code. This enabled us to catch potential bugs early in the process, making it much easier and less costly to fix them. It was like having a crystal ball that could foresee and prevent future problems in our software.</p><h3>Standard Best-Practices: The Compass of Quality🧭</h3><p>Adhering to best-practice standards is paramount to ensuring the maintainability and robustness of the code. One of the common practices is to adopt coding standards, which enforce uniformity and promote readability and understandability.</p><p>During Aspiring’s development, we established clear coding standards from the get-go. This brought consistency to our work, improved the readability of our code, and facilitated more effective collaboration among our team members.</p><h3>Harnessing the Power of Tools: Sonarqube And Qodana🔥</h3><p>A variety of SQA tools have been designed to automate the process of static code analysis and deliver robust, error-free software. Two such prominent tools we used in our university project were Qodana and SonarQube. Let’s delve deeper into understanding these tools and how they contribute to Software Quality Assurance.</p><h3>Qodana: Your Personal Code Quality Guardian</h3><p>Qodana, a product of JetBrains, is a comprehensive platform that aims to maintain the quality of your code by providing static analysis across various dimensions. It can analyze programming languages like Java, Kotlin, Python, JavaScript, and PHP, and detect a wide array of issues, from redundancies and duplicates to potential bugs and security vulnerabilities.</p><p>Qodana comes equipped with an extensive list of inspections borrowed from IntelliJ IDEA and other JetBrains IDEs. This includes not only basic issues but also intricate language-specific inspections. The tool is containerized, allowing it to integrate easily with continuous integration (CI) pipelines.</p><p>In our project, we used Qodana to review our code quality consistently. It helped identify complex issues early on, thereby reducing our debugging time and increasing our overall productivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*NKKahITOpaVvghb7gC7JPg.png" /><figcaption>Qodana Dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*MmXqE_W93Erxu3Xw8wn4BQ.png" /><figcaption>Qodana on GitLab pipeline</figcaption></figure><h3>SonarQube: The Watchful Protector of Code</h3><p>SonarQube, an open-source platform developed by SonarSource, offers continuous inspection of code quality. It automatically reviews code to detect bugs, code smells, and security vulnerabilities in more than 20 programming languages.</p><p>SonarQube’s features include a powerful issues widget that displays a list of all identified issues, a technical debt pyramid that helps in understanding and managing technical debt, and a leak period concept that promotes quality improvement through short, self-managed iterations.</p><p>Additionally, SonarQube provides a Quality Gate feature that acts as a pass/fail criterion for code quality. It allows setting conditions on your project metrics (like coverage and duplications), which must be met before you can push your code to production.</p><p>For Aspiring’s development, we incorporated SonarQube into our development pipeline. Its real-time tracking of code quality helped us catch bugs and vulnerabilities early, while its Quality Gate ensured we only delivered top-notch code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NfNT_LC8ktna28e03R3trA.png" /><figcaption>Sonarqube Dashboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x60HZhWkYvyLmZG8V26DsA.png" /><figcaption>Sonarqube on GitLab pipeline</figcaption></figure><h3>Conclusion: The Pathway to Quality</h3><p>In the grand scheme of software development, SQA with its tools and practices is like a lighthouse, guiding developers through the stormy seas of bugs and vulnerabilities towards the shore of quality. The integration of SQA into our university project not only improved the quality of our software product but also enriched our learning experience, showing us the importance of quality assurance in real-world applications.</p><h3>References</h3><p><a href="https://www.coders.dev/insight/how-sonarqube-is-revolutionizing-the-world-of-software-quality-assurance.html">https://www.coders.dev/insight/how-sonarqube-is-revolutionizing-the-world-of-software-quality-assurance.html</a></p><p><a href="https://www.techtarget.com/whatis/definition/static-analysis-static-code-analysis">https://www.techtarget.com/whatis/definition/static-analysis-static-code-analysis</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a622ec6bb7ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Agile and Scrum: The Power of Flexibility and Iterative Progress]]></title>
            <link>https://medium.com/@dinda.adriani/mastering-agile-and-scrum-the-power-of-flexibility-and-iterative-progress-331571f16934?source=rss-8c903230da1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/331571f16934</guid>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Dinda Adriani]]></dc:creator>
            <pubDate>Thu, 25 May 2023 16:22:22 GMT</pubDate>
            <atom:updated>2023-05-25T16:41:17.638Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>“Change is the only constant”</strong></blockquote><p>Nowhere is that truer than in the realm of software development. The traditional, rigid ways of managing projects often struggle to keep pace with today’s dynamic, customer-driven landscape. Enter Agile and Scrum — methodologies that are all about embracing change.</p><p>In this article, I’ll tell aboutAgile and Scrum, turning the spotlight on their principles and the practical ways to implement them. Drawing from my firsthand experience in @/aspiring’s team journey on building <a href="http://aspiring.it/">aspiring.it</a>, I’ll demonstrate how these flexible, adaptive methodologies can pave the way to success.</p><p>Then, let’s unravel the amazing change brought by Agile and Scrum. It’s the time to welcome the change, not fear it.</p><h3>Agile: A Approach to Software Development</h3><p>The Agile methodology is a popular software development approach that promotes flexibility, collaboration, and customer satisfaction. Unlike traditional project management methodologies, Agile focuses on iterative progress, enabling teams to adapt to changes and deliver high-quality software in shorter cycles.</p><p>In Agile, requirements and solutions evolve through collaboration between self-organizing and cross-functional teams. This collaborative approach empowers teams, fosters a culture of continuous improvement, and drives rapid delivery of high-quality software.</p><p>I’ve personally experienced the transformative power of Agile during a university project. Instead of sticking to a fixed plan, our team embraced change and adapted our strategy based on new insights and feedback. This dynamic approach allowed us to deliver a final product that exceeded our initial expectations.</p><h3>Scrum: An Agile Framework for Complex Projects</h3><p>One of the most popular frameworks that implement Agile principles is Scrum. Scrum allows for flexibility while providing structure, roles, and events to manage complex work.</p><h4>The Scrum framework</h4><p>The Scrum framework comprises three primary roles:</p><ol><li><strong>The Product Owner: </strong>responsible for managing the Product Backlog and ensuring the value of the work the Development Team does. In aspiring team, we have one product owner throughout all sprints.</li><li><strong>The Scrum Master: </strong>acts as a servant-leader for the Scrum Team who is responsible for promoting and supporting Scrum by helping everyone understand Scrum theory, practices, rules, and values. In aspiring, we have different scrum master in each sprint.</li><li><strong>Development Team: </strong>consists of the members who do the work of delivering a potentially releasable increment of “Done” product at the end of each Sprint. In aspiring’s team , the Development Team consisted all the member of aspiring including me. We collaborated, shared ideas, and collectively decided on the best technical solutions for the tasks we undertook. We took ownership of our work and learned how to work effectively as a team.</li></ol><h4>Scrum Artifacts: The Sprint Backlog</h4><p>In Scrum, artifacts are key tools that provide transparency and opportunities for inspection and adaptation. One such critical artifact is the Sprint Backlog.</p><p>The Sprint Backlog is a set of Product Backlog Items (PBI) selected for the Sprint, along with a plan for delivering the product increment and realizing the Sprint Goal. It makes visible the work that the Development Team identifies as necessary to meet the Sprint Goal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qZZF44tj8mbfI7tB.png" /><figcaption>Aspiring’s PBI</figcaption></figure><h4>Navigating Through Key Scrum Events</h4><p>Scrum organizes the project timeline into distinct events with specific goals. Each event provides a structured opportunity for inspection and adaptation. Understanding the purpose and flow of these events helps in harnessing the full potential of Scrum.</p><p><strong>Sprint Planning — </strong>Sprint Planning initiates the Sprint by laying out the work to be performed. The Scrum Team collaborates and decides what can be done in the upcoming Sprint and how the work will be achieved. Our Sprint Planning sessions allowed us to define our goals and organize our work for the next two weeks. We broke down our tasks into manageable pieces and estimated the effort required for each task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rh_6PeqrGYVB07mdQ2XqBg.png" /><figcaption>One of Aspiring’s sprint planning result</figcaption></figure><p><strong>The Sprint — </strong>A Sprint is a time-boxed event that lasts typically between one and four weeks, during which a “Done,” usable, and potentially releasable product increment is created. Sprints are limited to a specific duration and the scope of the work — once chosen, it remains constant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*dl4lm-4-pNRYkSTruFOWfA.png" /><figcaption>One of Aspiring’s moment of doing the sprint</figcaption></figure><p><strong>Daily Scrum — </strong>This scrum event is held daily during the sprint. The Development Team uses it to inspect progress towards the Sprint Goal and adapt the Sprint Backlog as necessary. We found the Daily Scrum extremely useful in our project. It kept everyone informed about what others were doing, highlighted any obstacles, and fostered a sense of collaboration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rV6nckFicC9cCc1z.png" /><figcaption>One of Aspiring’s daily scrum meet</figcaption></figure><p><strong>Sprint Review — </strong>At the end of the Sprint, the team holds a Sprint Review to inspect the increment and adapt the Product Backlog if necessary. The Product Owner explains what backlog items have been “Done” and what has not been “Done”, and the entire team collaborates on what to do next. Our Sprint Reviews were moments of reflection. We presented our work to the lecturer, teaching assistant. We gathered feedback, and adjusted our plans accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*Sy1g41IQHFZs-LrYizrD8w.png" /><figcaption>One of Aspiring’s sprint review presentation</figcaption></figure><p><strong>Sprint Retrospective — </strong>The Sprint Retrospective is an opportunity for the Scrum Team to inspect itself and create a plan for improvements to be enacted during the next Sprint. We used our Sprint Retrospectives to discuss what went well and what didn’t, and to devise ways to improve our process and teamwork for the next Sprint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WEAyChJ7P3qTd5py.png" /><figcaption>One of Aspiring’s sprint retro result using Parabol</figcaption></figure><p>In a nutshell, Scrum’s events are designed to maximize transparency, inspection, and adaptation, contributing to the framework’s flexibility and responsiveness.</p><h3>Benefits of Agile and Scrum in Software Development</h3><p>Implementing Agile and Scrum methodologies in software development can bring numerous benefits:</p><ol><li><strong>Improved Quality</strong>: Agile’s iterative nature allows for regular check-ins and adjustments, enhancing the quality of the end product (Larson and Chang, 2016).</li><li><strong>Higher Customer Satisfaction</strong>: Agile methodologies emphasize customer collaboration and value feedback, which can lead to higher customer satisfaction.</li><li><strong>Increased Project Control</strong>: Scrum events provide regular opportunities for inspection and adaptation, giving teams better control over the project’s progress.</li><li><strong>Reduced Risks</strong>: Agile allows for early and frequent testing and bug tracking, significantly reducing project risks (Dingsøyr et al., 2012).</li></ol><p>During aspiring’s development, these benefits became very apparent. Agile and Scrum allowed us to adapt to unexpected changes, maintain control over the project’s direction, and deliver a high-quality product that satisfied our stakeholders.</p><p>In conclusion, Agile and Scrum methodologies provide a powerful framework for managing complex software development projects. By promoting flexibility, collaboration, and iterative progress, these methodologies can drive the delivery of high-quality software that meets customer needs.</p><p>Throughout my experience, I have seen how these methodologies can transform a challenging project into a success story. I believe that understanding and implementing Agile and Scrum principles is essential for any software developer or project manager looking to deliver exceptional results in today’s fast-paced digital world.</p><h3>References</h3><p><a href="https://www.cprime.com/resources/what-is-agile-what-is-scrum/">https://www.cprime.com/resources/what-is-agile-what-is-scrum/</a></p><p><a href="https://www.scrum.org/learning-series/what-is-scrum">https://www.scrum.org/learning-series/what-is-scrum</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=331571f16934" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boosting Software Quality with Jest: Unleashing the Power of Test Driven Development]]></title>
            <link>https://medium.com/@dinda.adriani/boosting-software-quality-with-jest-unleashing-the-power-of-test-driven-development-e4b79f15db5c?source=rss-8c903230da1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4b79f15db5c</guid>
            <dc:creator><![CDATA[Dinda Adriani]]></dc:creator>
            <pubDate>Thu, 27 Apr 2023 03:30:18 GMT</pubDate>
            <atom:updated>2023-04-27T03:30:18.395Z</atom:updated>
            <content:encoded><![CDATA[<p>In the ever-evolving landscape of software development, employing a robust methodology is essential for ensuring high-quality outcomes. Test Driven Development (TDD) is a widely-adopted methodology that has helped teams develop reliable and efficient software. In this article, we will delve into the concept of TDD, explore its benefits, and share our team’s experience implementing TDD using Jest in the Aspiring project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/0*9WArpBzjsprDGaO4.jpeg" /><figcaption>cr: BrainHub</figcaption></figure><h4><strong>1. Understanding Test Driven Development (TDD)</strong></h4><p>Test Driven Development (TDD) is a software development methodology that emphasizes writing tests before writing the actual code (Beck, 2002). The TDD process follows a simple, repetitive cycle:</p><ol><li>Write a test for a new feature or function.</li><li>Run the test to ensure it fails (since the code for the feature or function has yet to be written).</li><li>Write the minimum amount of code necessary to make the test pass.</li><li>Refactor the code, if necessary, to optimize its performance and readability.</li><li>Repeat the process for subsequent features or functions.</li></ol><p>TDD aims to improve the overall quality and maintainability of the software by catching bugs early and encouraging the development of modular, easily testable code (Astels, 2003).</p><h4><strong>2. TDD with Jest: A Powerful Combination</strong></h4><p>Jest is a popular JavaScript testing framework developed by Facebook that is well-suited for implementing TDD. It provides several features that make it an ideal choice for TDD, such as:</p><ol><li><strong>Fast and efficient test execution</strong>. Jest runs tests in parallel, leveraging worker processes to achieve faster test execution times.</li><li><strong>Snapshot testing.</strong> Jest allows developers to capture snapshots of component outputs, making it easier to detect and fix unexpected changes.</li><li><strong>Mocking.</strong> Jest provides built-in mocking capabilities, enabling developers to create mock functions and objects for testing purposes.</li></ol><p>In the Aspiring project, our team effectively implemented TDD using Jest. We began by setting up Jest as our testing framework, installing it as a dependency and configuring it in our project’s package.json file. To ensure that our tests and code changes were isolated from the main codebase, we created a separate branch for each new feature or function.</p><p>For each new feature, we wrote Jest test suites and test cases, using describe and it or test functions to organize and describe our tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*SN-6ZydUB04L_arSJ_UHEg.png" /><figcaption>Example of how we, in Aspiring, use Jest to test our code</figcaption></figure><p>We employed Jest&#39;s assertion functions, such as expect and toBe, to verify that our code behaved as expected and leveraged Jest&#39;s mocking capabilities to isolate our code under test and simulate external dependencies when necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*zbvg_KdYPD6-cQslj7pptA.png" /><figcaption>Example of how we, in Aspiring, use Jest to test our code</figcaption></figure><p>To maintain a streamlined development process, we configured GitLab’s Continuous Integration (CI) pipeline to automatically run our Jest tests whenever new changes were pushed to the repository. Finally, we regularly merged our feature branches into the main codebase after ensuring that all tests passed and used GitLab’s Merge Request feature to review and discuss code changes with our team members.</p><p>In conclusion, Test Driven Development, when combined with a powerful testing framework like Jest, can significantly improve the quality, maintainability, and efficiency of your projects. In Aspiring, by embracing TDD with Jest, we can feel a better collaboration, increased confidence in codebase, and ultimately, the delivery of high-quality software products.</p><p>References:</p><ol><li>Beck, K. (2002). Test Driven Development: By Example. Addison-Wesley Professional.</li><li>Astels, D. (2003). Test-driven Development: A Practical Guide. Prentice Hall PTR.</li><li>Janzen, D., &amp; Saiedian, H. (2005). Test-driven Development: Concepts, Taxonomy, and Future Direction. IEEE Computer, 38(9), 43–50.</li><li>Fowler, M. (2006). Refactoring: Improving the Design of Existing Code. Addison-Wesley Professional.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4b79f15db5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing Team Collaboration and Efficiency with GitLab Issues]]></title>
            <link>https://medium.com/@dinda.adriani/enhancing-team-collaboration-and-efficiency-with-gitlab-issues-a8dc91c208e1?source=rss-8c903230da1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8dc91c208e1</guid>
            <category><![CDATA[merge-request]]></category>
            <category><![CDATA[scrum-board]]></category>
            <category><![CDATA[commit-messages]]></category>
            <category><![CDATA[gitlab]]></category>
            <dc:creator><![CDATA[Dinda Adriani]]></dc:creator>
            <pubDate>Fri, 17 Mar 2023 17:47:11 GMT</pubDate>
            <atom:updated>2023-03-17T17:47:11.984Z</atom:updated>
            <content:encoded><![CDATA[<p>As a student working on a team project, collaborating with your teammates effectively is critical to ensuring the project’s success. With multiple people working on the same project, it can be challenging to keep track of everyone’s contributions and ensure that the project is progressing as planned. Fortunately, our team uses GitLab Issues and in this article, I will share our experience with GitLab and explain how GitLab Issues, merge requests, and Scrum boards have helped my team achieve our project goals efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Xc9dZXC9IUfvGqh3No55g.jpeg" /><figcaption>cr: <a href="https://about.gitlab.com/">GitLab</a></figcaption></figure><h4>What is GitLab?</h4><p>GitLab is a web-based Git repository manager that provides a platform for managing source code repositories, continuous integration/continuous deployment (CI/CD), and project planning. GitLab is a popular platform among software development teams because it provides a comprehensive suite of tools for managing projects and tracking progress.</p><h4>GitLab Issues for Effective Collaboration</h4><p>GitLab Issues is a crucial feature of GitLab that provides an efficient way to manage issues, bugs, and tasks, assign tasks to team members, track progress, and ensure that everyone is on the same page. Here’s how GitLab Issues has helped my team improve collaboration and productivity:</p><ul><li><strong>Merge Requests</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZ9BaLZwDANtXLNghr2hNA.png" /><figcaption>One of Aspiring’s current merge requests</figcaption></figure><p>GitLab Issues provides an efficient way to manage code changes and ensure that all team members are on the same page. With merge requests, team members can request that their code changes be reviewed and approved by their peers before being merged into the main branch. This way, team members can collaborate effectively and ensure that the codebase is stable and error-free.</p><ul><li><strong>Scrum Board</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MoXPHt7YGmKaWapeq1WOHg.png" /><figcaption>Aspiring’s scrum board on GitLab Issue</figcaption></figure><p>GitLab Issues includes a built-in Scrum board that allows teams to visualize their project’s progress and prioritize tasks. The Scrum board provides a simple and intuitive way to manage tasks and track progress, which can help ensure that your team stays on track and meets its deadlines. With the Scrum board, my team can manage our sprints efficiently, track our progress, and ensure that we meet our project goals within the set deadlines.</p><ul><li><strong>Milestones</strong></li></ul><p>GitLab Issues allows teams to set project milestones, which can help break down the project into smaller, manageable tasks. By setting milestones, teams can track their progress and ensure that they are making steady progress towards their project’s goals. My team uses milestones to track our progress, manage our tasks efficiently, and ensure that we complete our project within the set timelines.</p><h4>Best Practices for Using GitLab Issues</h4><ol><li>Clear and Consistent Labels. When creating issues in GitLab, it’s crucial to use clear and consistent labels to help organize and prioritize tasks. This way, team members can easily identify the tasks they need to work on, prioritize them, and complete them within the set deadlines.</li><li>Assign Tasks to Specific Team Members. When creating issues, it’s vital to assign tasks to specific team members to ensure that everyone knows what they are responsible for. Assigning tasks can also help team members prioritize their work and ensure that nothing falls through the cracks. My team assigns tasks to specific team members, and this helps us work efficiently, manage our tasks effectively, and ensure that we complete our project within the set deadlines.</li><li>Best Practice Commit Messages and Merge Requests. Writing clear and concise commit messages and merge requests can help ensure that your code changes are easy to understand and review. A good commit message should describe the changes made to the code and why those changes were necessary. Similarly, a well-written merge request should include a detailed description of the changes made and any related issues or tasks. My team follows the best practices for writing commit messages and merge requests, and this has helped us collaborate effectively, ensure that our code is stable and error-free, and improve our productivity.</li></ol><p>Here are some best practices for writing commit messages and merge requests:</p><ul><li>Use the imperative mood and present tense in commit messages. For example, “Fix a bug” instead of “Fixed a bug.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sC8W5DCJIMJB-yllcT4Kjg.png" /><figcaption>Example of how we, in Expiring, write a commit message</figcaption></figure><ul><li>Keep commit messages concise and to the point. Avoid writing lengthy paragraphs.</li><li>Mention related issues or tasks in the commit message or merge request to provide context.</li><li>Use descriptive and concise titles for merge requests.</li><li>Include a detailed description of the changes made in the merge request, including any related issues or tasks.</li></ul><p>In conclusion, GitLab Issues is a powerful tool that can help improve team collaboration and productivity. With features such as merge requests, Scrum boards, and milestones, teams can manage their projects effectively, track progress, and ensure that they meet their project goals within the set timelines. By following the best practices for using GitLab Issues and writing commit messages and merge requests, teams can collaborate efficiently and ensure that their code is stable and error-free. If you’re working on a team project, consider using GitLab Issues to boost your team’s collaboration and productivity</p><p>References:</p><ul><li>GitLab. (2022). GitLab. <a href="https://about.gitlab.com/">https://about.gitlab.com/</a></li><li>How to Write a Git Commit Message. (n.d.). Chris Beams. <a href="https://chris.beams.io/posts/git-commit/">https://chris.beams.io/posts/git-commit/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8dc91c208e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>