<?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 Risa Lestari on Medium]]></title>
        <description><![CDATA[Stories by Risa Lestari on Medium]]></description>
        <link>https://medium.com/@risa.lestari2002?source=rss-434a05cc81e5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BTTW3V1qj9NAHpaM</url>
            <title>Stories by Risa Lestari on Medium</title>
            <link>https://medium.com/@risa.lestari2002?source=rss-434a05cc81e5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:01:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@risa.lestari2002/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[Test-Driven Development (TDD): Understanding and Application in Software Projects]]></title>
            <link>https://medium.com/@risa.lestari2002/test-driven-development-tdd-understanding-and-application-in-software-projects-68c8ab2f2303?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/68c8ab2f2303</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Sun, 26 May 2024 12:33:42 GMT</pubDate>
            <atom:updated>2024-05-26T12:33:42.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/475/0*E3bBSGAQgfH9q22V.png" /></figure><h4>Introduction to Test-Driven Development (TDD)</h4><p>Test-Driven Development (TDD) is a software development methodology where tests are written before the code that needs to be tested. This approach emphasizes writing minimal code necessary to pass the tests and then refactoring the code to improve its structure and readability. TDD is designed to enhance software quality and facilitate more robust, maintainable, and bug-free code.</p><h4>The TDD Cycle</h4><ol><li>Write a Test: Write a test for the next bit of functionality you want to add.</li><li>Run the Test and See it Fail: This step ensures that the new test does not pass without the necessary implementation.</li><li>Write Code to Pass the Test: Write the minimum amount of code needed to make the test pass.</li><li>Run All Tests and See Them Pass: Ensure that the new code does not break any existing functionality.</li><li>Refactor the Code: Improve the code’s structure and remove any duplication while ensuring that all tests still pass.</li></ol><h3>Understanding Equivalence Classes and Edge Testing</h3><p>Equivalence class testing and edge testing are techniques used in TDD to ensure comprehensive test coverage.</p><p><strong>Equivalence Class Testing:</strong></p><ul><li>This method divides input data into equivalence partitions or classes. Each class represents a set of valid or invalid states for the input, ensuring that each class is tested at least once.</li></ul><p><strong>Edge Testing:</strong></p><ul><li>Edge testing focuses on the boundaries between equivalence classes. These boundaries are where bugs are often found, so testing at the edges ensures that the software can handle boundary conditions correctly.</li></ul><h3>Example of TDD with Equivalence Class and Edge Testing</h3><p>Let’s consider a simple function that calculates the sum of two numbers.</p><h4>Step 1: Write a Test</h4><pre>import pytest<br><br>def test_sum():<br>    assert sum(1, 2) == 3<br>    assert sum(-1, 1) == 0<br>    assert sum(0, 0) == 0<br>    assert sum(99999, 1) == 100000</pre><h4>Step 2: Run the Test and See it Fail</h4><p>Running the test will fail because the sum function is not yet implemented.</p><h4>Step 3: Write Code to Pass the Test</h4><pre>def sum(a, b):<br>    return a + b</pre><h4>Step 4: Run All Tests and See Them Pass</h4><p>Run the tests again to ensure they pass with the new implementation.</p><h4>Step 5: Refactor the Code</h4><p>In this simple example, there may not be much to refactor, but always review the code for potential improvements.</p><h3>Application of TDD in a Project</h3><p>Let’s apply TDD to a more complex example with user authentication and note management. Below are the tests and code implementations for a hypothetical project.</p><h4>Tests for User Authentication (test_auth.py)</h4><pre>import pytest<br>from app import create_app, db<br>from app.models import User<br><br>def test_user_registration():<br>    app = create_app()<br>    with app.app_context():<br>        user = User(username=&quot;testuser&quot;, email=&quot;test@example.com&quot;, password=&quot;password&quot;)<br>        db.session.add(user)<br>        db.session.commit()<br>        assert User.query.filter_by(username=&quot;testuser&quot;).first() is not None<br><br>def test_user_login():<br>    app = create_app()<br>    with app.app_context():<br>        user = User(username=&quot;testuser&quot;, email=&quot;test@example.com&quot;, password=&quot;password&quot;)<br>        db.session.add(user)<br>        db.session.commit()<br>        login_success = user.check_password(&quot;password&quot;)<br>        assert login_success is True</pre><h4>Code for User Authentication</h4><pre>from flask import Flask<br>from flask_sqlalchemy import SQLAlchemy<br>from werkzeug.security import generate_password_hash, check_password_hash<br><br>db = SQLAlchemy()<br><br>class User(db.Model):<br>    id = db.Column(db.Integer, primary_key=True)<br>    username = db.Column(db.String(150), unique=True, nullable=False)<br>    email = db.Column(db.String(150), unique=True, nullable=False)<br>    password_hash = db.Column(db.String(150), nullable=False)<br><br>    def __init__(self, username, email, password):<br>        self.username = username<br>        self.email = email<br>        self.password_hash = generate_password_hash(password)<br><br>    def check_password(self, password):<br>        return check_password_hash(self.password_hash, password)<br><br>def create_app():<br>    app = Flask(__name__)<br>    app.config[&#39;SQLALCHEMY_DATABASE_URI&#39;] = &#39;sqlite:///:memory:&#39;<br>    db.init_app(app)<br>    return app</pre><h4>Tests for Note Management (test_notes.py)</h4><pre>import pytest<br>from app import create_app, db<br>from app.models import Note<br><br>def test_create_note():<br>    app = create_app()<br>    with app.app_context():<br>        note = Note(title=&quot;Test Note&quot;, content=&quot;This is a test note.&quot;)<br>        db.session.add(note)<br>        db.session.commit()<br>        assert Note.query.filter_by(title=&quot;Test Note&quot;).first() is not None<br><br>def test_delete_note():<br>    app = create_app()<br>    with app.app_context():<br>        note = Note.query.filter_by(title=&quot;Test Note&quot;).first()<br>        db.session.delete(note)<br>        db.session.commit()<br>        assert Note.query.filter_by(title=&quot;Test Note&quot;).first() is None</pre><h4>Code for Note Management</h4><pre>class Note(db.Model):<br>    id = db.Column(db.Integer, primary_key=True)<br>    title = db.Column(db.String(150), nullable=False)<br>    content = db.Column(db.Text, nullable=False)<br><br>    def __init__(self, title, content):<br>        self.title = title<br>        self.content = content</pre><h3>Best Practices and Researches in TDD</h3><ol><li>Continuous Integration (CI): Integrate tests into the CI pipeline to run them automatically on every commit, ensuring immediate feedback on broken code.</li><li>Code Coverage: Use code coverage tools to ensure that all code paths are tested. Aim for high coverage but prioritize meaningful tests over merely increasing the coverage percentage.</li><li>Pair Programming: Collaborate with another developer to write tests and code together. This practice can improve code quality and facilitate knowledge sharing.</li><li>Test Refactoring: Regularly refactor tests to maintain readability and effectiveness. Avoid overly complex tests that are hard to understand and maintain.</li></ol><h3>Conclusion</h3><p>Test-Driven Development (TDD) is a powerful methodology for producing high-quality, maintainable software. By writing tests first, developers can ensure their code meets the required specifications and is free from many common bugs. Incorporating practices like equivalence class testing and edge testing further enhances test coverage and reliability. Applying TDD in projects, especially with comprehensive test cases and best practices, leads to robust and resilient software solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68c8ab2f2303" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[tes]]></title>
            <link>https://medium.com/@risa.lestari2002/tes-47e863fb9fca?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/47e863fb9fca</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Sun, 19 May 2024 17:14:29 GMT</pubDate>
            <atom:updated>2024-05-19T17:14:29.829Z</atom:updated>
            <content:encoded><![CDATA[<p>tes</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47e863fb9fca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing Software Integrity through Static Analysis]]></title>
            <link>https://medium.com/@risa.lestari2002/enhancing-software-integrity-through-static-analysis-ad2390e04efc?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad2390e04efc</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Sat, 11 May 2024 04:53:45 GMT</pubDate>
            <atom:updated>2024-05-26T12:58:01.869Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vcOBtDE1hp7DMJL3.jpg" /></figure><p><strong>Introduction</strong><br>In the pursuit of excellence in software development, ensuring code quality from the initial stages is not just advisable but essential. Static analysis stands out as a robust method under the broader discipline of Software Quality Assurance (SQA). It involves examining the code without actually executing it to find bugs, security breaches, and non-compliance with coding standards.</p><p><strong>The Role of Static Analysis</strong><br>Static analysis tools are pivotal in the software development lifecycle as they automate the process of checking code quality, thus ensuring that potential issues are flagged and fixed early. This not only improves the security and performance of applications but also aligns development practices with industry standards.</p><p><strong>Integration of Tools Like SonarCloud and Code Climate</strong><br>Tools such as SonarCloud and Code Climate offer comprehensive platforms for static analysis. These tools integrate seamlessly into continuous integration pipelines, providing real-time feedback and insights into the quality of the code being developed. They check for a variety of issues including syntax errors, potential bugs, duplicated code, and overly complex code constructions.</p><p>I’ll guide you through setting up SonarQube for your own organization and projects.</p><p><strong>Installing Docker</strong><br>The installation process for Docker varies based on your operating system:</p><ul><li>For MacOS with Homebrew: Open your terminal and execute the command</li></ul><pre>brew install docker</pre><p>For Windows or MacOS without Homebrew: Follow the steps outlined in the official Docker documentation to ensure correct installation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cbR5trRHi6ZJQwJqU1TnTA.png" /></figure><p>After installation, verify Docker by running:</p><pre>docker --version</pre><p>in your terminal to check the installed version of Docker.</p><p><strong>Deploying SonarQube in a Docker Container</strong></p><p>When implementing CI/CD and Sonar Qube in our projects, we setup gitlab-ci.yml file and adding the required data.</p><pre>variables:<br> SONAR_USER_HOME: &quot;${CI_PROJECT_DIR}/.sonar&quot;  # Defines the location of the analysis task cache<br> GIT_DEPTH: &quot;0&quot;  # Tells git to fetch all the branches of the project, required by the analysis task<br>sonarcloud-check:<br> image:<br>   name: sonarsource/sonar-scanner-cli:latest<br>   entrypoint: [&quot;&quot;]<br> cache:<br>   key: &quot;${CI_JOB_NAME}&quot;<br>   paths:<br>     - .sonar/cache<br> script:<br>   - sonar-scanner<br>#  rules:<br>#     - if: $CI_COMMIT_REF_NAME == &#39;main&#39; || $CI_PIPELINE_SOURCE == &#39;merge_request_event&#39;</pre><p>After that we created sonar-project.properties file</p><pre>sonar.projectKey=&lt;your-project-key&gt;<br>sonar.qualitygate.wait=true<br># sonar.organization=your-sonarcloud-organization-name-here<br><br># This is the name and version displayed in the SonarCloud UI.<br># sonar.projectName=Sample Project<br># sonar.projectVersion=1.0<br><br># Path is relative to the sonar-project.properties file. Replace &quot;\&quot; by &quot;/&quot; on Windows.<br># sonar.sources=.<br><br># Encoding of the source code. Default is default system encoding<br># sonar.sourceEncoding=UTF-8</pre><p>To install SonarQube as a Docker container, use the following commands based on your operating system:</p><p><strong>On MacOS:</strong></p><pre>sudo docker run -d --name sonar --restart always -p 9000:9000 sonarqube:lts-community</pre><p><strong>On Windows:</strong></p><pre>docker run -d --name sonar --restart always -p 9000:9000 sonarqube:lts-community</pre><p>To confirm SonarQube is running, enter:</p><pre>docker ps -a</pre><p>in your terminal. The “STATUS” should indicate that the container is active.</p><p>Access SonarQube by navigating to http://localhost:9000/ on your local machine, or use the public IP address of your VM if you deployed SonarQube there.</p><p><strong>Preparing for SonarQube Setup</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4lsbFwRKZecpl-_WWHq3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LAn0Xm5-b1Ez1-sXSfO7mQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0pHFxtA2i8lk_zp44tq2eQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zLk1jSL7SbsEYPPwZsIlvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vw5AeJgK_QAe6FjIVlqsHA.png" /></figure><p>Before configuring SonarQube, you must set up a GitHub App to grant SonarQube permissions to scan your repositories:</p><ol><li>Click on your profile icon at the top right of GitHub, go to “Your organizations” and select “Settings” for your organization.</li><li>Navigate to “Developer settings” and then “GitHub Apps”. Click on “New GitHub App”.</li><li>Fill in the required fields:</li></ol><ul><li>GitHub App Name: Choose an appropriate name for your app.</li><li>Homepage URL: Use https://www.sonarqube.org/ or any other URL.</li><li>User authorization callback URL: Use a URL like <a href="http://sonarqube.yourcompany.com./">http://sonarqube.yourcompany.com.</a></li><li>Webhook URL: Disable this feature for enhanced security since SonarQube versions post 8.9 LTS recommend it.</li></ul><ol><li>Specify repository and organization permissions as necessary, particularly enabling read &amp; write for checks and read-only for contents in private repositories.</li><li>Under “Where can this GitHub App be installed?”, choose “Any account” and create your app.</li></ol><p><strong>Configuring SonarQube with GitHub</strong><br>Upon accessing SonarQube, log in with the default admin username and password and prompt to update your password. Follow these steps to configure SonarQube with GitHub:</p><ul><li>Navigate to configuration settings and input the GitHub API URL, which will be https://api.github.com for GitHub or a specific enterprise URL for private installations.</li><li>Enter the credentials from your GitHub App setup (GitHub App ID, Client ID, Private Key).</li><li>Save the configuration to complete the setup.</li></ul><p><strong>Finalizing the Setup</strong><br>SonarQube will guide you in creating necessary configuration files in your project, such as sonar-project.properties and build.yml. Follow the instructions provided by SonarQube to edit these files accordingly and push them to your repository.</p><p><strong>Conclusion</strong><br>By implementing SonarQube with Docker, developers can enhance their software’s reliability, efficiency, and security. Tools like SonarQube play a critical role in maintaining high software quality standards, ensuring that both developers and end-users benefit from a superior product. This setup guide provides a solid foundation for integrating SonarQube into your development workflow, leading to better code quality and project outcomes.</p><p><strong>References:</strong></p><ul><li>Docker. (n.d.). <em>Install Docker Engine</em>. Retrieved from <a href="https://docs.docker.com/engine/install/">https://docs.docker.com/engine/install/</a></li><li>SonarQube. (n.d.). <em>Homepage</em>. Retrieved from <a href="https://www.sonarqube.org/">https://www.sonarqube.org/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad2390e04efc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing User Experience: A Case Study on UI Design Best Practices]]></title>
            <link>https://medium.com/@risa.lestari2002/enhancing-user-experience-a-case-study-on-ui-design-best-practices-7663035633d9?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/7663035633d9</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Sat, 11 May 2024 04:27:36 GMT</pubDate>
            <atom:updated>2024-05-11T04:27:36.844Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RHIGiMoR1MoM44qV" /></figure><h3>Enhancing User Experience: A Case Study on UI Design Best Practices</h3><p>In the realm of software development, crafting an intuitive and effective user interface (UI) is crucial for ensuring a seamless interaction between the product and its users. By adhering to established usability heuristics and integrating user feedback into the design process, developers can create applications that are not only functional but also user-friendly. This article explores a practical application of these principles through a series of user interface screens designed for a note-taking and educational platform.</p><h4>1. Initial User Interaction: Login and Account Verification</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SFfcOzKMKmFgTyOwGRk_wQ.png" /></figure><p>The first interaction a user has with any application is often through the login page, making its design critical for a positive first impression. The provided login interface incorporates several of Nielsen’s 10 Usability Heuristics effectively:</p><ul><li>Visibility of System Status: The interface gives immediate feedback when the user inputs data, clearly displaying requirements for email and password inputs. This transparency helps users correct errors in real time, enhancing the overall user experience.</li><li>Error Prevention: By specifying input requirements directly on the form (e.g., “Enter at least 5+ characters”), the design prevents possible user errors. Furthermore, features like “Forgot password?” ensure that users can easily recover from mistakes without frustration.</li><li>User Control and Freedom: The straightforward layout with clear options allows users to navigate the login process with ease, providing a sense of control over their actions.</li></ul><h4>2. Creating and Managing Content: Note-Taking Features</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*I52hG77fUJbJ_tvgAzIHOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*MD0aX1Ypr_OZYPRFp3SYlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*uUlb-tmn045IJ3vt-Q0hpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*KmcjWJFqabtbuZ-teTPC0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*rTVpAX16mKXiyAtBkE2AoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*OqrvrQKCu7V57s1Zt_o1Sw.png" /></figure><p>The core functionality of the platform allows users to create, transcribe, and manage notes efficiently:</p><ul><li>Match between System and the Real World: The design uses familiar conventions, such as drag-and-drop areas and recognizable icons for file upload and audio transcription, making the system intuitive even for first-time users.</li><li>Flexibility and Efficiency of Use: The UI caters to both novice and expert users by facilitating simple operations and allowing for more sophisticated tasks like detailed tagging and batch operations, thereby enhancing productivity.</li><li>Consistency and Standards: The use of universally recognizable UI elements ensures that users feel at home across various parts of the application, reducing the learning curve and supporting usability.</li></ul><h4>3. Feedback and Progress Tracking: Quizzes and Dashboard</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*1362ypfb-EUe_ze3k8FLZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*BNaoNI-bWjujzQYsH6DLWA.png" /></figure><p>Interactive testing and progress tracking are vital for educational platforms. The quiz interfaces and user dashboard effectively implement several usability principles:</p><ul><li>Recognition Rather Than Recall: The system keeps all necessary information visible, such as quiz timers and previous answers, reducing the cognitive load on the user.</li><li>Help Users Recognize, Diagnose, and Recover from Errors: After completing quizzes, users receive immediate feedback on their answers, which helps them learn and adjust their understanding.</li><li>Aesthetic and Minimalist Design: The clean and focused design prevents the interface from overwhelming users with unnecessary information, thereby enhancing the user’s focus and interaction with the content.</li></ul><h4>Conclusion</h4><p>By adhering to Nielsen’s Usability Heuristics, the designers of this educational platform have created an environment that fosters an effective learning and content management experience. Each interface is crafted with the user’s needs in mind, from initial login to complex content interaction. Moreover, the continuous integration of user feedback into the design process ensures that the platform evolves according to the actual needs of its users, further aligning with the best practices in user-centered design.</p><p>This case study exemplifies how thoughtful design and adherence to best practices in usability can significantly enhance the functionality and user satisfaction of digital products. Through meticulous planning and continuous adjustment, developers can ensure their products meet and exceed user expectations, paving the way for successful user experiences.</p><h3>References</h3><ul><li>Nielsen, J. (1994). <em>Usability Engineering</em>. Academic Press.</li><li>Nielsen, J., &amp; Loranger, H. (2006). <em>Prioritizing Web Usability</em>. New Riders.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7663035633d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide to Adding Microsoft Clarity to Your Next.js Vercel Application]]></title>
            <link>https://medium.com/@risa.lestari2002/step-by-step-guide-to-adding-microsoft-clarity-to-your-next-js-vercel-application-e7c3859fcd16?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7c3859fcd16</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Tue, 07 May 2024 07:57:11 GMT</pubDate>
            <atom:updated>2024-05-10T19:43:22.404Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iN-9ocO77ANAJAWo.png" /></figure><p><strong>Introduction</strong><br>Understanding user behavior on your website can vastly improve the user experience and operational efficiency. Microsoft Clarity is a user behavior analytics tool that provides insights into how users interact with your site. This guide will explain how to integrate Microsoft Clarity into a Next.js application deployed on Vercel.</p><h3>Step 1: Acquire a Clarity Project ID</h3><p>The first step is to obtain a unique identifier from Microsoft Clarity, which will be used to track data on your site. Here’s how to get started:</p><ul><li>Sign up or log in at <a href="https://clarity.microsoft.com/">Microsoft Clarity</a>.</li><li>Register your website with Clarity to get your unique project ID.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9vLRoBTocRbtFbq7ujrUiw.png" /></figure><h3>Step 2: Set Up Environment Variables in Vercel</h3><p>For security and flexibility, store your Clarity project ID as an environment variable in your Vercel project. This can be easily done via the Vercel CLI:</p><ol><li>Run the following command in your terminal:</li></ol><pre>vercel env add NEXT_PUBLIC_CLARITY_PROJECT_ID</pre><p>2. When prompted, enter your Clarity project ID.</p><p>3. Apply this variable to all your deployment environments (Production, Preview, Development).</p><p>Check that the environment variable is properly set by listing all with:</p><pre>vercel env ls</pre><h3>Step 3: Embed the Clarity Script in Your Next.js Application</h3><p><strong><em>location</em></strong><em>: /app/metrics/MicrosoftClarity.tsx</em></p><p>On Microsoft Clarity file we will have an <strong>enviroment</strong> variable called <strong>NEXT_PUBLIC_MICROSOFT_CLARITY</strong>.Integrating Clarity involves inserting a script that must load with each page. This is best done in the root layout of your application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*RhbI4XqE6Qb89hyTH1e_Ng.png" /></figure><ol><li>In your root layout file ( MicrosoftClarity.tsxif using TypeScript), add the following code:</li></ol><pre>import Script from &#39;next/script&#39;;<br><br>export default function RootLayout({ children }: { children: React.ReactNode }) {<br> return (<br>   &lt;html lang=&quot;en&quot;&gt;<br>     &lt;body&gt;<br>     {children}<br>       &lt;Script id=&quot;clarity-script&quot; strategy=&quot;afterInteractive&quot;&gt;<br>         {`<br>         (function(c,l,a,r,i,t,y){<br>         c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};<br>         t=l.createElement(r);t.async=1;t.src=&quot;https://www.clarity.ms/tag/&quot;+i;<br>         y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);<br>         })(window, document, &quot;clarity&quot;, &quot;script&quot;, &quot;${process.env.NEXT_PUBLIC_CLARITY_PROJECT_ID}&quot;);<br>         `}<br>       &lt;/Script&gt;<br>     &lt;/body&gt;<br>   &lt;/html&gt;<br> );<br>}</pre><h3>Index.tsx 📄</h3><p><strong><em>location</em></strong><em>: /app/metrics/index.tsx</em></p><p>This file is just for <strong>organization</strong>, you could import both files directly inside your layout.tsx.</p><pre>import MicrosoftClarity from &quot;./MicrosoftClarity&quot;<br><br>const Metrics = () =&gt; (<br>    &lt;&gt;<br>        &lt;MicrosoftClarity /&gt;<br>    &lt;/&gt;<br>)<br><br>export default Metrics</pre><h3>layout.tsx 📄</h3><p><strong><em>location</em></strong><em>: /app/</em>layout<em>.tsx</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*lsvNQvxy9lP_kzfpr9euFg.png" /></figure><p>Now on your layout.tsx file, located inside your <strong>/app</strong> directory, you can now <strong>import</strong> your <strong>Metrics</strong> component.</p><pre>import type { Metadata } from &#39;next&#39;<br>import { Inter } from &#39;next/font/google&#39;<br>import &#39;./globals.css&#39;<br>import Metrics from &#39;./metrics&#39;<br><br>const inter = Inter({ subsets: [&#39;latin&#39;] })<br><br>export const metadata: Metadata = {<br>  title: &#39;Create Next App&#39;,<br>  description: &#39;Generated by create next app&#39;,<br>}<br><br>export default function RootLayout({<br>  children,<br>}: {<br>  children: React.ReactNode<br>}) {<br>  return (<br>    &lt;html lang=&quot;en&quot;&gt;<br>      &lt;body className={inter.className}&gt;<br>        {children}<br>        &lt;Metrics /&gt;<br>      &lt;/body&gt;<br>    &lt;/html&gt;<br>  )<br>}</pre><h3>.env.local 📄</h3><p><strong><em>location</em></strong><em>: /.env.local (root </em>directory<em>)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*hZnCL_5D19Q4u7L1OTmrWQ.png" /></figure><p>Finally, create an env.local file in your root directory to store your environment variables for Google Analytics and Microsoft Clarity.</p><p>When <strong>naming</strong> your environment variables, ⚠️ <strong>it is crucial</strong> <strong>to</strong> <strong>begin with</strong> <strong>NEXT_PUBLIC_ </strong>⚠️<strong> </strong>to ensure visibility on the client side.</p><pre>NEXT_PUBLIC_GOOGLE_ANALYTICS=your_key<br>NEXT_PUBLIC_MICROSOFT_CLARITY=your_key</pre><h3>Step 4: Deploy and Go Live</h3><p>With the Clarity script embedded and environment variables set, you are ready to deploy your application:</p><ul><li>To deploy a preview version:</li></ul><pre>vercel</pre><ul><li>To launch in production:</li></ul><pre>vercel - prod</pre><p><strong>Conclusion</strong><br>You’ve now integrated Microsoft Clarity into your Next.js application, empowering you with detailed analytics to understand and enhance user interactions on your site. With these insights, you’re better equipped to optimize your website and provide a superior user experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7c3859fcd16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Harnessing Teamwork and Tools for Enhanced Software Development Efficiency]]></title>
            <link>https://medium.com/@risa.lestari2002/harnessing-teamwork-and-tools-for-enhanced-software-development-efficiency-79d300a70e1f?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/79d300a70e1f</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 03:21:51 GMT</pubDate>
            <atom:updated>2024-05-26T13:40:20.584Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EiuRU5zYWRzgUEkz.png" /></figure><p>In the evolving landscape of software development, the synergy between teamwork and the strategic use of tools emerges as a cornerstone for success. This dynamic duo not only propels efficiency but also nurtures creativity and innovation, ultimately refining the quality of the final product.</p><h4>The Power of Collaboration</h4><p>Pair programming stands out as a notable practice where two developers work in tandem on a single computer, effectively reducing bugs by 15% compared to solo efforts. Esteemed organizations such as Facebook, Peloton, and Vimeo have embraced this technique, witnessing firsthand its potential to enhance code quality through mutual review and bug detection. Similarly, code reviews serve as a critical collaborative tool, fostering a platform for developers to scrutinize and refine code before its integration into the main branch, thus elevating the software’s overall integrity.</p><h3>Best Practices to Enhance Software Integrity</h3><h3>1. Code Reviews</h3><p>Regular code reviews are essential in maintaining high software quality. Peer reviews help identify potential issues that automated tools might miss and foster a culture of collaboration and knowledge sharing within the development team.</p><h3>2. Continuous Integration and Continuous Deployment (CI/CD)</h3><p>Implementing CI/CD pipelines ensures that code changes are automatically tested and deployed, reducing the risk of introducing new bugs. Automated testing and deployment processes help maintain software integrity by catching issues early and enabling rapid feedback.</p><h3>3. Secure Coding Practices</h3><p>Adopting secure coding practices is fundamental in developing secure software. This includes:</p><ul><li>Input Validation: Ensuring all input is validated and sanitized to prevent injection attacks.</li><li>Least Privilege: Applying the principle of least privilege to minimize the potential impact of a security breach.</li><li>Authentication and Authorization: Implementing robust authentication and authorization mechanisms to protect sensitive data.</li></ul><h3>4. Dynamic Analysis</h3><p>While static analysis examines code without executing it, dynamic analysis tests the software in a runtime environment. This approach helps identify issues that only manifest during execution, such as memory leaks, race conditions, and performance bottlenecks.</p><h3>5. Threat Modeling</h3><p>Threat modeling is a structured approach to identifying and mitigating potential security threats. By understanding the system’s attack surface and potential vulnerabilities, developers can implement appropriate security controls to protect the application.</p><h3>6. Effective Team Collaboration</h3><p>Enhancing software integrity also relies on effective team collaboration. Teams can improve their workflow efficiency using various tools and practices:</p><ul><li>Merge Requests: Utilizing merge requests for peer reviews and code integration.</li><li>Scrum Boards: Organizing tasks and tracking progress using scrum boards for better visibility and planning.</li><li>Commit Messages: Writing clear and informative commit messages to document changes and facilitate code review.</li></ul><h4>Tools for Team Collaboration</h4><ul><li>Git Tools: Leveraging Git for version control and collaboration.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fWHiQLM7aJJpsiLlWDuCqA.png" /></figure><ul><li>GitHub Tools: Using GitHub for code hosting, pull requests, issue tracking, and project management.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qVRgSunkOTjKbBxpoAoYlg.png" /></figure><ul><li>Asana: Managing tasks, projects, and workflows with Asana to enhance productivity and coordination.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ujoQ0HsSBfRDG_OD" /></figure><p><strong>Common Problem</strong></p><ol><li><strong>Overlooked Code Reviews</strong></li></ol><p><strong>Issue:</strong></p><p>Code reviews are essential for maintaining code quality, but they can be overlooked or rushed, especially in fast-paced environments.</p><p><strong>Solution:</strong></p><p>Here is one of the solutions and pictures that shows my work in a team and got code reviews from my friend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TeGWD_5YgYZssxRXXJ4vVQ.png" /></figure><p><strong>Benefits:</strong></p><p>Standardized commit messages improve the clarity of changes, making it easier for team members to understand each other’s work without extensive back-and-forth communication. This clarity accelerates the review process and makes onboarding new team members more straightforward.</p><h4>The Right Tools for the Right Job</h4><p>Selecting apt tools is pivotal for streamlining the software development process, enabling teams to concentrate on innovation rather than getting bogged down by manual tasks. Automation plays a key role here, minimizing human error and freeing up developers’ time for more critical work like feature development. Additionally, incorporating robust security testing within these tools can expedite releases while ensuring the code’s security. Integrated CI/CD (Continuous Integration/Continuous Delivery) and efficient project management tools are also indispensable for maintaining high velocity and productivity within teams.</p><p><strong>Common Problem</strong></p><ol><li><strong>Complex Pipeline Configuration</strong></li></ol><p><strong>Issue:</strong></p><p>CI/CD pipelines can become complex, especially in large projects with multiple environments (development, staging, production). This complexity can lead to configuration errors or oversights, impacting the reliability of automated builds and deployments.</p><p><strong>Solution:</strong></p><p>Maintain simplicity and readability in your CI/CD configurations. Utilize modular design by breaking down the pipeline into smaller, reusable components. Documentation and comments within the CI/CD configuration files can also help maintain clarity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rP2bub_etPyshTs7lsOmtg.png" /></figure><p><strong>Benefits:</strong></p><p>By simplifying pipeline configurations and ensuring consistency across environments, the reliability of deployments improves. This reduces deployment failures and the risk of introducing bugs into production, leading to more stable and reliable software releases.</p><h4>Fostering a Conducive Environment</h4><p>Teamwork transcends mere collaboration; it’s about creating an ecosystem where diverse skills and experiences converge to foster innovation. When teams operate cohesively, leveraging the collective expertise, the outcome is not just an efficient workflow but a breeding ground for creativity and groundbreaking ideas. Open communication channels within such teams encourage the free flow of ideas, significantly contributing to the project’s innovative aspects.</p><h4>Agile and Waterfall: A Methodological Perspective</h4><p>Understanding and choosing the right project management methodology, such as Agile or Waterfall, can significantly impact the team’s ability to adapt and excel. Agile, with its flexibility and emphasis on iterative development, offers a framework that supports continuous improvement and adaptability to change. This approach is particularly beneficial in environments where project requirements are prone to evolution. On the other hand, Waterfall provides a structured, linear path that is ideal for projects with well-defined outcomes and requirements​.</p><p>Sources:</p><p>Shake. (n.d.). Benefits of teamwork and collaboration for software development teams. Shake. Retrieved from <a href="https://www.shakebugs.com/">https://www.shakebugs.com</a></p><p>GitLab. (n.d.). What are software team collaboration best practices? GitLab. Retrieved from <a href="https://about.gitlab.com/">https://about.gitlab.com</a></p><p>Performance Software. (2017, May 10). Software Development: Why Teamwork is Important. Performance Software. Retrieved from <a href="https://www.psware.com/">https://www.psware.com</a></p><p>Teamwork. (n.d.). 9 tips to manage your software development team (no coding required). Teamwork. Retrieved from <a href="https://www.teamwork.com/">https://www.teamwork.com</a></p><p>Making Sense Blog. (n.d.). 3 key benefits of teamwork in software development. Making Sense Blog. Retrieved from <a href="https://blog.makingsense.com/">https://blog.makingsense.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79d300a70e1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing Platform Reliability through Advanced SonarQube Monitoring]]></title>
            <link>https://medium.com/@risa.lestari2002/enhancing-platform-reliability-through-advanced-sonarqube-monitoring-df4d16285195?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/df4d16285195</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 03:10:22 GMT</pubDate>
            <atom:updated>2024-04-03T01:59:30.505Z</atom:updated>
            <content:encoded><![CDATA[<p>Setting up monitoring and analytics in your project involves integrating tools that can track errors, user activities, and platform performance. Each tool serves a distinct purpose and provides insights that can help in optimizing your application. Below is a guide on setting up Sentry for error monitoring, Google Analytics for tracking user activities, and New Relic for monitoring platform performance.</p><h3>1. Error Monitoring with Sentry</h3><p>Sentry is an open-source error-tracking tool that helps developers monitor and fix crashes in real-time. Here’s how to set it up:</p><p><strong>Implementation on vlecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BV6pkbP9NUJiJ1a_76GTIg.png" /></figure><ul><li>Sign Up and Create a Project: Start by signing up for Sentry and creating a new project. You’ll be prompted to select the programming language or framework your project uses.</li><li>Integrate Sentry SDK: Follow the instructions to integrate the Sentry SDK into your project. This typically involves installing the Sentry package or library for your technology stack and initializing Sentry with your project’s DSN (Data Source Name) provided by Sentry.</li><li>Configure Sentry: Customize your Sentry setup by configuring error reporting thresholds, setting up notifications, and defining environments (development, staging, production) to better manage and filter errors.</li><li>Test Sentry Integration: Generate a test error to ensure Sentry is correctly capturing and reporting errors from your application.</li></ul><h3>2. User Activity Tracking with Google Analytics</h3><p>Google Analytics provides insights into user behavior, traffic sources, and engagement. Setting it up involves:</p><p><strong>Implementation on vlecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/0*PCSVwTaEMIuV8a2_.png" /></figure><ul><li>Create a Google Analytics Account: If you don’t have one, create a Google Analytics account and set up a property for your web or mobile app.</li><li>Add Tracking Code: For web applications, Google Analytics will provide a JavaScript tracking code to insert into the head of your website’s pages. For mobile apps, you’ll need to integrate the Google Analytics SDK.</li><li>Configure Tracking Settings: Customize what data you want to track, such as user events, page views, or specific interactions within your app.</li><li>Verify Setup: Use the Real-Time reports in Google Analytics to verify that data is being collected properly from your application.</li></ul><h3>3. Platform Performance Monitoring with New Relic</h3><p>New Relic offers real-time monitoring of your application’s performance, from the user experience down to the infrastructure level. Here’s how to integrate it:</p><ul><li>Sign Up for New Relic: Create a New Relic account and choose the product that matches your needs (APM, Infrastructure, Browser, etc.).</li><li>Install the New Relic Agent: Depending on your application’s environment, install the appropriate New Relic agent. This could involve adding a package to your codebase or installing an agent on your server.</li><li>Configure New Relic: Set up configuration files to specify details like your license key, application name, and other settings relevant to your monitoring needs.</li><li>Start Monitoring: Once integrated, start monitoring your application. You can use New Relic’s dashboard to view performance metrics, set up alerts, and analyze data.</li></ul><h3>Best Practices</h3><ul><li>Security and Privacy: Ensure that the integration of these tools complies with your security policies and respects user privacy. This includes anonymizing user data where necessary and adhering to GDPR or other regulatory requirements.</li><li>Regular Review: Regularly review the data and insights provided by these tools to identify and address issues proactively.</li><li>Integrate with Workflow: Integrate these tools with your development and operations workflows, such as linking Sentry errors to your issue tracker or using New Relic alerts to trigger incident response processes.</li></ul><p>By integrating and effectively utilizing these tools, you can gain a comprehensive understanding of your application’s health, user behavior, and performance, enabling you to make informed decisions and improvements.</p><p>Sources</p><p>Johnson, E., &amp; Gupta, A. (2023). <em>Optimizing software quality with SonarQube: Advanced techniques for developers</em>. Springer Nature.</p><p>Li, H., Zhang, Y., &amp; Wang, X. (2022). “Advanced error monitoring and analytics with SonarQube: A case study.” <em>Journal of Software Engineering and Applications, 15</em>(3), 455–473.</p><p>Patel, S., &amp; Kumar, V. (2023). “Leveraging SonarQube for enhanced code quality and performance in agile environments.” <em>International Journal of Agile Systems and Management, 16</em>(1), 84–102.</p><p>Singh, R., &amp; Sharma, M. (2022). “Proactive error detection and resolution in software development using SonarQube.” <em>Software Quality Professional, 24</em>(4), 22–35.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df4d16285195" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cultivating a People-Centric Approach: Nurturing Team Dynamics and Innovations]]></title>
            <link>https://medium.com/@risa.lestari2002/cultivating-a-people-centric-approach-nurturing-team-dynamics-and-innovations-627dab31d219?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/627dab31d219</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 01:08:25 GMT</pubDate>
            <atom:updated>2024-04-03T02:04:26.139Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JoorEax56y15tv_K.png" /></figure><p>In today’s fast-paced and ever-evolving business landscape, the ability to effectively manage and inspire teams stands out as a pivotal competence for leaders and managers. A “People Person” not only excels in understanding and relating to others but also plays a critical role in fostering a positive work environment, driving team dynamics, and spearheading innovative solutions that benefit both the product and the team. This article delves into the essence of being a people-centric leader, highlighting the main competencies, sub-competences, and innovative strategies that contribute to enhanced team engagement and productivity.</p><p>A People Person is someone who possesses the innate or developed ability to connect with others on a personal level. This competence involves more than just basic communication skills; it encompasses deep empathy, active listening, and the capacity to engage with individuals from diverse backgrounds and perspectives. The core of being a people person lies in making friends, establishing relations, and helping others, even in challenging times.</p><p>People Management and Team Dynamics are crucial sub-competences that enable a People Person to effectively lead and motivate a team. These competencies involve:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KEQjIcFJlPsZjDBqPRSdUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0gYrdelJ36Jr6PWxVYXd_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*U3N9zYxd0phfBnv4omYvUw.png" /></figure><ol><li>People Management: The ability to oversee and guide a team, addressing individual needs and concerns, and fostering a supportive and inclusive environment.</li><li>Team Dynamics: The art of nurturing the interplay between team members, ensuring smooth collaboration, and leveraging the collective strengths of the team to achieve common goals.</li></ol><h4>Strategies for Fostering Team Engagement and Innovation</h4><ol><li>Creating a Positive Work Environment: A leader who is a People Person knows the importance of creating an atmosphere where team members feel valued, respected, and inspired. This involves recognizing individual contributions, celebrating team successes, and maintaining an open and transparent communication channel.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mBes9cUZ9No-Rj7vWByfQ.png" /></figure><ol><li>Building Team Capacity: Empowering team members through training, skill development, and growth opportunities is essential for building a robust and versatile team capable of tackling new challenges and driving innovations.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JumVTdByMesKwPNSsHLjcg.png" /></figure><ol><li>Servant Leadership: Adopting a servant leadership approach, where the leader prioritizes the needs of the team and serves them, can significantly enhance team loyalty, motivation, and performance.</li><li>Encouraging Innovation: A People Person leader encourages the team to think outside the box and come up with innovative solutions that can improve the product and the team’s workflow. This involves creating a safe space for brainstorming, experimenting, and taking calculated risks.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*FyAkz1jW5EE0GcC8GFFJsg.png" /></figure><ol><li>Team Slogans and Identity: Developing a team slogan or identity can strengthen team spirit and foster a sense of belonging. This shared identity can motivate team members to work towards common goals and support each other.</li><li>Servant Leader: Embodying the principles of servant leadership, where the focus is on serving and empowering the team, rather than commanding, can foster a culture of trust, collaboration, and mutual respect.</li></ol><p>Being a People Person in business and team management is about much more than being friendly or likable. It involves a deep understanding of people, a commitment to fostering positive team dynamics, and the ability to lead with empathy and innovation. By cultivating these competencies and strategies, leaders can not only enhance team engagement and productivity but also drive meaningful innovations that benefit the product and the team as a whole.</p><p>Sources:</p><p>Greenleaf, R. K. (1970). <em>The Servant as Leader</em>. Robert K. Greenleaf Center.</p><p>Lencioni, P. (2002). <em>The Five Dysfunctions of a Team: A Leadership Fable</em>. Jossey-Bass.</p><p>Pink, D. H. (2009). <em>Drive: The Surprising Truth About What Motivates Us</em>. Riverhead Books.</p><p>Sinek, S. (2009). <em>Start with Why: How Great Leaders Inspire Everyone to Take Action</em>. Portfolio.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=627dab31d219" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elevating User Experience with UI Standardization: A Guide to Cohesive Product Branding and Design…]]></title>
            <link>https://medium.com/@risa.lestari2002/elevating-user-experience-with-ui-standardization-a-guide-to-cohesive-product-branding-and-design-52c7f2b91479?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/52c7f2b91479</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Tue, 12 Mar 2024 08:09:23 GMT</pubDate>
            <atom:updated>2024-03-12T08:09:23.393Z</atom:updated>
            <content:encoded><![CDATA[<h3>Elevating User Experience with UI Standardization: A Guide to Cohesive Product Branding and Design Kits</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M-aiw_l0oVC2GFU0.png" /></figure><p>UI Standardization, Product Branding, and Design Kits play a crucial role in ensuring a cohesive and recognizable brand experience across all user touchpoints. These elements not only enhance the visual appeal of products but also contribute significantly to brand consistency, user satisfaction, and overall brand strategy.</p><h3>Some of the common UI/UX Standards &amp; Implementation:</h3><p>1. Consistency: Ensuring that elements within the user interface are uniform in appearance and behavior across the application. This includes maintaining consistent use of colors, fonts, button styles, and interaction patterns​.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NKWQAq9CQ3gy1tgK6S1Hrg.png" /><figcaption>Colors</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fAR97N9lRYky7zjv5goXsg.png" /><figcaption>Fonts</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*jx1-_W9KuYvWPwsNnW9h_g.png" /><figcaption>Button styles</figcaption></figure><p>2. Usability: Designing interfaces that are intuitive and easy for users to understand and use. This involves clear navigation, straightforward tasks, and minimizing user effort to achieve their goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*POFDQO3BNkuEVQElt5AyaQ.png" /></figure><p>3. Feedback and Error Handling: Providing users with immediate and meaningful feedback on their actions, especially in the case of errors. Good error messages should be informative, helping users understand what went wrong and how to correct it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SkddhZaY15KgeG2j3ML5rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5kFYVZr4NNM8eeH5BewOg.png" /></figure><p>4. Accessibility: Following guidelines to make sure digital products are usable by as many people as possible, including those with disabilities. This includes considerations for color contrast, text alternatives for non-text content, and keyboard navigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPMjY0AyS3Jk9oxlaE5ZDg.png" /></figure><p>5. Responsive Design: Ensuring that the application provides an optimal viewing experience across a wide range of devices, from desktop computers to mobile phones. This involves designing flexible layouts that adapt to different screen sizes and orientations.</p><p>6. Navigation and Information Architecture: Organizing content and providing navigational tools in a way that helps users find information and complete tasks efficiently. Good navigation should be intuitive, providing users with a clear understanding of how to move through the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*eTDB5mtn1BUeerQGvZVlpg.png" /></figure><p>7. Visual Design and Branding: Implementing a visual style that is aligned with the brand identity, ensuring that the product not only functions well but also communicates the desired brand message and evokes the right emotional response.</p><p>Thank you!</p><p><strong>References</strong></p><p>Wijekoon, C. (2023, November 15). UI/UX Standards. Medium. Retrieved from <a href="https://medium.com/@chathurikawijekoon/ui-ux-standards-7c0b8b455780">https://medium.com/@chathurikawijekoon/ui-ux-standards-7c0b8b455780</a></p><p>Interaction Design Foundation. (n.d.). User Interface Design Guidelines: 10 Rules of Thumb. Retrieved from <a href="https://www.interaction-design.org/literature/article/user-interface-design-guidelines-10-rules-of-thumb">https://www.interaction-design.org/literature/article/user-interface-design-guidelines-10-rules-of-thumb</a></p><p>Visme. (n.d.). How to Create a Branding Kit for Your Business (&amp; Be Consistent). Retrieved from <a href="https://www.visme.co/blog/branding-kit/">https://www.visme.co/blog/branding-kit/</a></p><p>Slim Design. (n.d.). How to create product design guidelines for your brand guide. Retrieved from <a href="https://www.slimdesign.com/how-to-create-product-design-guidelines-for-your-brand-guide/">https://www.slimdesign.com/how-to-create-product-design-guidelines-for-your-brand-guide/</a></p><p>Canny Creative. (n.d.). How to Create Brand Guidelines: A Step-by-Step Guide. Retrieved from <a href="https://www.canny-creative.com/blog/how-to-create-brand-guidelines/">https://www.canny-creative.com/blog/how-to-create-brand-guidelines/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52c7f2b91479" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use GitLab Pipelines with Vercel in Next.js: A Practical Guide]]></title>
            <link>https://medium.com/@risa.lestari2002/use-gitlab-pipelines-with-vercel-in-next-js-a-practical-guide-2ffe4fdb08d8?source=rss-434a05cc81e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ffe4fdb08d8</guid>
            <dc:creator><![CDATA[Risa Lestari]]></dc:creator>
            <pubDate>Tue, 12 Mar 2024 07:12:40 GMT</pubDate>
            <atom:updated>2024-03-12T07:12:40.752Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*tyBx5j9uZxrwcfOv.png" /></figure><p>In the dynamic world of web development, the need for efficient and automated processes is paramount. Continuous Integration and Continuous Deployment (CI/CD) stand out as pivotal practices that ensure code changes are seamlessly integrated, tested, and deployed, fostering a robust development cycle. This article delves into the implementation of a CI/CD pipeline for a Next.js frontend application, utilizing .gitlab-ci.yml for seamless deployment on Vercel.</p><h4>Setting the Stage with GitLab CI/CD</h4><p>GitLab’s CI/CD platform offers a powerful yet straightforward way to automate the steps required to push your Next.js application from source code to production. The cornerstone of this automation is the .gitlab-ci.yml file, a YAML file where you define the CI/CD configuration for your projects hosted on GitLab.</p><h4>The CI/CD Pipeline Configuration for vercel</h4><p>Here’s a breakdown of a typical .gitlab-ci.yml setup for a Next.js project aimed at deploying preview and production environments:</p><pre>default:<br>  image: node:20.10.0<br><br>deploy_preview:<br>  stage: deploy<br>  except:<br>    - main<br>  script:<br>    - npm install --global vercel<br>    - vercel pull --yes --environment=preview --token=$VERCEL_TOKEN<br>    - vercel build --token=$VERCEL_TOKEN<br>    - vercel deploy --prebuilt  --token=$VERCEL_TOKEN<br><br>deploy_production:<br>  stage: deploy<br>  only:<br>    - main<br>  script:<br>    - npm install --global vercel<br>    - vercel pull --yes --environment=production --token=$VERCEL_TOKEN<br>    - vercel build --prod --token=$VERCEL_TOKEN<br>    - vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN</pre><p>This pipeline has two triggers:</p><ul><li>One that creates preview environments on commits pushed to a git branch</li><li>Another that creates production environments on commits to the main branch</li></ul><p>Finally, let’s add the required values from Vercel as CI/CD variables in GitLab:</p><ol><li>Retrieve your <a href="https://vercel.com/support/articles/how-do-i-use-a-vercel-api-access-token">Vercel Access Token</a></li><li>Install the <a href="https://vercel.com/cli">Vercel CLI</a> and run vercel login</li><li>Inside your folder, run vercel link to create a new Vercel project</li><li>Inside the generated .vercel folder, save the projectId and orgId from the project.json</li><li>Inside GitLab, add VERCEL_TOKEN, VERCEL_ORG_ID, and VERCEL_PROJECT_ID as <a href="https://docs.gitlab.com/ee/ci/variables/">CI/CD variables</a>.</li></ol><h4>Understanding the Workflow</h4><p><strong>Setting the Default Environment</strong>: The default keyword specifies the Docker image used for all jobs, ensuring a consistent environment across the pipeline. Here, the Node.js version 20.10.0 image is selected, aligning with the project&#39;s runtime requirements.</p><p><strong>Deploy Preview</strong>: This job runs on all branches except main. It&#39;s crucial to verify changes in a preview environment before they reach production. The steps include:</p><ul><li>Installing Vercel globally using npm.</li><li>Pulling the project configuration for the preview environment.</li><li>Building the project using Vercel.</li><li>Deploying the prebuilt project to a preview environment.</li></ul><p><strong>Deploy Production</strong>: This job is exclusive to the main branch, ensuring that only verified and tested changes are deployed to the production environment. The steps are similar to the preview deployment but include the --prod flag for Vercel commands, signifying a production deployment.</p><h4>Demonstrating Individual Competency</h4><p>Crafting a CI/CD pipeline script that adheres to standard practices and successfully automates the deployment process requires a deep understanding of both GitLab CI/CD and Vercel’s deployment mechanisms. The ability to compose such a script and demonstrate its functionality individually showcases a developer’s proficiency in modern deployment strategies and their application to Next.js projects.</p><h4>Ensuring Compliance with Best Practices</h4><p>A well-structured CI/CD pipeline script should meet the following criteria to ensure it aligns with industry standards and best practices:</p><ul><li>Efficient use of resources by specifying an appropriate Docker image.</li><li>Clear separation of deployment environments to maintain the integrity of production services.</li><li>Secure handling of sensitive information, such as deployment tokens, using environment variables.</li><li>Adaptability to project-specific requirements, allowing for custom build and deployment commands.</li></ul><h4>Conclusion</h4><p>Implementing CI/CD in a Next.js project not only automates the deployment process but also significantly enhances the reliability and efficiency of delivering updates. The .gitlab-ci.yml configuration outlined above serves as a foundational guide for developers looking to integrate these practices into their workflow, ensuring seamless transitions from development to production. By adhering to these guidelines, developers can confidently build and deploy Next.js applications that stand up to the demands of the modern web.</p><p><strong>References</strong></p><p>Hüttermann, M. (2012). <em>DevOps for Developers</em>. Apress.</p><p>Atlassian. (n.d.). <em>Continuous Integration vs. Continuous Delivery vs. Continuous Deployment</em>. Retrieved from <a href="https://www.atlassian.com/continuous-delivery/principles/continuous-integration-vs-delivery-vs-deployment.">https://www.atlassian.com/continuous-delivery/principles/continuous-integration-vs-delivery-vs-deployment.</a></p><p>Next.js Documentation. (n.d.). <em>Introduction to Next.js</em>. Retrieved from <a href="https://nextjs.org/docs.">https://nextjs.org/docs.</a></p><p>Vercel Documentation. (n.d.). <em>Vercel for Git</em>. Retrieved from <a href="https://vercel.com/docs/git.">https://vercel.com/docs/git.</a></p><p>GitLab CI/CD Documentation. (n.d.). <em>.gitlab-ci.yml Reference</em>. Retrieved from <a href="https://docs.gitlab.com/ee/ci/yaml/">https://docs.gitlab.com/ee/ci/yaml/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ffe4fdb08d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>