<?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 Akmalee on Medium]]></title>
        <description><![CDATA[Stories by Akmalee on Medium]]></description>
        <link>https://medium.com/@akmalhakim2106?source=rss-1b72a7e5c212------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*EaHewPY1-VrLtA0y</url>
            <title>Stories by Akmalee on Medium</title>
            <link>https://medium.com/@akmalhakim2106?source=rss-1b72a7e5c212------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:11:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akmalhakim2106/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[Nutrimom: Empowering Expectant Mothers with Nutritional Insights]]></title>
            <link>https://medium.com/@akmalhakim2106/nutrimom-empowering-expectant-mothers-with-nutritional-insights-2d6c2d8a1419?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d6c2d8a1419</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Fri, 30 Aug 2024 08:47:51 GMT</pubDate>
            <atom:updated>2024-08-30T08:50:52.190Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sdUF_KXz694dFvtXEmIZHg.png" /></figure><p>Pregnancy is a crucial time for both mother and baby, with proper nutrition playing a vital role in ensuring a healthy outcome. Recognizing this need, our team developed Nutrimom — an iOS tracking app designed specifically for pregnant women to help monitor ideal pregnancy weight gain and maintain sufficient nutrient intake.</p><h3><strong>Why Nutrimom?</strong></h3><ul><li>Stay informed about your nutrient intake</li><li>Track your progress with ideal pregnancy weight gain</li><li>Access credible and personalized weekly weight and nutrient goals all in one place</li></ul><p>Our goal is simple: to care for the well-being of expectant mothers so they can deliver healthy babies.</p><h3>The Research Process</h3><p><strong>Understanding User Needs</strong><br>We began our journey by conducting in-depth interviews with three key stakeholders:</p><ol><li>Pregnant women</li><li>New mothers</li><li>Obstetricians</li></ol><p>These conversations helped us identify a common thread: the need for expectant mothers to ensure that the food they eat is safe and nutritious enough for their babies.</p><p><strong>Value Proposition Canvas<br></strong>To clearly define our product’s value, we utilized the Value Proposition Canvas. This tool helped us align our app’s features with the specific needs and pain points of our target users.</p><p><strong>Feature Prioritization<br></strong>Initially, we brainstormed several tech-savvy features such as:</p><ul><li>AI-powered food recommendations</li><li>OCR (Optical Character Recognition) for easy food logging</li><li>Advanced tracking capabilities</li></ul><p>However, to create a focused and effective MVP (Minimum Viable Product), we employed the RICE (Reach, Impact, Confidence, Effort) method. This allowed us to prioritize features that would provide the most value to our users while being feasible to implement in our initial release.</p><h3>Design Iteration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r9CYHANk9Vlm5DiwT171IQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bo9dHHlk5k-RNOrP5lhRhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rwno5iH54HGhYfXBYgNOhA.png" /><figcaption>Iteration is from left to right</figcaption></figure><p>Our design process involved multiple iterations, each refining the user experience based on feedback and usability testing. Key learnings from this process included:</p><ol><li><strong>Simplifying the dashboard</strong>: We realized that our initial designs were overwhelming users with too much information. We learned to prioritize the most critical data points for at-a-glance viewing.</li><li><strong>Empathizing with users</strong>: By putting ourselves in the shoes of pregnant women, we gained insights into what information they needed to see first and how they would interact with the app.</li><li><strong>The importance of user testing</strong>: Regular user testing sessions helped us identify pain points and areas for improvement that we might have otherwise overlooked.</li></ol><h3>Lesson Learned</h3><p>Throughout this project, our team gained valuable insights:</p><ol><li><strong>Empathy is key</strong>: To truly understand user pain points, we needed to go beyond surface-level research and really empathize with our target audience.</li><li><strong>Research is crucial</strong>: Thorough research ensured that our solution addressed real problems faced by expectant mothers.</li><li><strong>Seamless information delivery</strong>: We learned how to present complex nutritional data in a user-friendly manner.</li><li><strong>Inclusive design</strong>: Considering a broader user segment helped us create a more accessible and useful product.</li><li><strong>Fundamentals of Product Design</strong>: I personally gained a deeper understanding of typography, iconography, and the importance of a consistent design system.</li></ol><p>Developing Nutrimom has been an incredible journey of learning and growth. We’ve created an app that not only serves a critical need for expectant mothers but also demonstrates the power of user-centered design.</p><p>As we move forward, we remain committed to iterating and improving Nutrimom based on user feedback and emerging nutritional research. Our goal is to continue empowering pregnant women with the tools and information they need to make informed decisions about their health and the health of their babies.</p><p>We invite you to try Nutrimom and join us in our mission to support healthy pregnancies, one nutrient at a time.</p><p><a href="https://www.notion.so/adajkt/Membantu-Ibu-Hamil-Memantau-Berat-Badan-Ideal-dan-Menjaga-Asupan-Nutrisi-Selama-Kehamilan-098394a910904c92a822d5c9200e956c?pvs=25">Membantu Ibu Hamil Memantau Berat Badan Ideal dan Menjaga Asupan Nutrisi Selama Kehamilan | Notion</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d6c2d8a1419" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing MVVM Into an Inventory Management and Cashier App]]></title>
            <link>https://medium.com/@akmalhakim2106/implementing-mvvm-into-an-inventory-management-and-cashier-app-68cb3f7a3069?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/68cb3f7a3069</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Thu, 25 Jul 2024 09:00:02 GMT</pubDate>
            <atom:updated>2024-07-25T09:00:02.532Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VGOKBoT5RaAuXY54LADaPA.png" /></figure><p>Last week, me and my team has finished our project to ✨Reimagine✨ calculator for elderly. We choose to develop an app that focused on Transaction and Inventory Management System for elderly that have their own stall/grocery store. This app would help them to track their inventory, transactions, and their income/expenses. This app is developed using fully native components on SwiftUI with implementing MVVM architecture for easier code readability and scalability.</p><p>SwiftUI has made it easier than ever to build user interfaces for Apple platforms, and the MVVM (Model-View-ViewModel) pattern fits naturally with this framework. With the introduction of SwiftData, Apple has also simplified data persistence for iOS apps. Let’s examine how these pieces fit together in a real-world scenario.</p><p>Our Example: A Transaction Management System</p><p>We’re working with a system that tracks inventory items and sales transactions. Here’s how the components break down:</p><p>Models:<br>Our data models are simple Swift classes marked with the <a href="http://twitter.com/Model">@Model</a> macro:</p><pre>swift<br>@Model<br>class Item {<br> var timestamp: Date<br> var id: UUID<br> var name: String<br> var stock: Int<br> var price: Int<br> @Attribute(.externalStorage) var image: Data?<br> <br> init(name: String = “”, price: Int = 0) {<br> self.timestamp = Date()<br> self.id = UUID()<br> self.name = name<br> self.stock = 0<br> self.price = price<br> }<br>}<br><br>@Model<br>class Transaction {<br> var id: UUID<br> var itemId: UUID<br> var itemName: String<br> var quantity: Int<br> var price: Int<br> var type: TransactionType<br> var timestamp: Date<br> <br> // Initializers omitted<br>}</pre><p>The <a href="http://twitter.com/Model">@Model</a> macro tells SwiftData to manage these classes, handling persistence automatically.</p><p>ViewModel:<br>The ViewModel acts as an intermediary, processing data for the view:</p><pre>swift<br>@Observable<br>class TransactionViewModel: ObservableObject {<br> @MainActor<br> let modelContext: ModelContext<br> <br> init(modelContext: ModelContext) {<br> self.modelContext = modelContext<br> }<br> <br> @MainActor<br> func fetchTransactions() -&gt; [Transaction] {<br> let descriptor = FetchDescriptor&lt;Transaction&gt;()<br> do {<br> return try modelContext.fetch(descriptor)<br> } catch {<br> print(“Error fetching transactions: \(error)”)<br> return []<br> }<br> }<br> <br> // Other methods for filtering and calculating sales data<br>}</pre><p>This ViewModel provides methods to fetch and process transaction data, using SwiftData’s ModelContext to interact with the persistent store.</p><p>View:<br>The View defines the user interface and binds to the ViewModel:</p><pre>swift<br>struct TransactionView: View {<br> @StateObject private var viewModel: TransactionViewModel<br> @State private var selectedDate = Date()<br> @State private var selectedSegment = TransactionType.income<br> <br> init(modelContext: ModelContext) {<br> _viewModel = StateObject(wrappedValue: TransactionViewModel(modelContext: modelContext))<br> }<br> <br> var body: some View {<br> NavigationView {<br> VStack {<br> // UI components<br> }<br> .navigationTitle(“Transaction History”)<br> .onAppear {<br> viewModel.refreshData()<br> }<br> }<br> }<br>}</pre><p>SwiftData vs Traditional Databases</p><p>SwiftData simplifies data persistence for iOS apps, but it’s worth noting how it differs from traditional relational databases like PostgreSQL:</p><p>1. SwiftData is designed for local storage in iOS apps, while PostgreSQL is a full-featured relational database system.</p><p>2. SwiftData abstracts away SQL, using Swift syntax for queries. PostgreSQL uses standard SQL.</p><p>3. SwiftData integrates tightly with Swift and SwiftUI, offering features like automatic UI updates when data changes.</p><p>4. PostgreSQL offers more advanced features for complex queries, transactions, and multi-user scenarios.</p><p>For most iOS apps, SwiftData provides a simpler, more integrated solution. However, for large-scale or server-side applications, traditional databases like PostgreSQL remain the better choice.</p><p>In conclusion, the combination of MVVM, SwiftUI, and SwiftData offers a powerful and straightforward way to build data-driven iOS apps. While it may not be suitable for every scenario, it significantly simplifies the development process for many common app architectures.</p><p>Our app is airing now on TestFlight below:<br><a href="https://testflight.apple.com/join/RIgnzjGT">https://testflight.apple.com/join/RIgnzjGT</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68cb3f7a3069" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pawse: Your Gamified Companion for Funnier Emotional Regulation]]></title>
            <link>https://medium.com/@akmalhakim2106/pawse-your-gamified-companion-for-funnier-emotional-regulation-4a970cd0be53?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a970cd0be53</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Fri, 05 Jul 2024 08:55:47 GMT</pubDate>
            <atom:updated>2024-07-05T09:46:07.662Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ddjd5CtWOSg7zv1S0Ts7Pg.png" /></figure><p>When we first brainstormed ideas for Mini Challenge 2 at Apple Developer Academy @ BINUS, we had a simple thought: “Everyone wants to be happy, right?” It seemed like the perfect starting point for an app. Who doesn’t want more joy in their life?<br>But as we rolled up our sleeves and really dug into the world of emotions, we stumbled upon a truth that changed everything. We realized that chasing constant happiness wasn’t the answer. In fact, it might even be counterproductive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sUIcqFAs3mjIOWk5.jpg" /><figcaption>Illustration from Disney Indonesia</figcaption></figure><h3>The Emotional Rollercoaster of Life</h3><p>Life isn’t a straight path to happiness. It’s more like a rollercoaster with ups, downs, and loop-de-loops that sometimes leave us feeling upside down. And you know what? That’s okay. It’s normal. It’s human.</p><p>As we pored over research papers, watched content on how to be more Mindful, and had heart-to-hearts with friends and mentors, we had an “aha” moment. The real goal isn’t to be happy all the time. It’s about understanding our emotions — all of them — and finding healthy ways to ride the waves of our feelings.</p><h3>Redefining Our Goal: Enter Pawse</h3><p>This revelation led us to refine our challenge goal. We decided to create an app that helps people understand their emotions and encourages them to regulate and calm negative feelings. But here’s the twist — we wanted to make this journey fun and engaging. That’s where gamification came into play.</p><p>To keep things manageable (and to preserve our sanity during the development process), we narrowed our focus to three key emotions: sadness, anger, and anxiety. These are emotions we all grapple with, and learning to navigate them can make a world of difference in our daily lives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8peze2JLO5AOncBWjEDmBA.png" /><figcaption>Ideation Progress on Gamifying our App Concept</figcaption></figure><h3>Making Emotional Growth a Game</h3><p>Now, how do you turn something as complex as emotional regulation into a game? We turned to the experts for this one. We dove into the Octalysis Gamification Framework by Yu-Kai Chou, and two core drives really spoke to us:</p><ol><li><strong><em>Development &amp; Accomplishment</em></strong></li><li><strong><em>Unpredictability &amp; Curiosity</em></strong></li></ol><p>These became the backbone of Pawse’s features. Let me walk you through how we brought these ideas to life:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SldZvyJiZgq1wByb8AJz4Q.png" /></figure><h3>1. Daily Check-Ins: Your Emotional Journal</h3><p>Remember those “Dear Diary” moments from childhood? We’ve given them a grown-up, digital twist. Every day, Pawse greets you with a simple question: “How do you feel? Let’s talk about it.”</p><p>It’s like having a friend who always has time to listen. This daily check-in encourages you to pause (get it? Pawse?) and reflect on your emotional state. It’s not about judging your feelings, but about acknowledging them. Sometimes, just putting our emotions into words can help us understand them better.</p><h3>2. AI Companion: Understanding Your Mood</h3><p>Here’s where things get a bit sci-fi cool. Once you’ve jotted down your feelings, our AI steps in like a supportive friend who really “gets” you. Using sentiment analysis, it tries to figure out if you’re feeling sad, anxious, or angry.</p><p>But we didn’t stop there. We wanted to add an element of surprise and fun. So, based on your mood, Pawse suggests personalized, quest-like activities. Feeling anxious about a big presentation? Pawse might challenge you to do a quick breathing exercise. Angry about a fight with a friend? How about a short meditation or drawing session to cool down?</p><h3>3. Quests and Rewards: Leveling Up Your Emotional Intelligence</h3><p>We humans love a good challenge, don’t we? That’s why we created a series of quests designed to help you regulate your emotions. These aren’t random tasks — we’ve done our homework and curated activities that are scientifically proven to help with specific emotions.</p><p>Complete a quest, and you’ll earn coin rewards. It’s our way of giving you a virtual high-five for taking care of your emotional health. These rewards aren’t just for show — they’re milestones in your journey towards better emotional understanding and control.</p><h3>4. Calming Audio Shop: Music for Your Mood</h3><p>Ever noticed how the right song can completely change your mood? We have, and we’ve made it a key feature of Pawse. With the coins you earn from completing quests, you can unlock access to a curated selection of calming audio tracks.</p><p>We didn’t just pick these tracks because they sound nice. Each song has been carefully selected based on research into music therapy and its effects on emotions. Whether you’re feeling sad, anxious, or angry, we’ve got a tune that might just help turn your mood around.</p><h3>Your Personal Emotional Journey</h3><p>Here’s the thing about Pawse — it’s not a magic solution that will make all your negative emotions disappear. That’s not real life. Instead, think of Pawse as a friendly companion on your journey towards emotional mindfulness.</p><p>It’s there to remind you to take a moment for yourself, to understand what you’re feeling, and to give you tools to handle those emotions in a healthy way. And the best part? It makes this journey fun and rewarding.</p><p>The name “Pawse” isn’t just a cute play on words. It’s a reminder to pause, to take a breath, and to check in with yourself. In our fast-paced world, taking that moment can make all the difference.</p><p>So, are you ready to embark on this adventure? To get to know yourself better? To learn how to navigate the stormy seas of sadness, the trembling grounds of anxiety, and the fiery landscapes of anger?</p><p>Remember, it’s not about being happy all the time. It’s about understanding your emotions, accepting them, and finding healthy ways to express them. And if we can make that journey a bit more fun along the way? Well, that’s just the cherry on top.</p><p>Let’s take a pawse, breathe, and start this adventure together. Your emotions are waiting to be understood. Together, we’ll explore the rich tapestry of human emotions, one pawse at a time. Join us on this journey with Pawse 😸.</p><p><strong>Here’s the supporting documentation for my project:</strong><br>GitHub Repository: <a href="https://github.com/PAWse-AppleDeveloper/Pawse">https://github.com/PAWse-AppleDeveloper/Pawse</a><br>Deck Presentation: <a href="https://www.figma.com/slides/99cVmDFMh2X5WVzw0dl0ES/PAWSE-by-PETA-(Final)?node-id=0-1&amp;t=CArItgqWG7slrPR3-1">https://www.figma.com/slides/99cVmDFMh2X5WVzw0dl0ES/PAWSE-by-PETA-(Final)?node-id=0-1&amp;t=CArItgqWG7slrPR3-1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a970cd0be53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embracing Heritage Through Technology with Aksaru]]></title>
            <link>https://medium.com/@akmalhakim2106/embracing-heritage-through-technology-with-aksaru-249ebf372fc6?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/249ebf372fc6</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Thu, 30 May 2024 05:52:07 GMT</pubDate>
            <atom:updated>2024-05-31T07:40:43.630Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*biz99sSKlsyFMtwlNTW14w.png" /></figure><p>This semester, I’ve been honing my skills as an iOS developer at Apple Developer Academy @BINUS. The Apple Developer Academy @BINUS in Indonesia stands as a pioneering initiative aimed to nurture highly skilled developers to drive economic growth and innovation in the region. The academy emphasizes practical learning experiences, such as their recent “Reinvent” themed project where students worked individually to conceive and build new apps from the ground up.</p><p>For my project, I decided to build Aksaru, an iPad app that leverages machine learning to provide an interactive and engaging way for users to learn how to write Sundanese script with an Apple Pencil. While part of a machine learning-focused team at the academy, I took on this app concept and saw it through from ideation to implementation independently.</p><h3><strong>Initial Exploration</strong></h3><p>My initial experiments involved object detection models aimed at recognizing multiple Sundanese letter characters within a single user stroke. However, the visual similarities between certain letter forms proved too challenging for these models to reliably distinguish, even with the training data I had collected. The models struggled to achieve the accuracy required for a polished user experience. This is one example that some Sundanese Letter has similar forms:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eX_u0vn0zIw9iC0LyAG1bQ.png" /></figure><p>The first model is unable to detect even the simplest, one-word letter. Also, they’re still unable to detect a letter correctly, like in the picture below, the model predicted a single letter into two classifications, a and ae (é).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N5gJqNLL2IWdfeFqxmGwLQ.png" /></figure><p>I opted to pivot to an image classification approach instead. While this limited Aksaru to detecting just one letter at a time rather than multiple characters simultaneously, it provided a path to significantly higher prediction accuracies that could power a robust letter recognizer. Thankfully the second model is robust enough to predict a Sundanese Letter with 80% accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y5JJwxfru8KTSDAsWNbSNQ.png" /></figure><h3><strong>App Development and Integration</strong></h3><p>I then integrated this model into an app built with SwiftUI, implementing the following flow:</p><p>1. Using Apple’s PencilKit framework, I capture the user’s handwritten letter strokes in real-time within a PKCanvasView powered by the Apple Pencil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYiNFrSccfysVSrN-Myu9Q.png" /></figure><p>2. I have one finding when integrating the model with PencilKit. The raw captured strokes from PKCanvasView have a transparent background, which causes the model to output the same prediction, regardless of what was drawn on the canvas. To preprocess the input image for my model, I added an opaque background and resized the image to the dimensions expected by the classifier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AjVjOsP8XJgZzQ0CBInfhg.png" /></figure><p>3. This preprocessed image was then converted to the data format required by my model and fed through the classifier to obtain a prediction of the letter drawn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i6LKGunB7MIFoiHdSE69aw.png" /></figure><p>The function to preprocess image captured from canvasView was written on helper.swift:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNE0Hhl4pCw5TCw7pDKyLA.png" /></figure><p>4. Within the app’s UI View, I compared the model’s prediction against the letter the user was attempting to write and provided feedback on whether they wrote it correctly according to the model’s determination.</p><p>To build Aksaru, I employed the Model-View-ViewModel (MVVM) architectural pattern to separate the app’s data models, views, and underlying logic into distinct layers. This allowed me to develop the user interface and application behaviors independently while keeping the code organized and maintainable.</p><p>The core models represent the data entities in the app, such as individual letters, quizzes, and quiz questions:</p><pre>struct LetterModel: Identifiable, Codable {<br> var id = UUID()<br> var name: String <br> var isSwara: Bool = false<br>}<br>struct QuizModel: Identifiable, Codable {<br> var id = UUID()<br> var timeTaken: TimeInterval<br> var questions: [QuestionModel]<br>}<br>struct QuestionModel: Identifiable, Codable {<br> var id = UUID()<br> var letterAsked: LetterModel<br> var letterPredicted: String?<br> var points: Double<br> var isCorrect: Bool {<br> return letterPredicted == letterAsked.name<br> }<br>}</pre><p>The view models act as intermediaries between the models and views, encapsulating the app’s logic and providing reactive data streams to bind UI elements. For example, the QuizManagerVM coordinates the flow of a quiz, managing the currently displayed question, tracking progress, and verifying answers:</p><pre>class QuizManagerVM: ObservableObject {<br> @Published var model = QuizManagerVM.createGameModel()<br> <br> func verifyAnswer(answer: String) {<br> model.quizModel.questions[model.currentQuestionIndex].letterPredicted = answer<br> model.quizModel.questions[model.currentQuestionIndex].points = model.quizModel.questions[model.currentQuestionIndex].isCorrect ? 1 : 0<br> model.currentQuestionIndex += 1<br> // Update progress, end quiz if needed<br> }<br> <br> // Other functions to start, restart, reset quiz <br>}</pre><p>By separating responsibilities in this way, the MVVM pattern facilitated development of a more modular and testable codebase for Aksaru.</p><p>All in all, I implement <strong>PencilKit, UIKit, and CoreML </strong>to make my app happen. PencilKit and UIKit is used to receive user strokes on canvasView and capture it into an image. While the CoreML is used to perform prediction from model that I have trained before. The source code for this app could be accessed on my GitHub below:</p><p><a href="https://github.com/akmaalh/Aksaru">GitHub - akmaalh/Aksaru</a></p><h3><strong>Conclusion</strong></h3><p>While Aksaru is limited to recognizing just one Sundanese letter at a time, it demonstrates the potential for integrating machine learning into creative app experiences for education or data entry uses. The ability to get instant feedback builds an engaging, interactive learning flow.</p><p>As I continue expanding my iOS development skills, I’m excited to explore more powerful computer vision models that can recognize multiple characters simultaneously. I also want to dive deeper into processing handwritten data, which could unlock innovative applications like handwriting recognition for note-taking or seamless digital ink interfaces.</p><p>Aksaru showcased how machine learning can power intuitive, interactive experiences. But this is really just the start — I’m passionate about pushing these technologies further to create even more intelligent and user-friendly apps that could transform how we learn, work, and communicate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=249ebf372fc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing in Django: Mock and Stub]]></title>
            <link>https://medium.com/@akmalhakim2106/testing-in-django-mock-and-stub-210d1f53387d?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/210d1f53387d</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Wed, 22 May 2024 03:48:24 GMT</pubDate>
            <atom:updated>2024-06-03T03:26:29.639Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*uCaJwX00p2gqpwjk.png" /></figure><p>Testing is an essential part of software development, and Django, like any other web framework, provides tools to help developers write and run tests. One of the challenges in testing is dealing with external dependencies, such as databases, APIs, or third-party services. This is where mocking and stubbing techniques come into play. In this post, we’ll explore what mocking and stubbing are, their differences, and how to implement them in Django.</p><h3>What is Mock?</h3><p>Mocking is a technique used in unit testing to place a real object or component with a mock object. A mock object is an object that simulates the behavior of a real object, allowing you to control its behavior and responses. Mocking is particularly useful when testing code that interacts with external dependencies or when the real object is difficult or impossible to set up in a test environment.</p><h3>What is Stub?</h3><p>Stubbing is similar to mocking, but with a subtle difference. A stub is a simple implementation of an object or component that returns predefined responses. Unlike mocks, stubs do not have any expectations or verification mechanisms. They are used primarily to provide controlled input data or to simulate the behavior of external dependencies in a test environment.</p><h3>What’s their difference?</h3><p>The main difference between mocking and stubbing lies in their purpose and level of control:</p><ol><li><strong>Purpose</strong>: Mocks are used to verify the behavior of the code under test by setting expectations and verifying that the expected interactions occurred. Stubs, on the other hand, are used to provide controlled input data or simulate external dependencies without verifying the interactions.</li><li><strong>Control</strong>: Mocks provide more control over the behavior of the object being mocked. You can set expectations, configure return values, and verify interactions. Stubs, however, have a more limited scope and are primarily used to return predefined responses or simulate simple behavior.</li></ol><h3>Example and implementation</h3><p>In Django, you can use the mock library from the Python standard library. Here&#39;s an example of using mocking and stubbing in Django:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HydymDRnf7lTu4f8hmbltg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45iuSVosAaIXEYiiIDMEog.png" /></figure><p>The setUp function would create mock objects for Course and Course_Category. The mock object is predefined on app.test.mocks.bidang_minat. The unit test test_matkul_bidang_minat would use the mock object by passing it to view get_curriculum_map and the assertion would verify if the function behave as expected (correctly map the courses to course_category.</p><p>For stub, here’s an example to implement stub in python django:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*1iWdR87YqGESktYTtgWbJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MVQoLoE0WHz6yEZGPz6ZeA.png" /></figure><p>On the code above, various stubs like pembimbings_stub and bimbingan_stub is created to simulate data representing pembimbing and bimbingan. This stubs would mimic the actual structure and content of data. Then, they would used in the unit test function to provide the desired input data and so the test would focused on specific scenario of input without depends on actual database and interaction in the views function. This allow the unit test to work reliably and reproducible.</p><h3>Verdict</h3><p>Both mocking and stubbing are valuable techniques for testing in Django. Mocking is more powerful and allows you to set expectations and verify interactions, making it suitable for unit testing and ensuring that your code behaves as expected. Stubbing, on the other hand, is simpler and can be used when you don’t need to verify interactions but want to simulate the behavior of external dependencies or provide controlled input data.</p><p>The choice between mocking and stubbing depends on the specific testing requirements and the complexity of the code under test. In general, it’s recommended to use mocking for unit testing and stubbing for integration or end-to-end testing, where you want to simulate the behavior of external dependencies without relying on their actual implementation.</p><p>By using mocking and stubbing in your Django tests, you can write more comprehensive and reliable tests, improve code maintainability, and ensure that your application functions correctly, even when external dependencies are unavailable or difficult to set up in a test environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=210d1f53387d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Essential Principles of Intuitive UI Design]]></title>
            <link>https://medium.com/@akmalhakim2106/the-10-essential-principles-of-intuitive-ui-design-598772689ad8?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/598772689ad8</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Wed, 22 May 2024 02:38:30 GMT</pubDate>
            <atom:updated>2024-06-03T03:13:22.327Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S6EpKdo49zsPRiKl.png" /></figure><p>When it comes to designing user interfaces that are intuitive and user-friendly, few resources are as valuable as Nielsen’s 10 Usability Heuristics. Developed by Jakob Nielsen, a pioneering web usability consultant, these guidelines provide a framework for creating UI designs that deliver an optimal user experience.</p><p><strong>1. Visibility of System Status<br></strong>Great UI design keeps users informed about what is happening through appropriate feedback within a reasonable amount of time. Here is an example that shows status on Kurikulum. We gave status for users whether the Kurikulum is active or not in the table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B35Xk1_3agQnhK1O9fhg2A.png" /></figure><p>While implementing good visibility of system status on Kurikulum pages, I found that some of the interactions in Sikayu don’t implement this principle. For example, when users input an invalid NPM, the app doesn’t give a proper feedback of status, it shows a Not Found pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U6nKkxV3gYThs33y0K1Ssg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*tbW1I2Rfi-4UDdl9v2Ghkg.png" /></figure><p>We can make better status feedback by giving modals when the user give an invalid input, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*UTkb9onU6e0txdw6.png" /></figure><p><strong>2. Match Between System and the Real World<br></strong>User interfaces should use language and concepts that are familiar to users rather than system-oriented jargon. Here is the example, the words given in page is using straightforward Indonesian word and icons such as “Tambah Kurikulum” button with plus icon and trash icon to delete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B35Xk1_3agQnhK1O9fhg2A.png" /></figure><p><strong>3. User Control and Freedom<br></strong>Users should be free to undo and redo operations and move between areas of the interface at will. Having a dedicated “Batal” command and exits from processes allow users to remain in the driver’s seat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LgpDasLDiDVwNciD5LVv8A.png" /></figure><p><strong>4. Consistency and Standards<br></strong>Interfaces should use platform conventions for interactions, layouts, iconography and visual design. We have a consistent color palette on page and for each button as we can see below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RgXH8k_hyimmupBvhGIgvw.png" /></figure><p><strong>5. Error Prevention<br></strong>Well-designed user interfaces prevent errors in the first place rather than just handling them after the fact. Techniques can be seen below when Jurusan option is picked with dropdown so the user won’t be input a Jurusan that is not defined in model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nh8yFnUKrCxy_1BfZgtveg.png" /></figure><p><strong>6. Recognition Rather Than Recall<br></strong>User interfaces should leverage recognition rather than taxing users’ memories. Visualizations, suggestions and descriptions help jog memories and reduce cognitive load. As you can see the Kurikulum detail shown is giving information for selected Kurikulum so users don’t have to recall their choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nMKeW2UhOf77pSWJWobRgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RgSTKXW45sKMt21mOj7t7w.png" /></figure><p><strong>7. Flexibility and Efficiency of Use<br></strong>UIs should allow for flexible navigation and operation to accommodate different user experiences and skill levels. Expert users should have shortcuts for accelerating workflows. On page below, we give users flexibility to filter Kurikulum based on Prodi and Jenjang to give them flexibility and efficiency on using our app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nMKeW2UhOf77pSWJWobRgA.png" /></figure><p><strong>8. Aesthetic and Minimalist Design</strong><br>Interfaces should cut out any irrelevant information and keep dialogues concise and content simple. Every extra unit of information competes with relevant units for the user’s attention. This dashboard below give only what’s important on users regarding their grade and courses taken.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TsB3eJwyiry6cDpOIt5D4Q.png" /></figure><p><strong>9. Help Users Recognize, Diagnose and Recover from Errors</strong><br>Error messages should be expressed in plain language, precisely indicate the problem, and constructively suggest a solution. This is when Curriculum with desired code is already active, giving a straightforward feedback about errors and how the users would recover from that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MjaAgig7hCC_bsgzzAZMMQ.png" /></figure><p><strong>10. Help and Documentation</strong><br>While interfaces should be intuitive, it’s also important to provide help and documentation for more complex aspects. Information should be easy to search, task-oriented and list concrete steps. For example, here is the onboarding page to give users initial knowledge about what the app does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtGLb04XAcPgPWbp59wZ8A.jpeg" /></figure><p><strong>The Gestalt Principles <br></strong>In addition to Nielsen’s heuristics, effective user interface design also incorporates Gestalt principles of human visual perception. These psychological principles, developed by German psychologists in the 1920s, describe how humans group and perceive objects and can aid in creating intuitive UI layouts and visual hierarchies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/0*f6oj4jljb9vCYWH2.jpg" /></figure><p>Some key Gestalt principles for UI design include:</p><ul><li><strong>Proximity</strong> — Objects near each other appear grouped together. Important UI elements should be grouped accordingly. For example the table is shown in one group and users can differentiate which Kurikulum is on which Kelompok Matkul.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*RgSTKXW45sKMt21mOj7t7w.png" /></figure><ul><li><strong>Similarity</strong> — Elements that share visual properties like color, shape or size are seen as related. Using similarity cues properly organizes content. As we can see below, each table has the same visual properties such as header color, etc. It shows that every one of them are related.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*RgSTKXW45sKMt21mOj7t7w.png" /></figure><ul><li><strong>Continuity</strong> — Elements arranged in a line or curve are seen as related. This guides the eye through content or interactions. For example, although the information given is many, users can read the information easily and thoroughly.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*TsB3eJwyiry6cDpOIt5D4Q.png" /></figure><ul><li><strong>Closure</strong> — Humans perceive complete shapes even with incomplete information. This allows creative use of shapes and borders as containers. For example the container in this “Tambah Kurikulum” page is indicate activity that the users can do in the page.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*LgpDasLDiDVwNciD5LVv8A.png" /></figure><ul><li><strong>Figure/Ground</strong> — Elements are perceived as either objects (figures) or their surroundings (ground). Figure/ground relationships create perceived layers and hierarchy. The white card stands out as the focal figure against the grey background in this “Tambah Kurikulum” page.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*LgpDasLDiDVwNciD5LVv8A.png" /></figure><p>Incorporating Gestalt psychology alongside Nielsen’s heuristics results in user interfaces that feel intuitive and visually organized while also being learnable, efficient and user-friendly. Both frameworks complement each other in creating optimal user experiences.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=598772689ad8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Better Error Handling with Sentry]]></title>
            <link>https://medium.com/@akmalhakim2106/better-error-handling-with-sentry-e10fcc697a45?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/e10fcc697a45</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Sun, 05 May 2024 22:45:41 GMT</pubDate>
            <atom:updated>2024-05-06T13:42:06.428Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Vb4tT1k3jbp45o2MjAiTg.png" /></figure><p>In today’s fast-paced world of software development, monitoring and analyzing your application’s performance, user activity, and error occurrences is crucial. Without these critical insights, you’ll be flying blind, unable to identify and resolve issues promptly, leading to poor user experiences on your app. In this blog post, we’ll explore the importance of monitoring and analytics, and dive into the practical implementation of error monitoring tools like Sentry.</p><h3>Why Monitoring and Analytics Matter</h3><p>Imagine you’ve just launched a new feature in your application, and users are reporting slow load times and frequent crashes. Without proper monitoring and analytics in place, you’d be left scrambling to identify the root cause, wasting valuable time and resources. Effective monitoring and analytics give you a bird’s-eye view of your application’s health, allowing you to:</p><ol><li><strong>Detect and diagnose issues proactively</strong>: By monitoring key performance indicators (KPIs) and error rates, you can spot potential problems before they escalate, minimizing downtime and user frustration.</li><li><strong>Enhance user experience</strong>: With insights into user behavior and application performance, you can optimize bottlenecks, streamline workflows, and deliver a seamless experience to your users.</li><li><strong>Make data-driven decisions</strong>: Comprehensive analytics provide valuable data points that inform your development roadmap, feature prioritization, and resource allocation decisions.</li></ol><h3>Error Monitoring</h3><p>Error monitoring is the process of detecting, capturing, and analyzing errors that occur within a software application. It involves anticipating potential errors, identifying when they happen, and implementing strategies to resolve them gracefully, ensuring the application continues to run smoothly.</p><p>Effective error monitoring is crucial for maintaining the normal flow of program execution and providing a seamless user experience. Many applications face design challenges when it comes to implementing robust error-handling techniques. Error monitoring helps applications handle both hardware and software errors gracefully, allowing execution to resume when interrupted.</p><p>Developers can either write custom code to handle errors or leverage specialized error monitoring tools. In cases where errors cannot be easily classified, error handling often involves returning special error codes. Some applications utilize dedicated error handlers — software components designed to anticipate and recover from errors without causing the application to terminate unexpectedly.</p><p>Errors can be broadly categorized into four main types:</p><ul><li>Logical errors: Flaws in the program logic or algorithm</li><li>Generated errors: Errors raised by the programming language or runtime environment</li><li>Compile-time errors: Errors detected during the compilation or build process</li><li>Runtime errors: Errors that occur while the application is running</li></ul><p>Implementing effective error monitoring strategies helps developers identify and resolve issues proactively, ensuring a stable and reliable application experience for end-users.</p><h3>Setup a Sentry SDK to Your Django Project</h3><p>First, you need to install Sentry SDK for Python:</p><p>pip install --upgrade &#39;sentry-sdk[django]&#39; or you can add dependencies on requirements.py by adding:</p><pre>...<br>sentry-sdk==1.43.0<br>...</pre><p>Then you can initalize the SDK in settings.py:</p><pre>import sentry_sdk<br>from sentry_sdk.integrations.django import DjangoIntegration<br><br>sentry_sdk.init(<br>    dsn=&quot;YOUR_SENTRY_DSN&quot;,<br>    integrations=[DjangoIntegration()],<br>    traces_sample_rate=1.0,<br>    profiles_sample_rate=1.0,<br>    send_default_pii=True<br>)</pre><p>You can get the DSN by accessing <a href="http://sentry.io/">sentry.io</a> and create a new project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6JVAqpqWCd2sDhP7MiNnBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0FCiZZcTXnKQc8bbn2N9A.png" /></figure><p>You can easily verify your Sentry installation by creating a route that triggers an error, for example:</p><pre>from django.urls import path<br><br>def trigger_error(request):<br>    division_by_zero = 1 / 0<br><br>urlpatterns = [<br>    path(&#39;sentry-debug/&#39;, trigger_error),<br>]</pre><p>With these steps, we should integrate Sentry with our django project successfully.</p><h3>Implementing Error Monitoring with Sentry</h3><p>One powerful tool for monitoring and analyzing errors in your application is Sentry. Sentry is an open-source error tracking platform that integrates seamlessly with your tech stack, providing real-time error reporting, detailed stack traces, and comprehensive analytics. We use this in our software development project. This app would automatically capture errors that happens during runtime in staging phase. Any unhandled errors that aren’t caught with error handler such as try/catch will be reported automatically in Sentry. This would help us to respond faster when it comes to error handling on our staged app.</p><h3>Analyzing Error Data with Sentry</h3><p>Once you’ve set up Sentry, you’ll gain access to a wealth of error data and analytics through the Sentry dashboard. Here are a few key features and insights you can leverage:</p><ol><li><strong>Error Aggregation</strong>: Sentry groups similar errors together, making it easier to identify and prioritize recurring issues.</li><li><strong>Stack Traces</strong>: Detailed stack traces pinpoint the exact location and context of each error, accelerating the debugging process.</li><li><strong>User Feedback</strong>: Sentry allows you to collect user feedback and attach additional context to errors, providing valuable insights into the user experience.</li><li><strong>Release Tracking</strong>: By associating errors with specific releases or deployments, you can quickly identify regressions and monitor the impact of code changes.</li><li><strong>Performance Monitoring</strong>: In addition to error tracking, Sentry offers performance monitoring capabilities, allowing you to analyze transaction traces, identify bottlenecks, and optimize application performance.</li></ol><h3>Real-Life Application: Enhancing User Experience</h3><p>In my project, we started to receiving reports of any crashes and uncatched errors. All those reports can be integrated in our Discord server so all of our members can get faster report if an error occur during staging phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s5TG96OxTx8Re-4fJhIUWw.png" /></figure><p>By integrating Sentry into our codebase, we were able to capture and analyze these errors in real-time. Using this information, our team was able to investigate the root cause and any errors that we haven’t handle.</p><h3>Conclusion</h3><p>In the ever-evolving landscape of software development, monitoring and analytics are essential for delivering high-quality, reliable applications. By leveraging tools like Sentry, we can gain invaluable insights into your application’s performance, user activity, and error occurrences, empowering you to proactively identify and resolve issues, optimize user experiences, and make data-driven decisions.</p><p>Implementing error monitoring and analytics may seem like an overhead initially, but the long-term benefits of improved application stability and security, user satisfaction, and informed decision-making make it a worthwhile investment.</p><h3>Reference</h3><ul><li><a href="https://www.geeksforgeeks.org/difference-between-compile-time-errors-and-runtime-errors/">Difference between Compile Time Errors and Runtime Errors - GeeksforGeeks</a></li><li><a href="https://docs.sentry.io/product/sentry-basics/integrate-backend/capturing-errors/">Capturing Errors</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e10fcc697a45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[People Management 101]]></title>
            <link>https://medium.com/@akmalhakim2106/people-management-101-34e44f36377c?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/34e44f36377c</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Wed, 20 Mar 2024 23:49:05 GMT</pubDate>
            <atom:updated>2024-05-22T04:10:18.832Z</atom:updated>
            <content:encoded><![CDATA[<p>People management refers to the process of training, motivating, and directing team members to optimize their performance and productivity. In a software engineering team, effective people management is crucial for fostering a positive work environment, facilitating collaboration, and ensuring that projects are completed efficiently and with high quality.</p><h3>Core Skills for People Management</h3><p>Successful people management in software engineering teams often involves leveraging various skills and techniques:</p><ol><li><strong>Effective Communication Channels</strong>: Establishing open and clear lines of communication, such as daily standup meeting and using collaboration tools like Discord, Gitlab, and Linear can facilitate information sharing and address concerns or conflicts promptly.</li><li><strong>Empathy</strong>: Cultivating empathy among team members and managers can foster a supportive and understanding environment. We can use empathy when providing feedback or delegating tasks. It makes all individuals feel comfortable expressing their concerns and perspectives.</li><li><strong>Active Listening</strong>: Encouraging active listening skills can help team members and managers fully understand each other’s viewpoints, ideas, and concerns. We can use it on daily standup meetings. When actively listen, we can minimize misunderstanding on the project running.</li><li><strong>Organizational Aptitude</strong>: Developing strong organizational skills can help managers effectively coordinate and manage team resources, timelines, and workflows, ensuring projects are completed efficiently and on schedule. On practice, we can use google calendar to schedule our meetings or use discord as the main channel for all information. By being organized, we could spent time on project efficiently.</li></ol><h3>Implementation in PPL Team</h3><p>To effectively implement people management practices in our PPL Team, several key steps can be taken:</p><p>1. <strong>Define Clear Responsibilities</strong>: Clearly defining roles, responsibilities, and expectations for each team member can help prevent confusion, promote accountability, and ensure that everyone understands their contributions to the team’s success. For example, all the task is assigned on one people and it can be monitored via Linear. Those ensures all team members know all of each responsibilities so the communication can be done efficiently.</p><p>2. <strong>Foster a Collaborative Environment</strong>: Encouraging open communication, knowledge sharing, and collaboration can foster a sense of belonging and teamwork, enabling team members to support one another and improve our works. Also by regularly providing constructive feedback, both positive and negative, can help team members understand their strengths and areas for improvement, ultimately driving professional growth and development.</p><p>3. <strong>Communicate Directly: </strong>When working on my story point and testing the application, communicate any errors or issues that arise directly with other team members. While coding, you can also test the entire application, and when there are errors, try to fix them yourself or communicate the issue to other members to fix the code collaboratively.</p><p><strong>How do We Implement it in Team?</strong></p><p>We have implemented the people management by using Scrum on project management. We usually have bi-weekly meeting called <strong>Standup Meeting. </strong>On that meeting, we discussed about progress that every members, including me regarding to our responsibilities and tasks, including obstacles and future plan. This meeting can helps us to keep up with the others progress and ensures that our project is still keep on track. Daily Standup made us to be more communicative and foster a collaborative environment. Not just sharing progress, we can give any ideas too if there any obstacles or concern about the feature. Through that process, the team can easily understand about the solution for feature for example. By knowing each other progress, communicating, and collaborate, we can decide what to do next and keeps growing better as a team and as an individual.</p><h3>Conclusion</h3><p>Effective people management is a critical component of successful software engineering teams. By understanding core skills and implementing best practices, we can create a positive work environment that fosters collaboration and ultimately drives team productivity and project success. Understanding people management strategies can help us to ensures our teams are equipped to tackle complex challenges and deliver high-quality products.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34e44f36377c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SonarQube: Secure Your Code, Secure your Apps]]></title>
            <link>https://medium.com/@akmalhakim2106/sonarqube-secure-your-code-secure-your-apps-5ce024179881?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ce024179881</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Wed, 20 Mar 2024 23:05:01 GMT</pubDate>
            <atom:updated>2024-03-28T05:04:03.780Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WQyN-xqIIR4FOLnp.png" /></figure><p>Software quality is crucial for the success of any project. Poor code quality can lead to bugs, performance issues, security vulnerabilities, and increased maintenance costs. This is where SonarQube comes into play as a powerful tool for ensuring high-quality code.</p><h3>Why is Code Quality Important?</h3><p>Code quality is essential for several reasons:</p><p>1. <strong>Reliability</strong>: High-quality code is less prone to bugs and crashes, leading to a more stable and reliable application.<br>2. <strong>Maintainability</strong>: Well-structured and documented code is easier to understand, modify, and extend, reducing the time and effort required for future development.<br>3. <strong>Performance</strong>: Efficient code optimized for performance ensures a smooth user experience and reduces resource consumption.<br>4. <strong>Security</strong>: Secure coding practices help prevent vulnerabilities that could be exploited by malicious actors.</p><h3>What Can You Do with SonarQube?</h3><p>SonarQube is a comprehensive code quality management platform that provides static code analysis, code coverage reporting, and various quality metrics. Here are some of the key features and capabilities of SonarQube:</p><p>1. <strong>Static Code Analysis</strong>: SonarQube analyzes your code base for potential issues, such as code smells, bugs, vulnerabilities, and coding style violations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IyOC0zN3004IRCqt-vZRbQ.png" /></figure><p>2. <strong>Code Coverage:</strong> SonarQube integrates with testing frameworks to measure code coverage, which helps identify areas of your codebase that lack sufficient test coverage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*93_1puZvBwgdOFKI0-CKzw.png" /></figure><p>3. <strong>Identify Security Hotspots: </strong>SonarQube’s security hotspot feature allows you to mark specific areas of your codebase as security-sensitive. These areas are then subject to more strong security analysis. SonarQube can also gives us explanation why is it potentially have risk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gjiWoAn97G5aPefRC3zI0g.png" /></figure><p>4. <strong>Technical Debt Management</strong>: SonarQube tracks and quantifies technical debt, which represents the effort required to fix code quality issues. This helps teams prioritize and address technical debt before it becomes overwhelming</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XL6FN2TrbpdQnOxKy6zT9Q.png" /></figure><h3>Setup a SonarQube</h3><p>We can use sonarqube.cs.ui.ac.id to maintain our code. At first, you have to login first using your gitlab CSUI account. And then, you can add a project from your gitlab by click “Add Project”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Z_dmkM4_MnDhYAfBsxE1Q.png" /></figure><p>You can see list of your gitlab projects on this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KD6S99ej6bdycBAh8wlzpA.png" /></figure><p>You can choose the project that you want to analyze by click on “Set up” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m78_qLeNX0XIizV44dNc8Q.png" /></figure><p>You can make new toket to start analyzing your project. You can give name for your token and generate it. Remember to save your generated token into safe place as it cant be accessed anymore if you’re not save it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FCCdMlFOwJPt3Qc5HxQDTQ.png" /></figure><p>Run SonarQube by installing and executing the sonar-scanner on our terminal.</p><p>You can automate the sonar-scanner by using CI/CD cycle. For example, this is our CI/CD script for SonarQube scanner:</p><pre>sonarqube-check:<br>  stage: sonarqube<br>  tags:<br>  - sikayu<br>  only:<br>  - staging<br>  - merge_requests<br>  - master<br>  - /^(ppl)-([0-9]+)-([a-zA-Z_0-9])+$/<br>  image: sonarsource/sonar-scanner-cli:latest<br>  variables:<br>    SONAR_HOST_URL: https://sonarqube.cs.ui.ac.id<br>    SONAR_TOKEN: $SONAR_TOKEN<br>    SONAR_PROJECT_KEY: $SONAR_PROJECT_KEY<br>    SONAR_USER_HOME: ${CI_PROJECT_DIR}/.sonar # Defines the location of the analysis task cache<br>    GIT_DEPTH: 0 # Tells git to fetch all the branches of the project, required by the analysis task<br>  cache:<br>    key: &quot;${CI_JOB_NAME}&quot;<br>    paths:<br>    - .sonar/cache<br>  script:<br>  - sonar-scanner -X -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.sources=. -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN -Dsonar.coverage.exclusions=**/__init__.py,**/admin.py,**/factory.py,**/permissions.py,**/static/**,**/test*.py,**/test_*.py,**/tests.py,**/tests/**,**/tests_*.py,**/urls.py,*/admin.py,*/apps.py,*/asgi.py,*/manage.py,*/migrations/*,*/settings.py,*/tests/*,*/venv/*,*/wsgi.py,manage.py,static/*,static/**,**/theme/** -Dsonar.python.coverage.reportPaths=./coverage.xml<br>  dependencies:<br>  - unit-tests<br>  allow_failure: true</pre><h3>Conclusion</h3><p>Maintaining high code quality is crucial for the long-term success of software projects. SonarQube is a powerful tool that helps development teams achieve this goal by providing comprehensive code analysis, quality metrics, and continuous inspection capabilities. By leveraging SonarQube, teams can identify and address code quality issues early, reduce technical debt, and ensure that their codebase remains maintainable, secure, and have good performance. Integrating SonarQube into your development workflow is a valuable investment that can significantly improve the overall quality and reliability of your software projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ce024179881" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Git, The Version Control System for Software Devs]]></title>
            <link>https://medium.com/@akmalhakim2106/understanding-git-the-version-control-system-for-software-devs-3746c7e0c959?source=rss-1b72a7e5c212------2</link>
            <guid isPermaLink="false">https://medium.com/p/3746c7e0c959</guid>
            <dc:creator><![CDATA[Akmalee]]></dc:creator>
            <pubDate>Wed, 20 Mar 2024 22:29:32 GMT</pubDate>
            <atom:updated>2024-03-28T14:38:22.282Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/362/0*zX3I_5E2rs2ESJyJ" /></figure><p>Git is a powerful version control system that has become an indispensable tool for developers worldwide. Its importance lies in its ability to efficiently manage and track changes to code, ensuring collaboration and maintaining a comprehensive history of a project’s evolution.</p><h3>Why is Git Important?</h3><p>Version control is crucial in software development, especially when multiple developers are working on the same codebase. Git allows developers to work on the same files concurrently, merging their changes seamlessly and resolving conflicts when necessary. It provides a centralized repository for storing and managing code, facilitating collaboration and code sharing among team members.</p><h3>What Can You Do with Git?</h3><p>Git offers a wide range of features that streamline the development process. Here are some of the most common operations:</p><p><strong>a. Clone Repository<br></strong>To begin working on a project, developers can create a local copy of the remote repository by cloning it. This process downloads the entire codebase, including its revision history, to the developer’s local machine.</p><p>For example, if we want to start working on an existing project, or we want to continue our progress on a new device, we can create a local copy on your device using the git clone command followed by the repo’s URL. You can copy the repo’s URL on the top of your repo like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*Jxg46YdAAyY55teVa_exKQ.png" /></figure><p><strong>b. Create Branch<br></strong>Git’s branching model allows developers to create separate branches for new features, bug fixes, or experimental changes without affecting the main codebase. This promotes code isolation and enables parallel development.</p><p>For example, you want to do your ticket on linear to implement new feature or doing chores (bug fix etc.), you should NEVER push your changes directly onto master branch. We can create a new branch. By creating a new branch, we can isolate our change and merge onto the main/staging branch later. Here’s my flow:</p><p>Copy your branch name from Linear ticket, we can click the rightmost icon on the top to copy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*AUtFqagfXuDpqR0fQPFmLg.png" /></figure><p>after that, we can use git checkout -b &lt;your-pasted-branch&gt; to create a new branch.</p><p><strong>c. Pull Changes from Branch<br></strong>Developers can retrieve (pull) the latest changes from a remote branch to their local repository, ensuring they have the most up-to-date version of the codebase.</p><p>In case you have been working on a branch, and meanwhile, other changes are merged on staging branch. To prevent merge conflict on your merge request we can pull the most updated code with git pull command. I usually pull from the staging branch or pull from other branch that i depends to. For example, if you want to pull from staging, we can use the git pull origin staging command to pull the latest change of the code.</p><p><strong>d. Merge Request<br></strong>Once a feature or bug fix is complete, developers can initiate a merge request, which is a proposal to incorporate their changes into the main codebase or another branch. This process typically involves code review and approval from other team members. This process is to ensures that your process is keep the code quality and minimize human error. Here’s the example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UHUdeIxkrQY-qabrFurerQ.png" /></figure><p><strong>e. Resolve Conflict on Browser<br></strong>When multiple developers have made conflicting changes to the same files, Git provides tools to resolve these conflicts on the browser or command line. This allows for seamless integration of different contributions.</p><p>For example, if we merging the branch into staging branch, Git may detect conflicts if your pushed code on your branch is have conflict on the same lines of code. In this case, we can resolve the conflicts by choosing which to keep and which to changes. We can use resolve conflict on browser by GUI that Gitlab has. Here’s the example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kL4kIA43J_OMBakv.png" /></figure><p>We can choose what changes that we want to use on the target branch.</p><p><strong>f. git stash</strong></p><p>git stash allows us to temporarily store changes that are not yet ready for a commit. This is useful when switching between branches or working on different tasks without losing progress on the current changes. with this, we can save our progress later for use in our local storage, and then you can revert them into our current branch.</p><p>For example, you can git stash to stash your current changes into your local repository on your current branch. It would be tracked on GIT. When youre gonna working again on your progress, you can use git stash apply to apply the last stash onto the current branch and keeps the stashed changes into local repository or you can use git stash pop to apply the last stash and pop/drop your stash.</p><p><strong>g. git cherry-pick</strong></p><p>Cherry-pick is the process of picking a commit from a branch and apply it into another branch. This is useful when you need to apply a bug fix or a feature from a different specific branch without merging the entire branch.</p><p>Let’s say we want to pick the <strong>c5</strong> commit from the <strong>feature</strong> branch to the <strong>master</strong> branch. We can go to the master branch with git checkout master and then we can pick the commit that we want to apply using <strong>commit hash</strong> from the feature branch using git cherry-pick c5 we assume that c5 is the commit hash. We can see our commit hash on you commit history on gitlab</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zB7oTjikB4CDfY-0mWPrg.png" /></figure><p>For example, my commit hash is on the right side of the picture, you can copy the hash and paste it into your command.</p><p>Now, after cherry-picked, your master branch is now have the changes that c5 has.</p><p><strong>h. git pull rebase vs git pull/merge</strong></p><p>Last day, when i’m going to make a minor change on my branch, I pull the staging branch first before continuing my code. But, in the provess, i got an error like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XnUrAD9MsE49xIQdYAjAbw.png" /></figure><p>This is the first time I faced an error like this, so i search what to do to resolve the error on the internet. It turns out that when i’m trying to pull changes from the remote repository, my local branch and remote branch have diverged so it means that there are difference in my local commits and my remote branch. So i try to understand whats different between merge that I usually use and rebase.</p><p>The difference between them is when I choose to <strong>merge</strong> using git pull.rebase false and git pull origin, the command will merge the remote changes into my local commit. While with <strong>rebase</strong>, the remote branch will ‘continue’ the local commit on top of the remote branch. With <strong>rebase,</strong> we can have a cleaner history on our commit/changes, but may require some conflict resolve. Here’s a further explanation on <strong>merge vs rebase:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_z2DaeimEytvZVbR" /><figcaption>source: <a href="https://www.linkedin.com/pulse/understanding-difference-between-git-merge-rebase-which-garg-/">https://www.linkedin.com/pulse/understanding-difference-between-git-merge-rebase-which-garg-/</a></figcaption></figure><p>Git Merge: This would pulls the latest changes from staging branch into the feature branch and create a new “merge commit” in the process so every time the merge is done, there are new knot or connection as we can see in the picture. The node on master (or in my case, staging) would refer to the latest commit when merge is called. When there are many merge, there would be a lot of connected node and can make the history a bit messy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vNy31jzK2LdQ7l_pfRNZ_g.png" /><figcaption>source: bytebytego.com</figcaption></figure><p>Git Rebase: On the other hand, git rebase would change the base of our feature branch to the latest commit on master and continue our changes from feature from there. As we can see in the picture, the node that connected is linear so the commit history would more clean, straightforward, and easy-to-track commit history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwRyitIFRjA0aJu-peaLyQ.png" /><figcaption>source: bytebytego.com</figcaption></figure><h3>Conclusion</h3><p>Git has revolutionized the way developers collaborate and manage code. Its powerful features, such as branching, merging, and version control, have made it an essential tool in modern software development workflows. By leveraging Git, teams can work efficiently, maintain code integrity, and seamlessly integrate contributions from multiple developers. Whether you’re a solo developer or part of a large team, mastering Git is a crucial skill for any software professional.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3746c7e0c959" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>