<?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 Abdullah Al Mamun on Medium]]></title>
        <description><![CDATA[Stories by Abdullah Al Mamun on Medium]]></description>
        <link>https://medium.com/@almamunx?source=rss-e01f9ad8936d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tROQ_3Md5BvDN4JyaDLF7w.jpeg</url>
            <title>Stories by Abdullah Al Mamun on Medium</title>
            <link>https://medium.com/@almamunx?source=rss-e01f9ad8936d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 02:14:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@almamunx/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[Are You Excluding Color Blind People from Your UI Design?]]></title>
            <link>https://blog.stackademic.com/are-you-excluding-color-blind-people-from-your-ui-design-861b942bded1?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/861b942bded1</guid>
            <category><![CDATA[colors]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 02:55:39 GMT</pubDate>
            <atom:updated>2026-01-27T07:48:39.397Z</atom:updated>
            <content:encoded><![CDATA[<p>As a web designer, I used to think picking colors was all about aesthetics — making a button pop or a header feel bold. Then I learned that roughly 1 in 12 men and 1 in 200 women experience some form of color blindness, and suddenly, my “perfect” palette wasn’t so perfect. If you’re relying solely on color to convey meaning in your UI — say, red for “error” and green for “success” — you might be locking out 8% of your users without realizing it. In this post, I’ll break down what color blindness means for design, show you the difference it makes with an example, suggest accessible color combos, and explain when you can safely sidestep these concerns. Let’s make sure our UIs welcome everyone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RteXkjvFhaENK4-L" /><figcaption>Photo by <a href="https://unsplash.com/@uxindo?utm_source=medium&amp;utm_medium=referral">UX Indonesia</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When I started designing websites, I’d obsess over color palettes — agonizing over the perfect shade of blue for a button or the exact green to signal “success.” It felt like an art form, a playground of creativity. Then a friend with deuteranopia (red-green color blindness) tested one of my interfaces and asked, “Why are all the status lights the same color?” My heart sank. I’d built a UI that worked for me but excluded him — and millions like him. Globally, about 300 million people have some form of color vision deficiency (CVD), yet it’s so easy to overlook them in design. In this deep dive, I’ll unpack what color blindness means for UI, show its impact with an example, compare perceptions side by side, suggest accessible colors, and explore when you can sidestep these concerns. With wisdom from design legends sprinkled in, let’s rethink how we wield color — because great design doesn’t just dazzle; it includes.</p><h4>What Is Color Blindness, Anyway?</h4><p>Color blindness (or color vision deficiency, CVD) isn’t about seeing the world in grayscale — it’s about struggling to distinguish certain hues. The most common types are:</p><ul><li><strong>Protanomaly/Protanopia</strong>: Reduced sensitivity to red (reds look muted or grayish).</li><li><strong>Deuteranomaly/Deutanopia</strong>: Reduced sensitivity to green (greens blend into browns or grays).</li><li><strong>Tritanomaly/Tritanopia</strong>: Trouble with blue-yellow (rare, but blues and yellows get muddy).</li></ul><p>About 99% of color blindness cases are red-green related, so that’s where most UI pitfalls lurk. Imagine a dashboard where red dots mean “offline” and green dots mean “online.” To someone with deuteranopia, those dots might both look like vague brown blobs — information lost.</p><h4>Why Color Alone Isn’t Enough</h4><p>Color’s a UI superpower — it grabs attention, signals action, and sets mood. But leaning on it alone is a trap. Imagine a chart where red bars mean “underperforming” and green bars mean “thriving.” To someone with protanopia, those bars might merge into a vague blur. Accessibility pioneer Jakob Nielsen once said, “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.” Web Content Accessibility Guidelines (WCAG) echo this, urging a 4.5:1 contrast ratio and non-color cues for meaning. Ignoring this doesn’t just alienate users — it risks legal headaches under laws like the ADA.</p><h4>A Real-World Example: The Dashboard Disaster</h4><p>Let’s see this in action with a dashboard widget tracking project statuses. Here’s the code:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;title&gt;Project Dashboard&lt;/title&gt;<br>  &lt;style&gt;<br>    body {<br>      font-family: &#39;Verdana&#39;, sans-serif;<br>      background-color: #F8F9FA;<br>      padding: 30px;<br>    }<br>    .project {<br>      display: flex;<br>      align-items: center;<br>      gap: 15px;<br>      margin-bottom: 20px;<br>      padding: 10px;<br>      background: white;<br>      border-radius: 5px;<br>      box-shadow: 0 2px 5px rgba(0,0,0,0.1);<br>    }<br>    .status-dot {<br>      width: 25px;<br>      height: 25px;<br>      border-radius: 50%;<br>    }<br>    .complete .status-dot {<br>      background-color: #198754; /* Green for &quot;Complete&quot; */<br>    }<br>    .pending .status-dot {<br>      background-color: #DC3545; /* Red for &quot;Pending&quot; */<br>    }<br>    .label {<br>      font-size: 1.1rem;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>  &lt;h1&gt;Project Dashboard&lt;/h1&gt;<br>  &lt;div class=&quot;project complete&quot;&gt;<br>    &lt;span class=&quot;status-dot&quot;&gt;&lt;/span&gt;<br>    &lt;span class=&quot;label&quot;&gt;Website Redesign - Complete&lt;/span&gt;<br>  &lt;/div&gt;<br>  &lt;div class=&quot;project pending&quot;&gt;<br>    &lt;span class=&quot;status-dot&quot;&gt;&lt;/span&gt;<br>    &lt;span class=&quot;label&quot;&gt;App Prototype - Pending&lt;/span&gt;<br>  &lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>Now, a checkmark signals “Complete” and an hourglass says “Pending” — color enhances, not defines.</p><h4>Side-by-Side Comparison with Color</h4><p>Here’s how the original looks to different eyes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cOmQXMSiJCvSum3qwSR4LQ.png" /></figure><p>Without icons, the dots are indistinguishable to red-green color-blind users. Steve Krug, author of <em>Don’t Make Me Think</em>, nails it: “If something is hard to use, I don’t care how pretty it is — it’s a failure.” Text saves this example, but not every UI has that luxury.</p><h4>Color Suggestions for Inclusion</h4><p>Pick colors that sidestep CVD traps — here’s a starter kit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vX0bzfA32XBXF18wZC_nrw.png" /></figure><ul><li><strong>Blue + Orange</strong>: A go-to for binary states — clear and bold.</li><li><strong>Purple + Teal</strong>: Vibrant yet distinct, even for tritanopia.</li><li><strong>Avoid</strong>: Red + Green, Light Pink + Light Gray, Yellow + White (low contrast or confusion risks).</li></ul><p>Test these with tools like Coblis or Chromatic Vision Simulator to see how they hold up.</p><h4>Deepening the Approach: Beyond Color</h4><p>Color’s just one piece. As Paula Scher, a titan of graphic design, says, “Design is the intermediary between information and understanding.” To truly include color-blind users:</p><ul><li><strong>Icons &amp; Patterns</strong>: A dashed line for “pending,” a solid fill for “complete.”</li><li><strong>Contrast is King</strong>: Aim for WCAG 2.1 Level AA (4.5:1) — black on orange (#F97316) hits 5.8:1.</li><li><strong>User Testing</strong>: Simulate CVD or — better — ask real users with color blindness for feedback.</li><li><strong>Typography</strong>: Bold or larger text can reinforce meaning.</li></ul><h4>When to Ignore Color Blindness Concerns</h4><p>Not every project demands full accessibility — though I’d argue it’s rarely a bad idea. Here’s when you might let it slide:</p><ol><li><strong>Personal Experiments</strong>: A portfolio site for your own joy? Play with red-green if it’s your vibe — no one’s harmed.</li><li><strong>Built-In Redundancy</strong>: If your UI already uses shapes, labels, or animations (e.g., a blinking “Error” icon), color’s a secondary cue.</li><li><strong>Tiny, Controlled Audience</strong>: An internal tool for a five-person team with no CVD? You can risk it — just verify first.</li><li><strong>Art Over Function</strong>: An abstract creative piece (like a generative art site) might prioritize vision over usability — disclose it upfront.</li><li><strong>Time Crunch</strong>: In a hackathon or MVP rush, accessibility might wait — but plan to fix it later.</li></ol><p>Even then, Bruce Mau’s wisdom from <em>Massive Change</em> rings true: “Design is an opportunity to make the world better, not just prettier.” A little effort now beats a retrofit later.</p><h4>The Bigger Picture: Empathy in Design</h4><p>Designing for color blindness has taught me empathy — seeing through others’ eyes, literally. It’s not about scrapping color; it’s about layering meaning so no one’s left out. I’ve started running every UI through a simulator, tweaking until it works for all. It’s extra work, but it’s worth it — because exclusion isn’t a design flaw; it’s a human one. As Dieter Rams said, “Good design is as little design as possible” — and that includes barriers. Let’s build UIs that don’t just shine but connect.</p><h4>Why It Matters in UI Design</h4><p>Color’s a powerful tool, but it’s not universal. If your design leans on color alone to signal meaning — like a form field turning red to flag an error — you’re assuming every user can see it the way you do. Accessibility isn’t just nice-to-have; it’s a legal requirement in many cases (think WCAG guidelines) and a moral one too. Good design includes, not excludes.</p><h4>Example: A Status Indicator Gone Wrong</h4><p>Let’s look at a simple status toggle — something you might see in a control panel. Here’s the HTML and CSS for a “Server Status” widget:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;title&gt;Server Status&lt;/title&gt;<br>  &lt;style&gt;<br>    .status {<br>      display: flex;<br>      align-items: center;<br>      gap: 10px;<br>      font-family: Arial, sans-serif;<br>      padding: 20px;<br>    }<br>    .dot {<br>      width: 20px;<br>      height: 20px;<br>      border-radius: 50%;<br>    }<br>    .active .dot {<br>      background-color: #28A745; /* Green for &quot;Online&quot; */<br>    }<br>    .inactive .dot {<br>      background-color: #DC3545; /* Red for &quot;Offline&quot; */<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>  &lt;div class=&quot;status active&quot;&gt;<br>    &lt;span class=&quot;dot&quot;&gt;&lt;/span&gt;<br>    &lt;span&gt;Server Online&lt;/span&gt;<br>  &lt;/div&gt;<br>  &lt;div class=&quot;status inactive&quot;&gt;<br>    &lt;span class=&quot;dot&quot;&gt;&lt;/span&gt;<br>    &lt;span&gt;Server Offline&lt;/span&gt;<br>  &lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p><strong>Normal Vision</strong>: Green dot = “Online,” red dot = “Offline.” Clear as day.<br> <strong>Deuteranopia</strong>: Both dots look like murky browns or grays — users can’t tell what’s what without the text.</p><h4>The Difference Side by Side with Color</h4><p>Here’s how this example looks to different viewers, with hex codes for clarity:</p><p><strong>ElementNormal VisionDeuteranopia (Red-Green Blind)</strong>Online DotGreen (#28A745)Muddy brownish-grayOffline DotRed (#DC3545)Similar muddy brownish-grayText (Black)Black (#000000)Black (#000000)</p><p>Without the text labels, the color-only dots are useless to someone with deuteranopia. Even with labels, relying on color alone risks confusion if the design scales (e.g., a chart with no annotations).</p><h4>Fixing It: Accessible Design Practices</h4><p>To include color-blind users, don’t ditch color — enhance it. Here’s how:</p><ol><li><strong>Add Patterns or Icons</strong>: Pair colors with shapes (e.g., a checkmark for “Online,” an X for “Offline”).</li><li><strong>Boost Contrast</strong>: Ensure sufficient contrast between elements (WCAG recommends 4.5:1 for text).</li><li><strong>Use Labels</strong>: Text or tooltips clarify meaning beyond hue.</li><li><strong>Test with Simulators</strong>: Tools like Stark or Color Oracle show how your UI looks to color-blind users.</li></ol><p>Let’s tweak the example:</p><pre>.active .dot {<br>  background-color: #28A745;<br>  position: relative;<br>}<br>.active .dot::after {<br>  content: &quot;✓&quot;;<br>  position: absolute;<br>  color: white;<br>  top: 50%;<br>  left: 50%;<br>  transform: translate(-50%, -50%);<br>}<br>.inactive .dot {<br>  background-color: #DC3545;<br>  position: relative;<br>}<br>.inactive .dot::after {<br>  content: &quot;✗&quot;;<br>  position: absolute;<br>  color: white;<br>  top: 50%;<br>  left: 50%;<br>  transform: translate(-50%, -50%);<br>}</pre><p>Now, “Online” gets a green checkmark, “Offline” gets a red X — color plus symbols. Problem solved.</p><h4>Color Suggestions for Accessibility</h4><p>Here are some color combos that work better for color-blind users, with hex codes and notes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vX0bzfA32XBXF18wZC_nrw.png" /></figure><ul><li><strong>Blue + Orange</strong>: Safe for most CVD types, great for binary states (e.g., on/off).</li><li><strong>Yellow + Dark Gray</strong>: High contrast, avoids red-green pitfalls.</li><li><strong>Avoid</strong>: Red + Green, Pink + Gray (too similar for protanopia/deuteranopia).</li></ul><h4>When to Ignore Color Blindness Considerations</h4><p>Sometimes, color blindness doesn’t need to be your top priority. Here’s when you might skip the extra effort:</p><ol><li><strong>Non-Critical UIs</strong>: If it’s a personal portfolio or a hobby project with no real stakes, accessibility might not be urgent — though it’s still good practice.</li><li><strong>Redundant Cues Already Exist</strong>: If your design already uses icons, text, or patterns (e.g., a traffic light with “Stop”/“Go” labels), color’s just a bonus.</li><li><strong>Niche Audience</strong>: If your users are a known group with no CVD (e.g., an internal tool for a small, vetted team), you can lean on color more freely.</li><li><strong>Aesthetic Experimentation</strong>: For art-driven sites where function isn’t key (think a digital gallery), vibe might trump usability — just disclose it.</li></ol><p>Even then, I’d argue basic accessibility is worth it. It’s like locking your front door — small effort, big payoff.</p><h4>Final Thoughts: Design for All</h4><p>Color blindness isn’t a niche issue — it’s a reality for millions. By weaving accessibility into your UI, you’re not just checking a box; you’re building a better web. Test your designs, play with simulators, and pair colors with meaning that doesn’t vanish for 1 in 12 users. For me, it’s shifted how I see design — from a solo creative act to a shared experience. Let’s keep the door open for everyone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=861b942bded1" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/are-you-excluding-color-blind-people-from-your-ui-design-861b942bded1">Are You Excluding Color Blind People from Your UI Design?</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Replacing Humans With AI a Big Mistake?]]></title>
            <link>https://medium.com/design-bootcamp/is-replacing-humans-with-ai-a-big-mistake-d5633440a9fe?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5633440a9fe</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[robotics-automation]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Thu, 22 Jan 2026 16:56:23 GMT</pubDate>
            <atom:updated>2026-02-16T12:14:22.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3dinr3zz93IUB3EQ" /><figcaption>Photo by <a href="https://unsplash.com/@possessedphotography?utm_source=medium&amp;utm_medium=referral">Possessed Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Tesla Microsoft Amazon Google and almost every tech company you can imagine have tried to replace humans with AI. Microsoft announcing it is laying off nearly 4% of its Workforce and the CEO of Amazon said that some of the jobs will be replaced by AI have laid off huge numbers of workers. Tthe new year is not starting off on a happy note for workers that some of the country’s largest tech companies launched their AI and automation developments. Amazon is warning, it’s important that the company as according to org view of senior Business Leaders and Executives 55% of businesses that replaced employees with AI regret it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sYEXlNkFeX0i0wDa" /><figcaption>Photo by <a href="https://unsplash.com/@maxim_?utm_source=medium&amp;utm_medium=referral">Maxim</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Tesla cars but now so human intervention are not new Tesla’s case in 2017 is an early example of the limits of extreme automation the company sought to build the so-called machine that builds the machine. With a production workshop almost entirely automated for the Tesla Model 3. Elon Musk Tesla’s co-founder and CEO has referred to the gigafactory as the machine that builds the machine and it’s all part of his master plan. To make electric cars more affordable the goal was to achieve the production of 5,000 vehicles per week but results were significantly lower due to machinery failures production bottlenecks and systems that did not operate as intended. Robots specialized in tasks such as placing front seats broke down up to five times a day while industry standards show operational intervals exceeding a month without interruptions the combination of new technologies and lack of preventive. Maintenance turn the production line into a fragile system Tesla had to reintegrate Human</p><p>Project where workers replaced the robots tweeted that quote humans are underrated he was referring to Tesla’s experience making its new model 3s with one of the most robotics dependent assembly lines on the planet that grand experiment failed to deliver nearly the number of cars Tesla promised. Production eventually accelerated allowing the company to avoid bankruptcy but this example shows that the efficiency promised by automation can generate organizational fragility when the value of human labor is underestimated with the adoption of advanced language models. Companies began applying this logic to the replacement of intellectual and service tasks including customer service marketing data analysis and content development. For example, implemented chatbots that replace hundreds of Agents reducing its Workforce from 5000 to 2000 employees initially. The company reported that chatbots managed two thirds of interactions but later a decrease in service quality was identified in 2023.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kZk3dmpx2zZMLGou" /><figcaption>Photo by <a href="https://unsplash.com/@donovan_valdivia?utm_source=medium&amp;utm_medium=referral">Andrew Valdivia</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Taco Bell experimented with an automated voice system in 500 locations however the company had to limit its implementation due to errors in orders and billing which affected customer experience and operational efficiency. I don’t know if either of you to have interacted with an AI chatbot customer service thing but it is a nightmare. I want eventually I had to you know what pick up a phone and call a human being Duolingo implemented its system called AI first to replace part of contractors work aiming to improve efficiency and reduce costs. However, the company later reported and noticeable decline in lesson quality with errors affecting up to 42% of content in some courses and causing an 18% drop in user retention during the first quarter after the changes.</p><p>Another example is the Australian company Telstra which replaced 2,800 employees with AI but saw customer response times increase by up to 25% shopping of new employees on proving that AI could not perform certain tasks generating project delays and an internal environment of uncertainty. MIT analysis indicate that only 5% of AI Integrations generate Revenue increases the remaining 95% fail to achieve significant results mainly due to insufficient data and inadequate employee training. In the use of these tools are Outsourcing more and more coding to AI in a productivity push but some new research shows the tools might not be as helpful as some expectations organizational impact is also reflected in employee turnover companies that implemented AI without human supervision. Experienced and average increase of 22% involuntary turnover during the first six months raising recruitment and training costs by 18%. Additionally customer experience was affected with decreased satisfaction and loyalty metrics the fragility of automation is evident when a small AI breakdown can halt entire operations while human intervention can resolve incidents immediately.</p><p>Despite these challenges AI can be complementary if implemented strategically 80% of leaders plan to train their employees in AI tools and 41 percent have increased their Learning and Development budgets and it was really important. Investing a lot into this startups and companies that apply AI gradually and purposefully report productivity increases of up to 35% and operational cost reductions of 27 percent this shows that the combination of AI with human supervision produces better results in logistics. For example route optimization with AI accompanied by human supervision has reduced delivery delays by 18% without compromising customer experience but the implementation of AI and companies has shown mixed results in terms of employee turnover on one hand. Automating repetitive tasks can free employees for more strategic roles reducing burnout and improving retention. On the other hand, the perception that AI can replace jobs can generate job insecurity and increase in like artificial intelligence and changes to the labor market places all over the place.</p><p>AI is also proving not to be as effective on its own a MIT study revealed that only 7% of AI initiatives in companies generate a significant return while the remaining 93% produce no measurable results. This finding underscores the importance of strategic and well-planned AI implementation considering the specific needs of the company and proper integration with existing processes evidence suggests that AI works best when it complements human skills rather than attempting to fully replace them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*twZUqWwzhaeOOi2_" /><figcaption>Photo by <a href="https://unsplash.com/@askkell?utm_source=medium&amp;utm_medium=referral">Andy Kelly</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Resume Builder shows 40% of people using Chat GPT. Companies such as Tesla klarna and IBM demonstrates that organizational resilience depends on the balance between technology and human capacity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5633440a9fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/is-replacing-humans-with-ai-a-big-mistake-d5633440a9fe">Is Replacing Humans With AI a Big Mistake?</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of Controlling Your Mouth, Mood, Money and Mind]]></title>
            <link>https://medium.com/swlh/the-power-of-controlling-your-mouth-mood-money-and-mind-6efc4595a7b5?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6efc4595a7b5</guid>
            <category><![CDATA[money]]></category>
            <category><![CDATA[wealth]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[mindset]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Tue, 13 Jan 2026 01:58:52 GMT</pubDate>
            <atom:updated>2026-01-13T01:58:52.403Z</atom:updated>
            <content:encoded><![CDATA[<p>Jack Ma’s powerful wisdom on self-mastery. Here’s how the control your words, emotions, finances, and thoughts can transform your life and protect your future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mkNnvgXdZXDK9cAE" /><figcaption>Photo by <a href="https://unsplash.com/@giorgiotrovato?utm_source=medium&amp;utm_medium=referral">Giorgio Trovato</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Your mouth is the gateway to your character. Every word you speak has the power to build bridges or burn them down. People often underestimate how much their words shape reputation, influence and relationships. So the first thing to do is…</p><h3>Control Your Mouth</h3><p>One careless comment can ruin trust that has built over years or a single outburst can cost you million dollars opportunities. True strength is not in constant talking but in purposeful communication. Perhaps you noticed that talking to much gets less attention. Learn to pause before you speak as well as listen more than you talk and choose words that build rather than destroy. Even silence, when choosing wisely can be a form of wisdom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RM0WUiuh9G6B2ayg" /><figcaption>Photo by <a href="https://unsplash.com/@matwag?utm_source=medium&amp;utm_medium=referral">Matthias Wagner</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>And remember — your inner dialogue matters just as much. If you constantly feed your mind with doubt or negativity, in a result you’ll live out those words. Speak to yourself with encouragement and watch how your confidence grows.</p><p>Your mood is not just a feeling but it is a force that impacts your choices, relationships and overall destiny. Many people let their emotions control their actions and walking away from opportunities and ends up saying the wrong things or quitting too soon. So you should..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UNXJHsV2SIKgLIdp" /><figcaption>Photo by <a href="https://unsplash.com/@ryansnaadt?utm_source=medium&amp;utm_medium=referral">Ryan Snaadt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Control Your Mood</h3><p>The key is to train yourself to act through emotions but not on emotions. You might discover that calmness in chaos is not weakness but emotional strength. Your moods are contagious, your energy affects everyone around you. One negative attitude can poison an entire team while a grounded presence can inspire trust and confidence.</p><p>People should be practical on strategies include pausing before reacting, re-framing challenges as lessons instead of failures and surrounding yourself with emotionally mature people. Ultimately, how you manage your feelings determines how people remember you.</p><p>Money isn’t everything but it touches everything. Your freedom, your lifestyle and opportunities all depend on how you manage your wallet. The biggest mistake people make is about thinking that more income solves money problems. While in reality, money problems come from habits not amounts. The important thing is to…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kf_PLd7IrMy4xqqS" /><figcaption>Photo by <a href="https://unsplash.com/@adamnir?utm_source=medium&amp;utm_medium=referral">Adam Nir</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Control Your Money</h3><p>If you can not manage a little you will not be able to manage a lot. Wealth is about discipline like tracking spending, avoiding impulsive purchases and knowing the difference between assets and liabilities. Assets put money in your pocket while liabilities take it out.</p><p>You can start with small budget, automate savings or you can build an emergency fund and delay gratification. Every dollar is like a soldier so give it a purpose and let it work for you. Make money your servant not your master. You control it rather it controlling you.</p><p>Your mind is the command centre of your life. Every decision, action and word begins with a thought. If your mind is undisciplined your results will reflect it. You have to…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4wOEExAaS8B-yTab" /><figcaption>Photo by <a href="https://unsplash.com/@trebron?utm_source=medium&amp;utm_medium=referral">Norbert Kundrak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Control Your Mind</h3><p>Most people allow negativity, fear and distraction to run unchecked. But your mind is programmable sot feed it wisdom, focus and purpose. In result it will guide you toward clarity and success.</p><p>Try to train yourself to challenge negative thoughts as well as ask if they are facts or just fear. Guard your inputs like the books you read, conversations you join and content you consume. Mental discipline is about focus, resilience and self-control.</p><p>True strength isn’t pretending everything is positive rather it’s being grounded enough to face reality without falling apart. Your self-control builds self-respect and self-respect builds lasting success.</p><p>So, We can summarise by saying</p><p>When you learn to control your <strong>mouth,</strong> you protect your reputation.<br>When you control your <strong>mood,</strong> you protect your peace.<br>When you control your <strong>money</strong>, you protect your future.<br>When you control your <strong>mind</strong>, you protect everything.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6efc4595a7b5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-power-of-controlling-your-mouth-mood-money-and-mind-6efc4595a7b5">The Power of Controlling Your Mouth, Mood, Money and Mind</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Color Coding and How Hues Shape Web Design]]></title>
            <link>https://medium.com/swlh/the-art-of-color-coding-and-how-hues-shape-web-design-a544d0a887a1?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a544d0a887a1</guid>
            <category><![CDATA[art]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[colors]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Thu, 27 Feb 2025 12:21:23 GMT</pubDate>
            <atom:updated>2025-02-27T12:21:23.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vtz6t5zVAy3Xq1cZ" /><figcaption>Photo by <a href="https://unsplash.com/@ro_ka?utm_source=medium&amp;utm_medium=referral">Robert Katzki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>What’s the first thing that catches your eye when you land on a website?</p><p>For most of us it is not the text or the layout. It’s the colors.</p><p>They set your mood, guide your attention, and also whisper a little something to your brain about the brand before you read a single word.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJaWYF8DrwCnrCcYrT6Pxw.png" /></figure><p>Color isn’t just decoration in web design rather it’s a language all its own. It can make a site not only beautiful but intuitive and unforgettable. Let’s dive into the world of color coding in web design and explore how it shapes your digital experiences</p><h3>The Psychology Behind the Palette</h3><p>Colors are not random like whichever I pick, It’s ok. They carry meaning. They rooted deep in human psychology and culture. If you think about the three basic colors</p><p><strong>Red, </strong>which<strong> </strong>screams urgency or passion. Think “sale” buttons or Netflix’s bold branding.</p><p><strong>Blue</strong>, on the other hand, feels calm and trustworthy. that is why you’ll see it splashed across sites like LinkedIn or your bank’s homepage.</p><p><strong>Green</strong> often ties to nature or growth, making it a go-to for eco-friendly brands or wellness apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G1V7pm5RX6cutVPz5rDhEQ.png" /></figure><p>Before a designer picks a hue, they might ask themselves — What do I want the user to feel?</p><p>But it’s not just about emotion. Colors also help us navigate. Have you ever noticed how call to action buttons like “<strong>Sign Up</strong>” or “<strong>Buy Now</strong>” are often bright and contrasting?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*IhU4uMjRlTaqollXZRTmWg.png" /></figure><p>That’s color coding at work, subtly (or not so subtly) telling you where to click.</p><h3>Building a Cohesive Color Scheme</h3><p>So, how do designers choose the right colors? It starts with the brand. If a company’s logo is sunny yellow and slate gray, the website’s probably going to riff off that. But it’s not enough to slap those colors everywhere and call it a day. A cohesive scheme usually pulls from a small palette — say, two or three main colors, plus a couple of accents. This keeps things clean and consistent.</p><p>Take a site like <strong>Dropbox</strong>. Its design leans on soft blues and crisp whites, with pops of yellow for emphasis. The blue ties to reliability (perfect for a file-storage service), the white keeps it airy and modern, and the yellow nudges you toward key actions.</p><p>Contrast that with a site like <strong>Spotify. W</strong>here dark backgrounds, neon greens, and bold whites create a vibey, music driven feel. Like your audio player app. Both work because the colors aren’t random, they’re coded to match the brand’s personality and purpose.</p><p>Designers often lean on tools like the color wheel to nail this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_as5GA79CeoX3dKl.jpg" /></figure><p>Complementary colors (opposites, like blue and orange) create punchy contrast, while analogous colors. For instance, neighbors like blue and green feel harmonious.</p><p>There’s the 60–30–10 rule you might know, where 60% of the site in a dominant color, 30% in a secondary shade, and 10% for accents. It’s a simple trick to balance vibrancy and restraint.</p><h3>Accessibility of Color That Includes Everyone</h3><p>Here’s where it gets real</p><p>Color isn’t just about aesthetics or branding, it’s about usability. According to statistics, 1 in 12 men and 1 in 200 women have some form of color blindness. So a site that relies solely on color to convey meaning can leave people lost. If you imagine a form where “required fields” are marked only with red text. And what if you can’t see red, you’re stuck.</p><p>Smart designers pair color with other cues — like icons, underlines, or bold text to make sure the message gets across. They also test contrast ratios.</p><p>Have you ever squinted at light gray text on a white background? That’s a contrast fail. The Web Content Accessibility Guidelines (WCAG) recommend a minimum contrast ratio of 4.5:1 for text to be legible. Tools like contrast checkers help designers tweak hues until they’re both pretty and practical.</p><h3>Trends That Pop (But Don’t Overstay)</h3><p>Color trends in web design shift like fashion. Can you remember the early 2000s with those garish gradients and blinking banners? We’ve come a long way. Today, it’s all about minimalism with a twist. Think muted pastels paired with a single bold accent, or dark-mode interfaces with electric highlights. I am mentioning Duotone effects, where two colors overlay an image, are still hanging around, giving sites a retro-modern edge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TCQEl38d44WE-bE7SncVLQ.png" /></figure><p>But trends aren’t gospel. A neon-heavy palette might scream “cutting-edge” for a tech startup, but it’d feel jarring on a meditation app. The best designers know when to nod at what’s hot and when to stick to what works for the user.</p><h3>Coding Color Into the Experience</h3><p>On the technical side, color coding isn’t just visual — it’s literal. CSS breathes life into the palette with hex codes, RGB values, or HSL tweaks. A button might start as #FF5733 (a fiery orange) but hover at #E84C2D (a deeper shade) to signal interaction. Designers and developers work hand-in-hand here, ensuring the colors don’t just look good in a mockup but translate seamlessly to screens of all sizes and brightness levels.</p><p>And speaking of screens, color consistency is a beast. What looks vibrant on your MacBook might wash out on a cheap monitor. Pros calibrate their schemes with this in mind, often testing across devices to avoid surprises.</p><h3>The Emotional Payoff</h3><p>At its core, color coding in web design is about connection. It’s the difference between a site that feels like a sterile template and one that feels alive.</p><p>When <strong>Airbnb</strong> uses warm corals and earthy tones, it’s not just pretty, it’s an invitation to explore, to feel at home anywhere. When a <strong>gaming</strong> site blasts you with electric purples and blacks, it’s pumping you up for the action.</p><p><strong>Next time you’re scrolling, take a second to notice. Why does that “Add to Cart” button grab you?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a544d0a887a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-art-of-color-coding-and-how-hues-shape-web-design-a544d0a887a1">The Art of Color Coding and How Hues Shape Web Design</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elon Musk Unleashes Grok 3 — the latest marvel from xAI]]></title>
            <link>https://medium.com/swlh/elon-musk-unleashes-grok-3-the-latest-marvel-from-xai-0c3038833f78?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c3038833f78</guid>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[elon-musk]]></category>
            <category><![CDATA[grok]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Tue, 25 Feb 2025 17:44:49 GMT</pubDate>
            <atom:updated>2025-03-22T12:59:25.506Z</atom:updated>
            <content:encoded><![CDATA[<h3>Elon Musk Unleashes Grok 3 — the latest marvel from xAI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfL3mH9ofNtaDnprtdLtPA.jpeg" /></figure><p><strong>Grok 3</strong>, The Next Leap in AI Innovation. The Grok journey began back in 2023 when xAI, founded by Elon Musk, set out to create an AI that could assist humans in understanding the universe. The first Grok model launched in November 2023, inspired by the wit of <em>The Hitchhiker’s Guide to the Galaxy</em> and the futuristic vision of JARVIS from <em>Iron Man</em>.</p><p>Grok 2 followed, bringing improvements in reasoning and real-time data integration via the X platform. By mid-2024, it was already outperforming some big names in the AI world. But xAI didn’t stop there. On February 18, 2025, Grok 3 was unveiled — claiming as the “smartest AI on Earth” by Musk himself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3LtRWzD-SL8a8EsjO154_g.jpeg" /></figure><p>According to Musk and three of xi’s engineers, grock 3 is an order of magnitude better than <strong>Grok 2</strong> which basically means it’s about 10 times more powerful. XAI says they trained it in a massive Data Center in Memphis Tennessee featuring around 200,000 Graphics processing units imagine a huge facility with Road and rows of GPUs churning through data 24/7.</p><p>According to xai’s internal benchmarks Grok 3 actually beats all the competitors in areas like math, science and coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wb0fQync4Wuar43q.png" /></figure><p>It’s not not just a single model there’s a whole family under that umbrella we’ve got Grok 3 and Grok 3 mini plus a standard Grok 3 and a mini version the reasoning models are designed for more complex thought processes basically Chain of Thought prompting that allows the AI to explain.</p><p>However, xAI has hinted at ongoing updates and a potential “SuperGrok” subscription tier, which might include enhanced or experimental features, but these aren’t distinct versions of Grok 3 itself — they’re more like service tiers or add-ons.</p><p>Twitter and xai developers have optimized this model for maximum truth seeking even if that comes at the expense of being politically correct and that means you can use it to do things like generate images of celebrities</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*2w9zCVyb0nq6UZJdtZze6w.png" /></figure><p>I also tried “Generate image of elon musk eating sushi”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G0iRN9ReiTuPnMeMdYeYFA.jpeg" /></figure><p>It’s funny…</p><p>Grok 3 also comes with feature like</p><ul><li><strong>Think Mode</strong>: This is wild — it actually walks you through its thought process. I asked it a tricky math problem, and it broke it down like a friend explaining homework.</li><li><strong>DeepSearch</strong>: It’s like having a research assistant. I asked about a news story, and it dug up web articles and X posts in seconds, tying it all together.</li><li><strong>Big Brain Mode</strong>: For the heavy stuff — like coding or science — it cranks up the power. I had it debug a Python script, and bam, done.</li><li><strong>Real-Time X Vibes</strong>: It’s plugged into X, so it’s always up on what’s trending or breaking.</li></ul><p>However, there are some controversy about Grok. LIke, Bias and shifting responses, Free speech vs. Internal policies, Data accuracy and real-time information. It made a headline on newspapers, “Elon Musk’s AI, Grok 3, ranks him, Donald Trump, JD Vance among America’s most harmful”. That is just a statement from the GPT model.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c3038833f78" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/elon-musk-unleashes-grok-3-the-latest-marvel-from-xai-0c3038833f78">Elon Musk Unleashes Grok 3 — the latest marvel from xAI</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is Algorithmic Bias in AI and How Can We Fix It?]]></title>
            <link>https://medium.com/swlh/what-is-algorithmic-bias-in-ai-and-how-can-we-fix-it-483cc6087660?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/483cc6087660</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[bias-in-ai]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Tue, 25 Feb 2025 14:25:58 GMT</pubDate>
            <atom:updated>2025-02-25T14:25:58.645Z</atom:updated>
            <content:encoded><![CDATA[<p>As we depend more on AI for decision-making, we must confront the growing challenge of algorithmic bias — its causes, its real-world impact, and how we can reduce it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F4OvcqaFEoq7gw6n" /><figcaption>Photo by <a href="https://unsplash.com/@allthestars?utm_source=medium&amp;utm_medium=referral">Sophie Dale</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The more we use AI algorithms to discover patterns or generate insights just to help us make decisions, the more we should be concerned with the impact of <strong>algorithmic bias</strong>. So, what is it and how can we minimize it?</p><p>Algorithmic bias can lead to harmful decisions and actions that cause machine learning algorithms to produce unfair or discriminatory outcomes. It’s something we want to avoid. There are some causes that occure algorithmic bias.</p><p>Let’s point out to the causes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*263W-2Q6lZqBtv2yewLUHQ.jpeg" /><figcaption>added from <a href="https://makeameme.org/">https://makeameme.org/</a></figcaption></figure><p>Algorithmic bias is not necessarily caused by the AI algorithms themselves, but by how data is collected and coded. Here I am pointing to …</p><h4>Bad Data</h4><p>The most obvious is biases that occur in the actual training dataset itself. That data is in some other way a misrepresentation of the ground truth. It can also be data that is incorrectly classified, causing the algorithm to misunderstand what the data represents, and a little bad data can go a long way. AI systems that generate biased results may use those results as input data for further decision making, and while that creates a feedback loop that can reinforce this bias over and over again.</p><p>Now, another cause of algorithmic bias is really related to..</p><h4><strong>Algorithmic Design</strong>.</h4><p>I am talking about programing errors such as, an AI designer unfairly weighting factors in the decision making process. They can unknowingly transfer into the system some of those biases, where developers might embed the algorithm with subjective rules based on their own conscious or unconscious biases.</p><p><strong>Poor algorithmic design</strong> that can also lead to correlation bias, such as an algorithm that determines a causal relationship between <strong>increased shark attacks</strong> and <strong>higher ice cream sales</strong>. They’re both higher in the summer. That’s correlation, not causation is an example of where the model failed to consider other factors in the data that may be of more importance.</p><p>We can also point to..</p><h4><strong>Biases in Proxy Data</strong></h4><p><strong>What’s proxy data</strong>? Well, that’s data used as a stand in for attributes not available in the ground truth data. So things like race or gender. That could be because they’re in some way protected or they just plain unavailable.</p><p>For example, zip codes often serve as proxies for social economic status, that might unfairly disadvantage particular demographic groups when evaluating applications or opportunities.</p><p>There’s also who deserve to be pointed, is..</p><h4><strong>Biases in Evaluation</strong></h4><p>Even if the algorithm is completely neutral and it’s completely data driven, how a business applies the algorithms output that can lead to unfair outcomes, depending on how they understand those outputs.</p><p>For example, A hiring algorithm may fairly rank candidates based on skills. But if a company only interviews the top three, it might unintentionally exclude diverse talent.</p><p>So, there are a bunch of real world examples of algorithmic bias. I can not explain all of them, but let’s briefly discuss a few high profile ones, like</p><p>Biases that have occurred in recruitment. Let’s consider an IT company built an algorithm, and that algorithm could review resumes. Unfortunately, they discovered this algorithm systematically discriminated against female job applicants. As a result, the algorithm favored keywords and characteristics found in men’s resumes. For example, the algorithm downgraded resumes that included the word women, as in women’s rugby team, and it favored the kind of words that men tend to use more often, such as captured and executed.</p><p>In the financial services sector and algorithmic bias here can have severe consequences for people’s livelihoods, as historical data can contain all sorts of demographic biases affecting things like credit worthiness and loan approvals.</p><p>I could go on AI image generator, for example, where generated images of people in specialized professions found biases related to gender and age, or how bias in pricing led to ride sharing algorithms charging more for drop offs in neighborhoods with high nonwhite populations.</p><p><strong>Now, We need to figure out the steps that we can take to reduce algorithmic bias</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W8yOoUwbBX3kTTUJ" /><figcaption>Photo by <a href="https://unsplash.com/@alschim?utm_source=medium&amp;utm_medium=referral">Alexander Schimmeck</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Mitigating bias from AI systems, that starts with AI governance. Many of the guardrails that make sure air tools and systems are safe and ethical. So let’s take a look at four ways to fix it</p><h4><strong>Diverse and Representative Data</strong></h4><p>Machine learning is only as good as the data that trains it. Data fed into machine learning models must be representative of all groups of people and reflected of the actual demographics of society. A good representative data is just the good start.</p><p>There should also be a system for ongoing..</p><h4><strong>Bias Detection</strong></h4><p>That can detect and correct potential biases before they create problems. That could be through initiatives like impact assessments, algorithmic auditing and causation tests.</p><p>Remember sharks and ice cream? Now, this is where human in the loop processes can help, where recommendations be reviewed by humans before a decision is made final.</p><h4><strong>Transparent AI</strong></h4><p>Those systems document and do their best to explain the underlying algorithms methodology. To be clear, this is still an emerging field, but advances are being made in AI interpretability, which goes some way to explaining how algorithms arrive at their outcomes.</p><p>And then finally we can add</p><h4>I<strong>nclusive AI</strong></h4><p>Which means developing AI systems where the developers, where the data scientists, where the machine learning engineers are varied racially, economically, by education level, by gender, by job description and all sorts of other demographic metrics.</p><p>This will bring different perspectives to help identify and mitigate biases that might otherwise go unnoticed.</p><p><strong>The fact</strong> is that algorithmic bias has many causes, and as AI becomes more prevalent in decision making, the importance of detecting and mitigating these biases only grows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-YcstuIcDU14iV1m" /><figcaption>Photo by <a href="https://unsplash.com/@gcalebjones?utm_source=medium&amp;utm_medium=referral">Caleb Jones</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=483cc6087660" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/what-is-algorithmic-bias-in-ai-and-how-can-we-fix-it-483cc6087660">What Is Algorithmic Bias in AI and How Can We Fix It?</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EF Core vs Dapper — Choose the Right Tool for you]]></title>
            <link>https://medium.com/swlh/ef-core-vs-dapper-choose-the-right-tool-for-you-1ddb2a50df46?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ddb2a50df46</guid>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[dapper]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[ef-core]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 11:01:21 GMT</pubDate>
            <atom:updated>2025-02-24T11:01:21.274Z</atom:updated>
            <content:encoded><![CDATA[<h3>EF Core vs Dapper — Choose the Right Tool for you</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYCtR4qO_-u-Jn-fbEV-5A.png" /></figure><p>When you work with databases in .NET applications you will find two popular approaches, they are <strong>Entity Framework Core (EF Core)</strong> and <strong>Dapper</strong>. Both have their strengths and weaknesses to make them suitable for different scenarios. Here I tried to compare EF Core and Dapper in terms of <strong>performance</strong>, <strong>code simplicity</strong>, <strong>flexibility</strong>, and <strong>best practices.</strong></p><p>What is EF Core and Dapper ? Lets introduce them first..</p><h3>1. Introducing them…</h3><h4>Entity Framework Core (EF Core)</h4><p>An <strong>Object-Relational Mapper (ORM) </strong>EF Core provides a high-level abstraction over database operations. It allows developers to interact with databases using <strong>LINQ queries</strong> and <strong>strongly typed models</strong>. It has some pros and cons too, like other things in the universe.</p><p><strong>Pros are:</strong></p><ul><li>It will help you to simplify database interactions</li><li>Supports migrations and change tracking</li><li>Also works well with complex domain models</li><li>You will get built-in support for multiple database providers</li></ul><p><strong>Cons:</strong></p><ul><li>Slower than raw SQL due to abstraction overhead</li><li>Higher memory consumption is a big problem</li></ul><h3>Dapper</h3><p>Dapper is a <strong>micro-ORM</strong> that acts as a thin abstraction over raw SQL queries. It is known for its speed and efficiency while maintaining some convenience of an ORM.</p><p><strong>Pros:</strong></p><ul><li>It is extremely fast due to direct SQL execution</li><li>Minimal memory footprint</li><li>Also provides more control over SQL queries and you can add stored procedures as well</li></ul><p><strong>Cons:</strong></p><ul><li>No built-in change tracking, so you can’t track like EF Core</li><li>No automatic migrations, have to write and relate database queies</li><li>Requires manual mapping of relationships</li></ul><p>Now, Lets dig into..</p><h3>Performance Comparison…</h3><h4>Benchmark Test</h4><p>We will compare EF Core and Dapper by executing a simple <strong>SELECT</strong> query on a database with 100,000 rows.</p><p><strong>Database Schema:</strong></p><pre>CREATE TABLE Users (<br>    Id INT PRIMARY KEY IDENTITY,<br>    Name NVARCHAR(100),<br>    Email NVARCHAR(100),<br>    Age INT<br>);</pre><h4>EF Core Query:</h4><pre>using (var context = new ApplicationDbContext())<br>{<br>    var users = await context.Users.Where(u =&gt; u.Age &gt; 25).ToListAsync();<br>}</pre><h4>Dapper Query:</h4><pre>using (var connection = new SqlConnection(_connectionString))<br>{<br>    var users = await connection.QueryAsync&lt;User&gt;(&quot;SELECT * FROM Users WHERE Age &gt; @Age&quot;, new { Age = 25 });<br>}</pre><h4>Performance Results:</h4><p>QueryExecution TimeEF Core: 120ms &amp; Dapper: 35ms</p><p>As seen above, <strong>Dapper is significantly faster</strong> for raw queries because it doesn’t include additional overhead like <strong>change tracking</strong> and <strong>query translation</strong>.</p><p>However, Several studies and benchmarks have highlighted the performance differences between full-fledged ORMs like EF Core and micro-ORMs like Dapper. According to Microsoft and independent developers, EF Core introduces performance overhead due to query translation, tracking, and object mapping. Studies such as “Performance of ORMs in Large-Scale Applications” indicate that <strong>micro-ORMs like Dapper</strong> can significantly reduce execution time in read-heavy operations.</p><p>Moreover, an in-depth analysis by JetBrains suggests that while <strong>EF Core is optimized for developer productivity</strong>, its additional processing layers make it less performant for large dataset retrieval. Dapper’s direct SQL execution leads to minimal latency, making it an ideal choice for performance-critical applications.</p><p>Another key factor affecting performance is how queries are optimized within each framework. EF Core’s query optimization relies on <strong>LINQ-to-SQL translation</strong>, which introduces an additional processing step, whereas Dapper directly executes SQL commands. The use of <strong>indexes, compiled queries, and caching mechanisms</strong> can significantly improve EF Core’s performance, making it more competitive with Dapper in certain scenarios.</p><h3>When to Use ?</h3><h4>Use EF Core when:</h4><ul><li>You need <strong>full-fledged ORM features</strong> like <strong>change tracking, migrations, lazy loading,</strong> and <strong>relationship management</strong>.</li><li>You are working on a <strong>complex domain model</strong> with many <strong>relationships</strong>.</li><li>You prefer writing queries in <strong>LINQ</strong> instead of raw SQL.</li><li>You want a built-in <strong>support for multiple databases</strong>.</li></ul><h4>Use Dapper when:</h4><ul><li>You need <strong>high-performance data access</strong>, especially for read-heavy operations.</li><li>You prefer writing optimized <strong>raw SQL queries</strong>.</li><li>You are dealing with <strong>large datasets</strong> where EF Core’s overhead may slow down execution.</li><li>You don’t need features like <strong>change tracking</strong> or <strong>automatic migrations</strong>.</li></ul><h3>Best Practices for EF Core and Dapper</h3><h4>Best Practices for EF Core:</h4><p><strong>1. Use AsNoTracking() for Read-Only Queries</strong></p><pre>var users = await context.Users.AsNoTracking().Where(u =&gt; u.Age &gt; 25).ToListAsync();</pre><p><strong>2. Batch Updates Instead of Looping</strong></p><pre>context.Users.Where(u =&gt; u.Age &gt; 30).ExecuteUpdate(u =&gt; u.SetProperty(x =&gt; x.Age, x =&gt; x.Age + 1));</pre><p><strong>3. Index Your Database Properly</strong> to optimize query performance.</p><h4>Best Practices for Dapper:</h4><p><strong>1. Use Parameterized Queries to Prevent SQL Injection</strong></p><pre>var users = await connection.QueryAsync&lt;User&gt;(&quot;SELECT * FROM Users WHERE Age &gt; @Age&quot;, new { Age = 25 });</pre><p><strong>2. Use Multi-Mapping for Complex Queries</strong></p><pre>var sql = &quot;SELECT * FROM Orders o INNER JOIN Customers c ON o.CustomerId = c.Id&quot;; var orders = connection.Query&lt;Order, Customer, Order&gt;(sql, (order, customer) =&gt; {     order.Customer = customer;     return order; }, splitOn: &quot;Id&quot;);</pre><p><strong>3. Use Dapper with Repository Pattern</strong> to keep queries organized.</p><h3>Combining EF Core and Dapper</h3><p>combining both of them we say it a <strong>hybrid approach</strong>. Using them together can be beneficial in scenarios like, you need both <strong>ORM convenience</strong> and <strong>performance optimization</strong>. For example, you can use EF Core for complex object-relational mapping and Dapper for high-performance queries.</p><pre>public class UserRepository<br>{<br>    private readonly ApplicationDbContext _context;<br>    private readonly SqlConnection _connection;<br><br>    public UserRepository(ApplicationDbContext context, string connectionString)<br>    {<br>        _context = context;<br>        _connection = new SqlConnection(connectionString);<br>    }<br><br>    public async Task&lt;User&gt; GetUserEfCore(int id) =&gt; await _context.Users.FindAsync(id);<br><br>    public async Task&lt;IEnumerable&lt;User&gt;&gt; GetUsersDapper(int age)<br>    {<br>        return await _connection.QueryAsync&lt;User&gt;(&quot;SELECT * FROM Users WHERE Age &gt; @Age&quot;, new { Age = age });<br>    }<br>}</pre><p>Microsoft’s architectural recommendations for high-performance .NET applications suggest that combining ORMs can help mitigate performance issues without sacrificing maintainability (<a href="https://download.microsoft.com/download/a/7/e/a7ea6fd9-2f56-439e-a8de-024c968f26d1/ScaleNet.pdf">source</a>).</p><p>By selectively using EF Core for <strong>CRUD operations and relationship management</strong>, and Dapper for <strong>performance-critical queries</strong>, developers can achieve a balance between <strong>efficiency and simplicity</strong>. This approach aligns with best practices in software architecture, where choosing the appropriate tools based on specific use cases helps in building high-performing applications.</p><h3>Summary</h3><p>Choosing between EF Core and Dapper isn’t about which one is better overall, but which one is best for your specific needs.</p><p>Here I added a table for understanding which one is good for what</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*2WsoRBibFHvLLsXvdtYg8g.png" /></figure><p>If you’re working on a complex application with many relationships and need features like migrations and change tracking, <strong>EF Core</strong> is the way to go. However, if speed and efficiency are your main concerns, especially for read-heavy operations, <strong>Dapper</strong> is the superior choice.</p><p>That said, many real-world applications benefit from a <strong>hybrid approach </strong>using EF Core for structured operations and Dapper for high-performance querying.</p><h3>Happy Coding 🎉🎉🎉</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ddb2a50df46" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/ef-core-vs-dapper-choose-the-right-tool-for-you-1ddb2a50df46">EF Core vs Dapper — Choose the Right Tool for you</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mongo DB Schema Design Anti-Patterns — Part 2]]></title>
            <link>https://javascript.plainenglish.io/mongo-db-schema-design-anti-patterns-part-2-1b4ee86288b1?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b4ee86288b1</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 22:17:36 GMT</pubDate>
            <atom:updated>2025-02-17T01:30:02.227Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mongo DB Schema Design Anti-Patterns — Part 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GFEzIcDyxiVA2L1A9i1xSQ.png" /></figure><p>Previously I discussed about the first three</p><ol><li>Massive arrays</li><li>Massive number of collections</li><li>Unnecessary indexing</li></ol><p>if you are interested about know, you can visit</p><p><a href="https://almamunx.medium.com/mongo-db-schema-design-anti-patterns-part-1-4a56ca5d265e">Mongo DB Schema Design Anti-Patterns — Part 1</a></p><p>Now, let’s move on to the next…</p><h3>4. Bloated documents</h3><p>The <strong>“Bloated Documents”</strong> anti-pattern occurs when a MongoDB document contains too much data that is <strong>related but not accessed together frequently</strong>. This can lead to inefficient queries and memory management issues because unnecessary data gets loaded into memory, slowing down performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3h-ul0Glf4RASK7v" /><figcaption>Photo by <a href="https://unsplash.com/@randyfath?utm_source=medium&amp;utm_medium=referral">Randy Fath</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You might remember the rule from previous post which is, “Data that is <strong>accessed</strong> together should be stored together”. Note that it doesn’t say, Data that is <strong>related</strong> to each other should be stored together</p><p>Sometimes data that is related to each other isn’t actually accessed together you might have a large bloated documents that contain information that is related not actually access together frequently.</p><p>Imagine a website that stores information about inspirational women. The <strong>wrong approach</strong> would be to store all data in a single large document.</p><pre>//Bloated Document (Incorrect Approach)<br><br>{<br>  &quot;_id&quot;: &quot;sally_ride&quot;,<br>  &quot;first_name&quot;: &quot;Sally&quot;,<br>  &quot;last_name&quot;: &quot;Ride&quot;,<br>  &quot;birth_year&quot;: 1951,<br>  &quot;death_year&quot;: 2012,<br>  &quot;biography&quot;: &quot;Sally Ride was an American astronaut... (several KB of text)&quot;,<br>  &quot;achievements&quot;: [<br>    &quot;First American woman in space&quot;,<br>    &quot;NASA Space Flight Medal&quot;<br>  ],<br>  &quot;quotes&quot;: [<br>    &quot;Science is fun. Science is curiosity.&quot;<br>  ],<br>  &quot;related_links&quot;: [<br>    &quot;https://www.nasa.gov/sallyride&quot;,<br>    &quot;https://en.wikipedia.org/wiki/Sally_Ride&quot;<br>  ]<br>}</pre><h4>Issues with This Approach:</h4><ul><li><strong>Bloated Documents:</strong> Each document includes <strong>large text fields (biography, achievements, quotes)</strong>, increasing size.</li><li><strong>Slow Queries:</strong> If only a list of names is needed for the homepage, the query still loads unnecessary data.</li><li><strong>Memory Problems:</strong> Large documents <strong>exceed the working set</strong> in memory, causing frequent disk reads.</li></ul><h4><strong>Optimized Approach (Using Separate Collections)</strong></h4><p>To improve performance, we can <strong>split the data into separate collections</strong>: inspirational_women_summary and inspirational_women_details.</p><pre>//Summary Collection (Frequently Accessed Data)<br><br>{<br>  &quot;_id&quot;: &quot;sally_ride&quot;,<br>  &quot;first_name&quot;: &quot;Sally&quot;,<br>  &quot;last_name&quot;: &quot;Ride&quot;<br>}</pre><pre>//Details Collection (Rarely Accessed Data)<br><br>{<br>  &quot;_id&quot;: &quot;sally_ride_details&quot;,<br>  &quot;inspirational_woman_id&quot;: &quot;sally_ride&quot;,<br>  &quot;birth_year&quot;: 1951,<br>  &quot;death_year&quot;: 2012,<br>  &quot;biography&quot;: &quot;Sally Ride was an American astronaut...&quot;,<br>  &quot;achievements&quot;: [<br>    &quot;First American woman in space&quot;,<br>    &quot;NASA Space Flight Medal&quot;<br>  ],<br>  &quot;quotes&quot;: [<br>    &quot;Science is fun. Science is curiosity.&quot;<br>  ],<br>  &quot;related_links&quot;: [<br>    &quot;https://www.nasa.gov/sallyride&quot;,<br>    &quot;https://en.wikipedia.org/wiki/Sally_Ride&quot;<br>  ]<br>}</pre><h4>Benefits of This Approach:</h4><ul><li><strong>Homepage loads faster</strong> because it only queries inspirational_women_summary (small dataset).</li><li><strong>Memory-efficient</strong> since the working set now fits in RAM.</li><li><strong>Biographies and details are only loaded when needed</strong>, reducing unnecessary data transfers.</li><li><strong>Easier scalability</strong> when adding more details in the future.</li></ul><h4>Querying the Data (Fetching a List of Names “Fast Query”)</h4><pre>// Fetch only names for the homepage<br>const names = db.inspirational_women_summary.find({}, { first_name: 1, last_name: 1 });</pre><h4>Fetching Full Details for a Specific Person</h4><pre>// Fetch additional details only when needed<br>const details = db.inspirational_women_details.findOne({ inspirational_woman_id: &quot;sally_ride&quot; });</pre><h4>Summary</h4><p>✅ <strong>DO</strong> store <strong>only frequently accessed data</strong> in your main document.</p><p>❌ <strong>DON’T</strong> store <strong>rarely accessed, large data fields</strong> in the same document.</p><p>✅ <strong>DO</strong> use <strong>separate collections</strong> and <strong>references</strong> for less frequently accessed data.</p><p>✅ <strong>DO</strong> ensure your <strong>working set fits within the WiredTiger cache</strong> for optimal performance.</p><p>Let’s move on to..</p><h3>5. Case-insensitive queries without Case-insensitive indexes</h3><p>Here, I’m talking about querying for a string and I don’t care about matching on the letter case . For example if I’m wearing for the word <strong>dog</strong> I don’t care if it’s stored in the database with a capital D (Dog) or with a lowercase D (dog) or if someone did something ridiculous and spelled it with a capital O (dOg) in the middle. I want all of those results to be returned. That is a case insensitive query.</p><p>Not having a case insensitive index can create surprising query results or slow queries and make you hate everything</p><p>When querying MongoDB for string values without considering case, developers often rely on regular expressions with the i (case-insensitive) flag. However, this can lead to inefficient queries because regular expressions <strong>cannot</strong> fully utilize indexes, resulting in poor performance. Additionally, standard equality queries (find({ field: value })) are case-sensitive unless configured otherwise, leading to incomplete or incorrect results if case variations exist in the stored data.</p><h4>How This Anti-Pattern Occurs</h4><p>There are two main ways this issue manifests:</p><p><strong>1. Using Regular Expressions (</strong><strong>$regex: &#39;value&#39;, $options: &#39;i&#39;)</strong></p><ul><li>This ensures case-insensitive matching but <strong>prevents</strong> full index utilization, leading to <strong>slow</strong> queries.</li></ul><p><strong>2. Using Equality Queries Without Case-Insensitive Indexes</strong></p><ul><li>This results in case-sensitive matches, causing incomplete results unless data is consistently stored in a specific format.</li></ul><h4>Example Dataset</h4><p>Consider a MongoDB collection users with the following documents:</p><pre>{<br>    &quot;_id&quot;: 1,<br>    &quot;name&quot;: &quot;Alice&quot;<br>}<br>{<br>    &quot;_id&quot;: 2,<br>    &quot;name&quot;: &quot;alice&quot;<br>}<br>{<br>    &quot;_id&quot;: 3,<br>    &quot;name&quot;: &quot;ALICE&quot;<br>}</pre><h4>Inefficient Case-Insensitive Query using $regex</h4><p>A common approach developers use to perform case-insensitive queries is:</p><pre>db.users.find({ name: { $regex: &quot;^alice$&quot;, $options: &quot;i&quot; } });</pre><h4>Why is this a Problem?</h4><ul><li>The $regex query scans all documents because <strong>regular expressions cannot efficiently use indexes</strong>.</li><li>Performance degrades as the dataset grows.</li><li>The query planner cannot optimize execution, leading to full collection scans.</li></ul><h4>Explain Plan Analysis</h4><p>To understand the performance hit, run:</p><pre>db.users.find({ name: { $regex: &quot;^alice$&quot;, $options: &quot;i&quot; } }).explain(&quot;executionStats&quot;);</pre><p>Output (Simplified):</p><pre>{<br>  &quot;executionStages&quot;: {<br>    &quot;stage&quot;: &quot;COLLSCAN&quot;,<br>    &quot;nReturned&quot;: 3,<br>    &quot;totalKeysExamined&quot;: 0,<br>    &quot;totalDocsExamined&quot;: 3<br>  }<br>}</pre><ul><li><strong>stage: COLLSCAN</strong> → Indicates a <strong>collection scan</strong> instead of an indexed search.</li><li><strong>totalDocsExamined: 3</strong> → All documents are examined.</li><li><strong>totalKeysExamined: 0</strong> → No index was used.</li></ul><h4>Proper Solution: Case-Insensitive Indexing</h4><p>Instead of using $regex, we should create a <strong>case-insensitive index</strong> using <strong>collation</strong>.</p><h4>Step 1: Create a Case-Insensitive Index</h4><pre>db.users.createIndex(<br>    { name: 1 },<br>    { collation: { locale: &quot;en&quot;, strength: 2 } }<br>);</pre><ul><li><strong>locale: &quot;en&quot;</strong> → Uses English collation rules.</li><li><strong>strength: 2</strong> → Enables case-insensitive comparisons.</li></ul><h4>Step 2: Perform an Optimized Query</h4><p>Now, we can query using a normal equality filter while specifying collation:</p><pre>db.users.find(<br>    { name: &quot;alice&quot; },<br>    { collation: { locale: &quot;en&quot;, strength: 2 } }<br>);</pre><h4>Explain Plan Analysis (Optimized Query)</h4><pre>{<br>  &quot;executionStages&quot;: {<br>    &quot;stage&quot;: &quot;IXSCAN&quot;,<br>    &quot;nReturned&quot;: 3,<br>    &quot;totalKeysExamined&quot;: 3,<br>    &quot;totalDocsExamined&quot;: 3<br>  }<br>}</pre><ul><li><strong>stage: IXSCAN</strong> → The query now uses an <strong>index scan</strong>, significantly improving performance.</li><li><strong>totalKeysExamined: 3</strong> → Only relevant index keys are examined.</li><li><strong>totalDocsExamined: 3</strong> → Still returning the correct results.</li></ul><h4>Alternative Approach: Setting Default Collation for the Collection</h4><p>If you consistently require case-insensitive searches, set the <strong>default collation</strong> at collection creation:</p><pre>db.createCollection(&quot;users&quot;, {<br>    collation: { locale: &quot;en&quot;, strength: 2 }<br>});</pre><p>Now, any query on the users collection will automatically use case-insensitive comparison, eliminating the need to specify collation in each query.</p><h4>Summary</h4><p>❌ Using $regex with the i option for case-insensitive queries (poor performance)</p><p>❌ Relying on default case-sensitive equality queries (incomplete results)</p><h4>Best Practices</h4><p>✅ Create a <strong>case-insensitive index</strong> with collation (strength: 2)</p><p>✅ Use a <strong>collation-aware equality query</strong></p><p>✅ Set a <strong>default collation</strong> for the collection if needed</p><h3>Separating data that is accessed together</h3><p>Separating frequently accessed data into multiple collections can lead to <strong>poor performance</strong> because MongoDB’s $lookup operation (similar to SQL joins) is <strong>slow and resource-intensive</strong>. Instead of efficiently retrieving data in a single query, $lookup requires <strong>multiple queries</strong> and <strong>merging results</strong>, which can significantly degrade performance.</p><h4>Why is This an Anti-Pattern?</h4><ul><li><strong>Slower Queries</strong>: Fetching related data from different collections requires $lookup, which is expensive.</li><li><strong>More Complexity</strong>: Writing queries becomes harder as you have to join multiple collections.</li><li><strong>Higher Resource Usage</strong>: Each $lookup consumes more memory and processing power.</li></ul><h4>Example: Model United Nations (MUN) Event</h4><p>Imagine we are designing a MongoDB database for a <strong>Model United Nations</strong> (MUN) event. Each country in the event has:</p><ul><li>Basic details (name, capital, population, etc.)</li><li>A list of available trade resources</li><li>A list of delegates (participants representing the country)</li><li>Policy documents (statements and decisions)</li></ul><h4>Incorrect Schema (Using Separate Collections)</h4><p>Initially, we store data in <strong>four different collections</strong>:</p><h4>countries Collection:</h4><pre>{<br>    &quot;_id&quot;: 1,<br>    &quot;name&quot;: &quot;Finland&quot;,<br>    &quot;capital&quot;: &quot;Helsinki&quot;,<br>    &quot;population&quot;: 5500000<br>}</pre><h4>resources Collection:</h4><pre>{<br>    &quot;_id&quot;: 101,<br>    &quot;country_id&quot;: 1,<br>    &quot;resources&quot;: { &quot;lions&quot;: 32563 }<br>}</pre><h4>delegates Collection:</h4><pre>{<br>    &quot;_id&quot;: 201,<br>    &quot;name&quot;: &quot;Andy&quot;,<br>    &quot;country_id&quot;: 1<br>}</pre><h4>policies Collection:</h4><pre>{<br>    &quot;_id&quot;: 301,<br>    &quot;country_id&quot;: 1,<br>    &quot;title&quot;: &quot;Defense Policy&quot;,<br>    &quot;date&quot;: &quot;2025-02-01&quot;<br>}</pre><h4>Generating a Country Report</h4><p>To generate a report containing <strong>basic details, resources, delegates, and policies</strong>, we must use multiple $lookup operations:</p><pre>db.countries.aggregate([<br>  {<br>    $lookup: {<br>      from: &quot;resources&quot;,<br>      localField: &quot;_id&quot;,<br>      foreignField: &quot;country_id&quot;,<br>      as: &quot;resources&quot;<br>    }<br>  },<br>  {<br>    $lookup: {<br>      from: &quot;delegates&quot;,<br>      localField: &quot;_id&quot;,<br>      foreignField: &quot;country_id&quot;,<br>      as: &quot;delegates&quot;<br>    }<br>  },<br>  {<br>    $lookup: {<br>      from: &quot;policies&quot;,<br>      localField: &quot;_id&quot;,<br>      foreignField: &quot;country_id&quot;,<br>      as: &quot;policies&quot;<br>    }<br>  }<br>]);</pre><h4>Why is This a Problem?</h4><ul><li><strong>Each </strong><strong>$lookup is an additional query</strong>, slowing down execution.</li><li><strong>Complex queries increase CPU and memory usage</strong>.</li><li><strong>More indexes and joins mean higher storage costs</strong>.</li></ul><h4>Correct Approach: Embedding Data Together</h4><p>Instead of using multiple collections, we can embed frequently accessed data <strong>within a single document</strong> inside the countries collection.</p><h4>Optimized Schema (Using Embedded Documents)</h4><pre>{<br>    &quot;_id&quot;: 1,<br>    &quot;name&quot;: &quot;Finland&quot;,<br>    &quot;capital&quot;: &quot;Helsinki&quot;,<br>    &quot;population&quot;: 5500000,<br>    &quot;resources&quot;: { &quot;lions&quot;: 32563 },<br>    &quot;delegates&quot;: [<br>        { &quot;name&quot;: &quot;Andy&quot; },<br>        { &quot;name&quot;: &quot;Donna&quot; }<br>    ],<br>    &quot;policies&quot;: [<br>        { &quot;title&quot;: &quot;Defense Policy&quot;, &quot;date&quot;: &quot;2025-02-01&quot; }<br>    ]<br>}</pre><h4>Benefits of This Approach</h4><p>✅ <strong>Faster Queries</strong>: Data is stored together, so retrieving a country’s details requires <strong>just one query</strong>.</p><p>✅ <strong>Less Memory and CPU Usage</strong>: No need for expensive $lookup operations.</p><p>✅ <strong>Simpler Queries</strong>:</p><pre>db.countries.find({ name: &quot;Finland&quot; });</pre><h4>Trade-Offs &amp; Considerations</h4><ul><li><strong>Duplication</strong>: Some data (like policy details) may still be stored separately if documents get too large.</li><li><strong>Update Complexity</strong>: Updating a delegate’s details means modifying an embedded array rather than a separate collection.</li></ul><h4>Summary</h4><p>❌ <strong>Avoid Separating Data That is Accessed Together</strong> — $lookup queries are slow and resource-heavy.</p><p>✅ <strong>Embed Related Data in a Single Collection</strong> — Improves query performance and reduces system load.</p><p>✅ <strong>Use Separate Collections Only for Rarely Accessed Data</strong> — For example, storing full policy document texts separately while keeping <strong>only recent policy summaries</strong> in the main document.</p><h3>Happy Coding 🎉🎉🎉</h3><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a></li><li><a href="https://cofeed.app/"><strong>Check out CoFeed, the smart way to stay up-to-date with the latest in tech</strong></a> <strong>🧪</strong></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b4ee86288b1" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/mongo-db-schema-design-anti-patterns-part-2-1b4ee86288b1">Mongo DB Schema Design Anti-Patterns — Part 2</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mongo DB Schema Design Anti-Patterns — Part 1]]></title>
            <link>https://javascript.plainenglish.io/mongo-db-schema-design-anti-patterns-part-1-4a56ca5d265e?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a56ca5d265e</guid>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 22:07:35 GMT</pubDate>
            <atom:updated>2025-02-17T01:30:06.541Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mongo DB Schema Design Anti-Patterns — Part 1</h3><p>Find out the don’ts while designing schema in MongoDB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wshqQuXyD_XKYAJpb8JgIw.png" /></figure><p>Software developers love design patterns and well design patterns give us best practices in a common languages as we architect applications. When modeling data to be stored in MongoDB database we talk about Schema design patterns.</p><p>Schema design patterns help developers be successful as they plan and iterate on their designs.</p><p>But here’s the thing, some developers jump right into building their apps without thinking about making a design following best practices and without even realizing it they’ve coated themselves into a big mess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NX0REoVUpYGX-V7e" /><figcaption>Photo by <a href="https://unsplash.com/@tomastuma?utm_source=medium&amp;utm_medium=referral">Tomas Tuma</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>During development, when the requirements change or my database needs to scale I just care about doing the minimum work to get something working and that’s why we at mongodb have identified six common schema design anti patterns.</p><p>The goal is to learn about and prevent schema design anti-patterns so we don’t accidentally starting to go down a dangerous path that will lead to inefficient queries.</p><p>I’m also going to assume you’re comfortable with the basics of how to store data using the document model. If you’re not familiar with those terms, try learn the basics from MongoDB website and you can also try MongoDB Atlas.</p><p>Lets dive into the prohibited design practices…..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RGT0IwDSH_iDj-hB" /><figcaption>Photo by <a href="https://unsplash.com/@neom?utm_source=medium&amp;utm_medium=referral">NEOM</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’ll be discussing the first three here and the rest will be the next</p><h3>1. Massive arrays</h3><p>There is a universal rule when modeling data in MongoDB is <strong>“Data that is accessed together should be stored together”.</strong></p><p>If you are going to retrieve or update data frequently, you should probably just store it together. Data is often stored together by embedding related information in subdocuments or arrays.</p><pre>// Example of data of a blog post<br><br>{<br>  title: &quot;MongoDB Schema Design&quot;,<br>  author: { <br>    name: &quot;Alice&quot;, <br>    email: &quot;alice@example.com&quot;,<br>    bio: { <br>      age: 30, <br>      country: &quot;USA&quot; <br>    } // Nested subdocument inside author<br>  },<br>  metadata: { <br>    views: 1000, <br>    shares: 50,<br>  }, // Nested subdocument for metadata<br>  likes: [&quot;Eve&quot;, &quot;Frank&quot;, &quot;Grace&quot;] // Array of users who liked the post<br>}</pre><p>Sometimes developers take this too far and embed massive amount of information in a single unbounded arrays and that is why it comes “Massive Arrays Anti-pattern”</p><p>Imagine you are designing a social media application like Twitter. Each user can <strong>like thousands of posts</strong>. A naive approach would be to store all the liked posts inside an array in the user document.</p><pre>//Storing All Liked Posts in an Array<br><br>{<br>  &quot;_id&quot;: &quot;user123&quot;,<br>  &quot;name&quot;: &quot;Alice&quot;,<br>  &quot;email&quot;: &quot;alice@example.com&quot;,<br>  &quot;liked_posts&quot;: [<br>    &quot;post1&quot;,<br>    &quot;post2&quot;,<br>    &quot;post3&quot;,<br>    &quot;... up to thousands of posts ...&quot;<br>  ]<br>}</pre><h4>🚨 Problems with Massive Arrays:</h4><ul><li><strong>Document Size Limit:</strong> MongoDB has a <strong>16MB document size limit</strong>. If the array keeps growing, the document can become too large.</li><li><strong>Performance Issues:</strong> Querying large arrays slows down reads and updates.</li><li><strong>Indexing Problems:</strong> Searching inside massive arrays is inefficient.</li><li><strong>Concurrency Issues:</strong> Updating a single document frequently can cause write contention.</li></ul><h4>✅ Solution: Store Liked Posts in a Separate Collection</h4><p>Instead of storing all liked posts in an array inside the user document, we create a separate collection:</p><pre>{<br>  &quot;_id&quot;: ObjectId(&quot;664d1f1a&quot;),<br>  &quot;user_id&quot;: &quot;user123&quot;,<br>  &quot;post_id&quot;: &quot;post1&quot;,<br>  &quot;liked_at&quot;: &quot;2025-02-10T12:00:00Z&quot;<br>}</pre><p>Query to get all liked posts by a user:</p><pre>db.liked_posts.find({ user_id: &quot;user123&quot; })</pre><p><strong>🚀 Benefits:</strong></p><ul><li>No risk of exceeding MongoDB’s <strong>16MB document size limit</strong>.</li><li><strong>Efficient indexing</strong> on user_id and post_id.</li><li><strong>Faster queries</strong> and avoids unnecessary updates to a huge document.</li></ul><h4>Summary</h4><p>✅ <strong>Do:</strong> Store information together that you will be frequently querying together<br>❌<strong>Don’t:</strong> Store information in massive, unbounded arrays that will continue to grow over time</p><h3>2. Massive number of collections</h3><p>If storage is cheap who cares how many collections you have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AZsMpxLnn8GQpgvB" /><figcaption>Photo by <a href="https://unsplash.com/@chuttersnap?utm_source=medium&amp;utm_medium=referral">CHUTTERSNAP</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Well every collection in mongodb automatically has an index on the underscore ID “_id” field while the size of this index is pretty small for empty or small collections but thousands of empty or unused indexes can begin to drain resources.</p><p>WiredTiger is mongoDB’s default storage engine, which performance decreases with an excessive number of collections and indexes. WiredTiger stores a file for each collection and a file for each index. IT will open all files upon startup, so performance will decrease when excessive number of collections and indexes exist.</p><p>In general it is recommend limiting each replica set to 10,000 collections. When users begin exceeding 10,000 collections they typically see decreases in performance.</p><p>Imagine you are building a <strong>note-taking app like Evernote</strong>, where each user can create and save notes.<br>A beginner might think:<br>💡 <em>“Why not create a separate collection for each user? That way, each user has their own isolated space!”</em></p><p>So, you end up with <strong>thousands or even millions</strong> of collections:</p><pre>users:<br>  - user_123_notes<br>  - user_456_notes<br>  - user_789_notes<br>  - user_999_notes<br>  ...</pre><h4>❌ Bad Schema Design: One Collection Per User</h4><p>Imagine you create a <strong>new collection for each user</strong>. In MongoDB, you would have something like:</p><pre><br><br>// Creating a collection for each user<br>db.createCollection(&quot;user_123_notes&quot;);<br>db.createCollection(&quot;user_456_notes&quot;);<br><br>// Inserting notes for each user into their respective collections<br>db.user_123_notes.insertOne({<br>  title: &quot;Grocery List&quot;,<br>  content: &quot;Buy milk, eggs, and bread&quot;,<br>  createdAt: new Date()<br>});<br><br>db.user_456_notes.insertOne({<br>  title: &quot;Work Tasks&quot;,<br>  content: &quot;Prepare for the meeting at 2 PM&quot;,<br>  createdAt: new Date()<br>});<br><br>// Querying for a specific user&#39;s notes (only in their collection)<br>db.user_123_notes.find({ title: &quot;Grocery List&quot; });<br><br>// To find all notes for user_123, you need to query each collection separately (slow and inefficient)</pre><h4>Problems with This Approach:</h4><ul><li><strong>Too many collections</strong>: MongoDB will have to maintain many collections for each user.</li><li><strong>Querying across collections</strong>: To search for all notes from all users or perform a search query across all users, you would have to search in every collection, which is inefficient.</li><li><strong>Scaling issues</strong>: Managing backups, maintenance, and indexing for thousands (or millions) of collections is complex and resource-intensive.</li></ul><h4>✅ Good Schema Design: A Single “Notes” Collection</h4><p>Instead of creating a collection per user, you store <strong>all users’ notes in one collection</strong>. You can differentiate notes by adding a userId field, like this:</p><pre>// Create a single &quot;notes&quot; collection<br>db.createCollection(&quot;notes&quot;);<br><br>// Inserting notes into the &quot;notes&quot; collection<br>db.notes.insertMany([<br>  {<br>    userId: &quot;123&quot;, <br>    title: &quot;Grocery List&quot;, <br>    content: &quot;Buy milk, eggs, and bread&quot;, <br>    createdAt: new Date()<br>  },<br>  {<br>    userId: &quot;456&quot;, <br>    title: &quot;Work Tasks&quot;, <br>    content: &quot;Prepare for the meeting at 2 PM&quot;, <br>    createdAt: new Date()<br>  },<br>  {<br>    userId: &quot;123&quot;, <br>    title: &quot;Meeting Notes&quot;, <br>    content: &quot;Discuss project roadmap&quot;, <br>    createdAt: new Date()<br>  }<br>]);<br><br>// Querying for a specific user&#39;s notes (efficient query)<br>db.notes.find({ userId: &quot;123&quot; }); // Fetches all notes for user 123<br><br>// Querying for a specific note containing a word (across all users)<br>db.notes.find({ content: /meeting/i }); // Finds any note containing &quot;meeting&quot;<br><br>// Create an index on userId to improve performance for user-specific queries<br>db.notes.createIndex({ userId: 1 });</pre><h4>Benefits of This Approach:</h4><ul><li><strong>Single collection</strong>: All notes are stored in the same collection, making management easier.</li><li><strong>Efficient querying</strong>: You can quickly query for a specific user’s notes using userId, and even search for content across all notes.</li><li><strong>Indexes</strong>: You can index userId to speed up queries related to a specific user.</li><li><strong>Scalability</strong>: MongoDB can handle large collections more efficiently than many small collections, and you can <strong>shard</strong> a collection if it grows too large.</li></ul><h4>Example: Searching for Notes Across Users</h4><p>Imagine you want to search for <strong>all notes</strong> that contain the word “meeting” from <strong>any user</strong>:</p><pre>// Query for all notes across users that mention &quot;meeting&quot;<br>db.notes.find({ content: /meeting/i });  // Search across all notes</pre><p>Since all the notes are in a single collection, MongoDB can efficiently search through the entire dataset without having to query each collection separately, like in the bad schema design.</p><h4>Summary</h4><p>✅ <strong>Do:</strong> Remove empty and unused collections. Try to limit your replica set to 10,000 collections<br>❌<strong>Don’t:</strong> Create massive number of collections as each collection likely has a few indexes associated with it.</p><h3>3. Unnecessary indexing</h3><p>Before I go any further I want to emphasize that “Indexes are good” !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1da5gSlWnbp1OO95" /><figcaption><a href="https://unsplash.com/photos/brown-fishing-rod-CCoHMPRZUwQ">Upsplash</a></figcaption></figure><p>Now you might be wondering <em>should I just create an index on every field just in case on it in the future</em> …. The answer to that is a <strong>Big NO</strong></p><p>There are three big reasons why you should remove unnecessary indexes:</p><ul><li>Indexes take up space</li><li>Indexes impact storage engine performance</li><li>Indexes impact white performance</li></ul><p>Each index is at least Eight Kilobytes, and grows with the number of documents associated with it. Thousands of indexes can be begin to drain resources. Indexes can impact right performance whenever a document is created updated or deleted any index associated with that document must also be updated these updates to the indexes negatively impact right performance.</p><p>In general it is recommend limiting each collection to a <strong>maximum of 50 index</strong> so what you can identify which indexes are truly necessary. So how do you know if an index is necessary ?</p><p>Unnecessary index is typically fall into two categories:</p><ul><li>The index is rarely or not at all used</li><li>The index is redundant because another compound index covers it</li></ul><p><strong>Let’s look at an example of Leslie’s Inspirational Women Website:</strong></p><p>Leslie wants to inspire others, so she creates a website about her <strong>favorite inspirational women</strong>. The website allows users to <strong>search by full name, last name, and hobbies</strong>.</p><pre>//Leslie&#39;s Data Model<br><br>{<br>  &quot;_id&quot;: ObjectId(&quot;664d1f1a&quot;),<br>  &quot;full_name&quot;: &quot;Sally Ride&quot;,<br>  &quot;last_name&quot;: &quot;Ride&quot;,<br>  &quot;hobbies&quot;: [&quot;Astronomy&quot;, &quot;Reading&quot;],<br>  &quot;achievements&quot;: [&quot;First American woman in space&quot;]<br>}</pre><p>Leslie, excited to make her website awesome, <strong>creates an index on every field</strong> in the collection.</p><pre>//Leslie&#39;s Indexes<br><br>db.inspirational_women.createIndex({ full_name: 1 });<br>db.inspirational_women.createIndex({ last_name: 1 });<br>db.inspirational_women.createIndex({ hobbies: 1 });<br>db.inspirational_women.createIndex({ achievements: 1 });</pre><p>Index takes up space and grows with the number of documents associated with it.</p><p>Each index is at least <strong>8 Kilobytes</strong>, and grows with the number of documents associated with it. Thousands of indexes can be begin to drain resources</p><h4>Are These Indexes Necessary?</h4><p>After analyzing index usage using MongoDB Atlas Data Explorer, Leslie discovers:</p><p>✅ The compound index { full_name: 1, last_name: 1 } is frequently used.<br>✅ The { hobbies: 1 } index is also frequently used.<br>❌ The { last_name: 1 } index is redundant because { full_name: 1, last_name: 1 } covers it.<br>❌ The { achievements: 1 } index is never used in queries.</p><p><strong>Dropping Unnecessary Indexes</strong></p><pre>db.inspirational_women.dropIndex(&quot;last_name_1&quot;); // Drops redundant last name index<br>db.inspirational_women.dropIndex(&quot;achievements_1&quot;); // Drops unused achievements index</pre><h4>How to Check for Unnecessary Indexes?</h4><pre>//List All Indexes in a Collection<br><br>db.inspirational_women.getIndexes();</pre><h4>Analyze Index Usage with explain()</h4><pre>db.inspirational_women.find({ full_name: &quot;Sally Ride&quot; }).explain(&quot;executionStats&quot;);</pre><p>If an index is <strong>never used</strong>, it’s a good candidate for removal.</p><h4>Summary</h4><p>✅ <strong>Do:</strong> Create indexes that support frequent queries<br>❌<strong>Don’t:</strong> Create unnecessary indexes</p><h3>Happy Coding 🎉🎉🎉</h3><p>Want to know some more prohibited design patterns ?</p><p><a href="https://almamunx.medium.com/mongo-db-schema-design-anti-patterns-part-2-1b4ee86288b1">Mongo DB Schema Design Anti-Patterns — Part 2</a></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a></li><li><a href="https://cofeed.app/"><strong>Check out CoFeed, the smart way to stay up-to-date with the latest in tech</strong></a> <strong>🧪</strong></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a56ca5d265e" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/mongo-db-schema-design-anti-patterns-part-1-4a56ca5d265e">Mongo DB Schema Design Anti-Patterns — Part 1</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UX Research — How should you ask questions]]></title>
            <link>https://medium.com/design-bootcamp/ux-research-how-should-you-ask-questions-60fd4ec24c0?source=rss-e01f9ad8936d------2</link>
            <guid isPermaLink="false">https://medium.com/p/60fd4ec24c0</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ui-design]]></category>
            <dc:creator><![CDATA[Abdullah Al Mamun]]></dc:creator>
            <pubDate>Thu, 28 Mar 2024 22:54:41 GMT</pubDate>
            <atom:updated>2024-03-30T10:17:31.677Z</atom:updated>
            <content:encoded><![CDATA[<h3>UX Research — How should you ask questions</h3><p>Described some better ways to ask question to get precise answer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t2s8pzxH1hlKHw-I" /><figcaption>Photo by <a href="https://unsplash.com/@uxindo?utm_source=medium&amp;utm_medium=referral">UX Indonesia</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Asking questions is considared a major part of conducting effective UX research.</p><p>The questions you ask will determine the quality of the data you gather, and the insights you gain from the research. Here, I will try to explain some better practices for asking questions to get better understanding of your work.</p><blockquote>Davia Travis (Managing director if userfocus) says,</blockquote><blockquote>It’s the process of UX research that matters, not the beauty of the final artifact.</blockquote><p>Questions are the way to extract specific info within a conversation. So the first thing I choose to add ..</p><h3>Open-Ended Questions</h3><p>Open-ended questions allow participants to answer freely, without any constraints. These types of questions encourage participants to share their thoughts and feelings, which provide more detailed responses. It also help us to avoid leading participants towards a particular response.</p><p>For example, instead of asking “Do you think the website is easy to navigate?” you could ask “How would you describe your experience navigating the website?”</p><p>This way of questioning allows participants to share their thoughts on the website’s usability without being influenced by the question’s phrasing.</p><h3>Use Neutral Language</h3><p>The language you use while asking questions, can influence participants’ responses. Using leading or biased language can divert participants towards a particular response that can lead to unreliable data.</p><p>To avoid this, use neutral language that does not suggest a particular response.</p><p>Instead of asking “How much did you like the website’s design?”, you could ask “What are your thoughts on the website’s design?”.</p><p>This question allows participants to share their honest opinions without feeling pressured to give a positive response.</p><h3>Avoid Jargon 🚫</h3><p>When asking questions, it’s essential to use language that participants can understand. Avoid using jargon or technical terms that participants may not be familiar with. Using language that is easy for participants to understand will ensure that they can provide accurate and insightful responses.</p><p>Rather using technical terms like “user interface” or “information architecture,” you could ask in different way like, “What are your thoughts on how the website is organized?”.</p><h3>Use One Question at a Time</h3><p>Asking multiple questions at once can be confusing for participants and can lead to incomplete or inaccurate responses. Focus on one question at a time to ensure that participants fully understand what you’re asking.</p><p>For instance, instead of asking “What do you think of the website’s design and functionality?”, you could choose “What are your thoughts on the website’s design?” and then follow up with “What are your thoughts on the website’s functionality?”.</p><h3>Be Specific</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l-o82Xs-V8Yg4n_3" /><figcaption>Photo by <a href="https://unsplash.com/@nathangbingle?utm_source=medium&amp;utm_medium=referral">Nathan Bingle</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It’s very very very important !</p><p>When asking questions, it’s essential to be specific and concrete. Try to avoid using vague or ambiguous language that could lead to confusion or incomplete responses.</p><p>For example, you are asking “What do you think of the website’s performance?”, where you can change the way to ask “How quickly do pages load on the website?” or “Did you experience any issues with the website’s speed?”.</p><h3>Be Concise</h3><p>Again the same importance as before.</p><p>Keep your questions short and to the point. Long and complex questions can be difficult for participants to understand and answer. Concise questions will ensure that participants can provide accurate and insightful responses.</p><p>For example, instead of asking “In what ways do you think the website’s user experience could be improved?”, you can ask “What improvements would you make to the website’s user experience?”.</p><h3>Test Your Questions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ehJ9Y_Zhr4EYduXQ" /><figcaption>Photo by <a href="https://unsplash.com/@chivalry_creative?utm_source=medium&amp;utm_medium=referral">Chivalry Creative</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Before conducting your research, you can test your questions with a small group of participants to ensure that they are clear and easy to understand.</p><p>This can be considared as a preparation part as well.</p><p>Testing your questions will help you identify any issues with your question. Phrasing or wording will help you improve the quality of your research.</p><p>In conclusion, asking effective questions is crucial for conducting successful UX research.</p><p>By using these, you can ensure that your questions are clear and effective in gathering the information you need. Also you can ensure that your research provides accurate and valuable insights that will help you improve your user experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60fd4ec24c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/ux-research-how-should-you-ask-questions-60fd4ec24c0">UX Research — How should you ask questions</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>