<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Embrence</title>
    <description>The latest articles on DEV Community by Embrence (@embrenceixxn).</description>
    <link>https://dev.to/embrenceixxn</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4058119%2F9fa9a9c0-b369-4549-ae0c-98e929c7f64c.jpg</url>
      <title>DEV Community: Embrence</title>
      <link>https://dev.to/embrenceixxn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/embrenceixxn"/>
    <language>en</language>
    <item>
      <title>The Python Operator Most Developers Ignore: :=</title>
      <dc:creator>Embrence</dc:creator>
      <pubDate>Wed, 05 Aug 2026 17:28:32 +0000</pubDate>
      <link>https://dev.to/embrenceixxn/the-python-operator-most-developers-ignore--59me</link>
      <guid>https://dev.to/embrenceixxn/the-python-operator-most-developers-ignore--59me</guid>
      <description>&lt;p&gt;When I first discovered the walrus operator (:=), I thought:&lt;/p&gt;

&lt;p&gt;“It’s just syntactic sugar.”&lt;/p&gt;

&lt;p&gt;After all, you can write the same code without it.&lt;/p&gt;

&lt;p&gt;So why does it exist?&lt;/p&gt;

&lt;p&gt;What does the walrus operator do?&lt;/p&gt;

&lt;p&gt;The walrus operator lets you assign a value while evaluating an expression.&lt;/p&gt;

&lt;p&gt;Instead of this:&lt;/p&gt;

&lt;p&gt;match = pattern.match(line)&lt;br&gt;
if match:&lt;br&gt;
    print(match.group())&lt;/p&gt;

&lt;p&gt;You can write:&lt;/p&gt;

&lt;p&gt;if (match := pattern.match(line)):&lt;br&gt;
    print(match.group())&lt;/p&gt;

&lt;p&gt;You both assign and check the value in one place.&lt;/p&gt;

&lt;p&gt;Where it actually shines&lt;/p&gt;

&lt;p&gt;One of my favorite use cases is list comprehensions.&lt;/p&gt;

&lt;p&gt;import re&lt;br&gt;
pattern = re.compile(r"ERROR (\d+): (.*)")&lt;br&gt;
errors = [&lt;br&gt;
    (int(m.group(1)), m.group(2))&lt;br&gt;
    for line in log_lines&lt;br&gt;
    if (m := pattern.match(line))&lt;br&gt;
]&lt;/p&gt;

&lt;p&gt;Without :=, you’d either need an extra loop or call pattern.match() twice.&lt;/p&gt;

&lt;p&gt;Another practical example is guard clauses.&lt;/p&gt;

&lt;p&gt;if (result := a * b) &amp;gt; 10:&lt;br&gt;
    raise ValueError(&lt;br&gt;
        f"Result ({result}) is too large."&lt;br&gt;
    )&lt;/p&gt;

&lt;p&gt;Here, the value is calculated only once and can be reused in the error message.&lt;/p&gt;

&lt;p&gt;Should you use it everywhere?&lt;/p&gt;

&lt;p&gt;Probably not.&lt;/p&gt;

&lt;p&gt;The walrus operator improves code only when it makes the logic easier to follow.&lt;/p&gt;

&lt;p&gt;If it makes a line harder to read, a separate assignment is usually the better choice.&lt;/p&gt;

&lt;p&gt;Like many Python features, it’s a tool—not a rule.&lt;/p&gt;

&lt;p&gt;Final thoughts&lt;/p&gt;

&lt;p&gt;At first glance, the walrus operator looks unnecessary.&lt;/p&gt;

&lt;p&gt;But in the right situations, it reduces repetition, avoids duplicate calculations, and keeps related logic together.&lt;/p&gt;

&lt;p&gt;The key is using it intentionally, not everywhere.&lt;/p&gt;

&lt;p&gt;What’s your opinion?&lt;/p&gt;

&lt;p&gt;Do you use the walrus operator in your projects, or do you prefer traditional assignments?&lt;/p&gt;

</description>
      <category>python</category>
      <category>coding</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Should You Use assert in Python?</title>
      <dc:creator>Embrence</dc:creator>
      <pubDate>Wed, 05 Aug 2026 17:04:57 +0000</pubDate>
      <link>https://dev.to/embrenceixxn/should-you-use-assert-in-python-3knp</link>
      <guid>https://dev.to/embrenceixxn/should-you-use-assert-in-python-3knp</guid>
      <description>&lt;p&gt;One of the more controversial Python discussions isn’t about frameworks or performance.&lt;/p&gt;

&lt;p&gt;It’s about a single keyword:&lt;/p&gt;

&lt;p&gt;assert&lt;/p&gt;

&lt;p&gt;Some developers argue that assert should never be used.&lt;/p&gt;

&lt;p&gt;Their reasoning is straightforward: assertions are removed when Python is run with optimization (python -O). If a check can disappear in production, they argue, it shouldn’t be responsible for enforcing important conditions.&lt;/p&gt;

&lt;p&gt;Instead, they recommend explicit exceptions:&lt;/p&gt;

&lt;p&gt;if age &amp;lt; 18:&lt;br&gt;
    raise ValueError("Age must be at least 18")&lt;/p&gt;

&lt;p&gt;On the other hand, many experienced Python developers make a distinction between validating external input and checking internal assumptions.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;assert user is not None&lt;/p&gt;

&lt;p&gt;This isn’t validating user input.&lt;/p&gt;

&lt;p&gt;It’s documenting an assumption that should already be true if the rest of the program is correct.&lt;/p&gt;

&lt;p&gt;If the assertion fails, it usually indicates a bug in the program rather than invalid input from a user.&lt;/p&gt;

&lt;p&gt;That’s why many developers use assert for debugging and internal invariants while relying on exceptions for runtime validation.&lt;/p&gt;

&lt;p&gt;The important question isn’t:&lt;/p&gt;

&lt;p&gt;“Should I always use assert?”&lt;/p&gt;

&lt;p&gt;It’s:&lt;/p&gt;

&lt;p&gt;“What am I trying to protect?”&lt;/p&gt;

&lt;p&gt;If you’re validating user input, API responses, files, or anything that can legitimately fail during normal execution, exceptions are usually the appropriate choice.&lt;/p&gt;

&lt;p&gt;If you’re checking assumptions that should never be false unless your own code contains a bug, an assertion can make that intent explicit.&lt;/p&gt;

&lt;p&gt;In other words, assert and exceptions solve different problems.&lt;/p&gt;

&lt;p&gt;What do you think?&lt;/p&gt;

&lt;p&gt;Do you use assert in your projects, or do you prefer explicit exceptions everywhere?&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>beginners</category>
      <category>coding</category>
    </item>
    <item>
      <title>Why I’m Writing This on a Programming Blog</title>
      <dc:creator>Embrence</dc:creator>
      <pubDate>Sat, 01 Aug 2026 17:47:13 +0000</pubDate>
      <link>https://dev.to/embrenceixxn/why-im-writing-this-on-a-programming-blog-58b3</link>
      <guid>https://dev.to/embrenceixxn/why-im-writing-this-on-a-programming-blog-58b3</guid>
      <description>&lt;p&gt;If you’ve followed my posts, you probably expected another article about Python, development, or learning to code.&lt;/p&gt;

&lt;p&gt;This isn’t one of those posts.&lt;/p&gt;

&lt;p&gt;I don’t usually talk about my personal life online, but I think this is more important than another tutorial.&lt;/p&gt;

&lt;p&gt;For a long time, I struggled with my mental health. I’m not going to discuss diagnoses because they aren’t the point. What matters is that I eventually reached out for professional help, and treatment changed my life.&lt;/p&gt;

&lt;p&gt;One thing I’ve learned is that many people—especially developers and students—convince themselves that they’re “just tired,” “just stressed,” or that things will get better if they ignore the problem.&lt;/p&gt;

&lt;p&gt;Sometimes they do.&lt;/p&gt;

&lt;p&gt;Sometimes they don’t.&lt;/p&gt;

&lt;p&gt;If you’re constantly exhausted, overwhelmed, anxious, or feel like you’re carrying more than you can handle, please don’t ignore it. Asking for help isn’t weakness, and it isn’t failure.&lt;/p&gt;

&lt;p&gt;If professional help isn’t immediately available, talk to someone you trust. A friend, a family member, a teacher—anyone who will listen. Many countries also have free mental health organizations and crisis support services.&lt;/p&gt;

&lt;p&gt;I’m not a psychologist, and this isn’t medical advice. I just know what it’s like to feel alone, and I don’t want someone else to stay silent because they think nobody will understand.&lt;/p&gt;

&lt;p&gt;Programming teaches us to debug problems instead of pretending they don’t exist.&lt;/p&gt;

&lt;p&gt;Our own minds deserve the same attention.&lt;/p&gt;

&lt;p&gt;Take care of yourselves&lt;/p&gt;

</description>
      <category>mentalhealth</category>
    </item>
    <item>
      <title>5 Python Resources I Wish I Knew When I Started Learning</title>
      <dc:creator>Embrence</dc:creator>
      <pubDate>Sat, 01 Aug 2026 14:57:39 +0000</pubDate>
      <link>https://dev.to/embrenceixxn/5-python-resources-i-wish-i-knew-when-i-started-learning-37f9</link>
      <guid>https://dev.to/embrenceixxn/5-python-resources-i-wish-i-knew-when-i-started-learning-37f9</guid>
      <description>&lt;p&gt;Learning Python can feel overwhelming.&lt;/p&gt;

&lt;p&gt;There are thousands of tutorials, courses, books, and tools. The hardest part is not finding resources — it’s finding the right ones.&lt;/p&gt;

&lt;p&gt;Here are some Python resources that are actually worth your time:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Automate the Boring Stuff with Python&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Perfect for beginners who want to build useful things quickly.&lt;/p&gt;

&lt;p&gt;You will learn:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;File automation&lt;/li&gt;
&lt;li&gt;Web scraping&lt;/li&gt;
&lt;li&gt;Working with spreadsheets&lt;/li&gt;
&lt;li&gt;Creating practical scripts&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Python Crash Course&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A project-based book that helps you learn by building.&lt;/p&gt;

&lt;p&gt;Great for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Beginners&lt;/li&gt;
&lt;li&gt;Personal projects&lt;/li&gt;
&lt;li&gt;Understanding how developers think&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Python Official Documentation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The most underrated resource.&lt;/p&gt;

&lt;p&gt;Learning how to read documentation is a skill every developer needs.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;freeCodeCamp&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Free, detailed courses covering Python basics and real projects.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Real Python&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A great platform for improving your Python skills with practical tutorials.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;My advice:&lt;/p&gt;

&lt;p&gt;Don’t collect resources forever.&lt;/p&gt;

&lt;p&gt;Pick one.&lt;br&gt;
Build projects.&lt;br&gt;
Make mistakes.&lt;br&gt;
Improve.&lt;/p&gt;

&lt;p&gt;Programming is learned by writing code, not only watching tutorials.&lt;/p&gt;

&lt;p&gt;I’m building @embrence to share Python tips, resources, tools, and projects for developers.&lt;/p&gt;

&lt;p&gt;More practical content coming soon. 🐍&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
    </item>
  </channel>
</rss>
