<?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>Forem: CodeBase Journal</title>
    <description>The latest articles on Forem by CodeBase Journal (@codebasejournal).</description>
    <link>https://forem.com/codebasejournal</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3813075%2Fdfb55c7f-04a2-42af-ad44-b182d2a03327.png</url>
      <title>Forem: CodeBase Journal</title>
      <link>https://forem.com/codebasejournal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/codebasejournal"/>
    <language>en</language>
    <item>
      <title>Log 02: The Sample Data Struggle &amp; The "Wildcard" Trap</title>
      <dc:creator>CodeBase Journal</dc:creator>
      <pubDate>Sat, 21 Mar 2026 10:28:32 +0000</pubDate>
      <link>https://forem.com/codebasejournal/log-02-the-sample-data-struggle-the-wildcard-trap-5hp</link>
      <guid>https://forem.com/codebasejournal/log-02-the-sample-data-struggle-the-wildcard-trap-5hp</guid>
      <description>&lt;p&gt;With the Docker environment finally running, it was time to move from "configuring" to "doing."&lt;/p&gt;

&lt;p&gt;I went to the Microsoft SSMS source and pulled two classic sample files: &lt;code&gt;instnwnd.sql&lt;/code&gt; (Northwind) and &lt;code&gt;instpub.sql&lt;/code&gt; (Pubs). My plan was simple: install them, run some queries, and sharpen my SQL skills.&lt;/p&gt;

&lt;p&gt;As is tradition in development, it wasn't that easy.&lt;/p&gt;

&lt;h5&gt;
  
  
  The Ghost in the Container
&lt;/h5&gt;

&lt;p&gt;When I ran &lt;code&gt;instnwnd.sql&lt;/code&gt; against my Docker-hosted SQL Express, the database simply didn't appear in the SSMS Object Explorer. I’m still not entirely sure why—it’s a task for another day. Instead of getting bogged down in another configuration rabbit hole, I pivoted to &lt;code&gt;instpub.sql&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It worked. I finally had data to play with.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Practice Run: 5 Challenges
&lt;/h3&gt;

&lt;p&gt;I set out to solve five challenges ranging from basic filtering to aggregations. Here’s a look at the "Lessons Learned" from the session.&lt;/p&gt;

&lt;h4&gt;
  
  
  1. The "SELECT *" Trap
&lt;/h4&gt;

&lt;p&gt;I started out by using &lt;code&gt;SELECT *&lt;/code&gt; for almost everything. It’s a common beginner habit, but I quickly realized the cost. Using the wildcard pulls every column, wasting memory and processing power. In a small sample database, it doesn't matter; on a large production database, it’s a performance killer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lesson:&lt;/strong&gt; Be specific. Only ask for what you need.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. Efficiency with &lt;code&gt;IN&lt;/code&gt; vs. &lt;code&gt;OR&lt;/code&gt;
&lt;/h4&gt;

&lt;p&gt;I was tasked with finding authors in California (CA) or Utah (UT). My first instinct was a long OR statement:&lt;br&gt;
&lt;code&gt;WHERE state = 'CA' OR state = 'UT'&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I realized I could make this much cleaner using the IN operator:&lt;br&gt;
&lt;code&gt;WHERE state IN ('CA', 'UT')&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  3. The Power of the Wildcard (%)
&lt;/h4&gt;

&lt;p&gt;I had a slight mix-up with the &lt;code&gt;%&lt;/code&gt; wildcard. I initially tried to find last names starting with 'S' by using &lt;code&gt;LIKE '%s'&lt;/code&gt;, which actually looks for names ending in 'S'.&lt;br&gt;
The fix: &lt;code&gt;LIKE 'S%'&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  4. Reading the Requirements (Slow Down)
&lt;/h4&gt;

&lt;p&gt;In one challenge, I was asked for the &lt;strong&gt;Average Price&lt;/strong&gt; and &lt;strong&gt;Total Sales&lt;/strong&gt;. In my rush, I wrote a query for Average Sales.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;My mistake:&lt;/strong&gt; &lt;code&gt;AVG(ytd_sales)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The requirement:&lt;/strong&gt; &lt;code&gt;AVG(price), SUM(ytd_sales)&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Progress Over Perfection
&lt;/h3&gt;

&lt;p&gt;I’m a beginner, and this log is proof of that. I’m learning that SQL isn't just about getting the data—it's about getting the right data efficiently. I misread questions, I used inefficient methods, and I struggled with installations.&lt;/p&gt;

&lt;p&gt;But the queries are running, the logic is sticking, and Log 02 is in the books. Next time, I’ll be diving into more advanced methods.&lt;/p&gt;

</description>
      <category>sql</category>
      <category>learning</category>
    </item>
    <item>
      <title>Log 01: The Legacy Break | Switching to Docker for Data Science</title>
      <dc:creator>CodeBase Journal</dc:creator>
      <pubDate>Sun, 08 Mar 2026 15:48:46 +0000</pubDate>
      <link>https://forem.com/codebasejournal/log-01-the-legacy-break-switching-to-docker-for-data-science-4pgk</link>
      <guid>https://forem.com/codebasejournal/log-01-the-legacy-break-switching-to-docker-for-data-science-4pgk</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjqnj2r5f9hysbzs626j8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjqnj2r5f9hysbzs626j8.png" alt=" " width="800" height="446"&gt;&lt;/a&gt;&lt;br&gt;
In 2024, my setup was comfortable.&lt;/p&gt;

&lt;p&gt;I had &lt;strong&gt;SQL Server Management Studio (SSMS)&lt;/strong&gt; running on my laptop, primarily through Microsoft 365 Business Central. It was a stable, professional environment. It never caused me an issue, and for a long time, that was enough.&lt;/p&gt;

&lt;p&gt;But as I move deeper into &lt;strong&gt;Data Science and Analysis&lt;/strong&gt;, that comfort started to feel like a liability.&lt;/p&gt;

&lt;p&gt;I’ll be honest: I was terrified. There’s a specific kind of anxiety that comes with trying to repurpose a "business tool" for a new, technical journey.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Will I actually utilize this properly?&lt;/li&gt;
&lt;li&gt;Is this tool too rigid for data science?&lt;/li&gt;
&lt;li&gt;Will it even work once I step away from the Business Central ecosystem?&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The "Of Course It Failed" Phase
&lt;/h3&gt;

&lt;p&gt;My fears weren't unfounded. It didn't work.&lt;/p&gt;

&lt;p&gt;I can’t tell you the exact technical reason why the native installation hit a wall, and honestly, in the heat of the moment, I didn't care. I was just stuck at a crossroads: spend days debugging a legacy configuration or find a modern way forward.&lt;/p&gt;

&lt;p&gt;I chose the forward path.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Accidental Hero: Docker
&lt;/h3&gt;

&lt;p&gt;I ended up turning to &lt;strong&gt;Docker&lt;/strong&gt;—a tool I had completely ignored until now. It was always in that "I’ll learn that eventually" pile. But out of necessity, I pulled a &lt;code&gt;sqlexpress2022&lt;/code&gt; container, and suddenly, SSMS was back online.&lt;/p&gt;

&lt;p&gt;It’s a strange realization when the tool you never paid mind to becomes the very thing that saves your workflow. Docker just... allowed me to work. It removed the friction I didn't even realize I was fighting.&lt;/p&gt;

&lt;h3&gt;
  
  
  Focus Over Curiosity
&lt;/h3&gt;

&lt;p&gt;There is a massive urge right now to stop everything and do a deep dive into Docker. I want to know why it’s so famous and how it fixed a problem that a native install couldn't handle.&lt;/p&gt;

&lt;p&gt;But I’m practicing discipline.&lt;/p&gt;

&lt;p&gt;The Docker deep dive has earned its place in my journal, but that’s a story for another day. Right now, the mission is &lt;strong&gt;Data Analysis&lt;/strong&gt;. I’m keeping my focus there, utilizing the containerized environment I’ve built to actually crunch the numbers. The "why" behind the container can wait; the insights in the data cannot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is Log 01. The lights are back on. Let’s get to work.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>docker</category>
      <category>sql</category>
      <category>buildinpublic</category>
    </item>
  </channel>
</rss>
