<?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: Joseph Boafo Afful</title>
    <description>The latest articles on DEV Community by Joseph Boafo Afful (@arcaenux).</description>
    <link>https://dev.to/arcaenux</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%2F4128863%2F9950ba2d-5f08-4f47-9458-0e90b10ec6f6.jpeg</url>
      <title>DEV Community: Joseph Boafo Afful</title>
      <link>https://dev.to/arcaenux</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arcaenux"/>
    <language>en</language>
    <item>
      <title># AI Can Write Code. But Can You Explain It?</title>
      <dc:creator>Joseph Boafo Afful</dc:creator>
      <pubDate>Mon, 23 Nov 2026 07:03:10 +0000</pubDate>
      <link>https://dev.to/arcaenux/-ai-can-write-code-but-can-you-explain-it-2mkj</link>
      <guid>https://dev.to/arcaenux/-ai-can-write-code-but-can-you-explain-it-2mkj</guid>
      <description>&lt;p&gt;We've reached a point where generating code is becoming increasingly easy.&lt;/p&gt;

&lt;p&gt;Need a React component? Ask an AI assistant.&lt;/p&gt;

&lt;p&gt;Need a database schema? Describe what you want.&lt;/p&gt;

&lt;p&gt;Stuck on a bug? Paste the error and let an AI investigate.&lt;/p&gt;

&lt;p&gt;These tools are genuinely useful. They lower barriers, accelerate experimentation, and make it possible to explore ideas much faster.&lt;/p&gt;

&lt;p&gt;But there's a question I think every developer should occasionally ask themselves:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I understand the code I'm asking AI to write, or am I just happy that it works?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There's a difference between having working software and understanding the software you've built.&lt;/p&gt;

&lt;p&gt;A program can compile, pass a few tests, and produce the expected output while its developer has very little understanding of what's happening underneath.&lt;/p&gt;

&lt;p&gt;That becomes a problem when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Something breaks unexpectedly.&lt;/li&gt;
&lt;li&gt;Requirements change.&lt;/li&gt;
&lt;li&gt;Performance becomes an issue.&lt;/li&gt;
&lt;li&gt;An unfamiliar edge case appears.&lt;/li&gt;
&lt;li&gt;The generated solution needs to be extended.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At that point, simply knowing how to prompt an AI isn't enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  I think we need a different approach to AI-assisted development.
&lt;/h2&gt;

&lt;p&gt;Rather than treating AI as a machine that produces finished solutions, we can treat it as a tool for developing our engineering understanding.&lt;/p&gt;

&lt;p&gt;Here's a simple approach I want to encourage:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Understand the problem first.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before asking AI for a solution, understand what you're trying to solve.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Ask why, not just how.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Don't stop at receiving an implementation. Explore why a particular data structure, algorithm, design pattern, or abstraction was chosen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Challenge the implementation.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What are its limitations? What happens with unexpected input? Is there a simpler or more efficient approach?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Rebuild parts of it yourself.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Close the AI assistant and see whether you can implement the underlying concept independently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Explain what you've built.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you cannot explain how your implementation works, you probably have more learning to do.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bigger picture
&lt;/h2&gt;

&lt;p&gt;I don't think AI makes understanding computer science less important.&lt;/p&gt;

&lt;p&gt;If anything, I think it makes understanding even more valuable.&lt;/p&gt;

&lt;p&gt;When generating code becomes easier, the ability to reason about that code, evaluate its correctness, recognize trade-offs, and make sound engineering decisions becomes increasingly important.&lt;/p&gt;

&lt;p&gt;Perhaps the goal shouldn't be to become a developer who can generate code faster than everyone else.&lt;/p&gt;

&lt;p&gt;Perhaps it should be to become a developer who understands what they're building, regardless of the tools they use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI can help you write the code. Make sure you understand the engineering.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What's your approach to learning and understanding code when working with AI coding assistants?&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>discuss</category>
      <category>ai</category>
    </item>
    <item>
      <title># Windows Found My Bug Before I Did. I Just Had to Read the Error Message.</title>
      <dc:creator>Joseph Boafo Afful</dc:creator>
      <pubDate>Thu, 05 Nov 2026 01:29:16 +0000</pubDate>
      <link>https://dev.to/arcaenux/-windows-found-my-bug-before-i-did-i-just-had-to-read-the-error-message-3f1f</link>
      <guid>https://dev.to/arcaenux/-windows-found-my-bug-before-i-did-i-just-had-to-read-the-error-message-3f1f</guid>
      <description>&lt;p&gt;Sometimes, the hardest part of debugging isn't finding the bug. It's actually paying attention to what the error message is telling you.&lt;/p&gt;

&lt;p&gt;Today, I was working on a simple Java task: splitting a string like &lt;code&gt;name=Kwame&lt;/code&gt; into a key and a value.&lt;/p&gt;

&lt;p&gt;The idea was straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Find the position of &lt;code&gt;=&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Extract everything before it as the key.&lt;/li&gt;
&lt;li&gt;Extract everything after it as the value.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here's the code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"name=Kwame"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;indexOf&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="sc"&gt;'='&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;substring&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;substring&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

&lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Expected output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name
Kwame
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simple enough, right?&lt;/p&gt;

&lt;h3&gt;
  
  
  Where I went wrong
&lt;/h3&gt;

&lt;p&gt;My first implementation looked like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;substring&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I thought I was extracting the value after &lt;code&gt;=&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;But there was one problem.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;substring(index)&lt;/code&gt; starts extracting at the index you provide. It doesn't skip that character.&lt;/p&gt;

&lt;p&gt;So instead of getting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Kwame
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I got:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=Kwame
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Java didn't complain. The code compiled and ran perfectly fine. It simply returned something I wasn't expecting.&lt;/p&gt;

&lt;h3&gt;
  
  
  Then Windows stepped in.
&lt;/h3&gt;

&lt;p&gt;I eventually passed that value into a file path, and Windows threw this exception:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Illegal char &amp;lt;:&amp;gt; at index 2: =C:/Documents
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At first, I was looking everywhere except the actual problem.&lt;/p&gt;

&lt;p&gt;But look closely:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=C:/Documents
^
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The unwanted &lt;code&gt;=&lt;/code&gt; was still there.&lt;/p&gt;

&lt;p&gt;The error message had practically pointed at the problem. I just hadn't paid enough attention to it.&lt;/p&gt;

&lt;h3&gt;
  
  
  What I learned
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. Java's substring indexing starts at zero.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"name=Kwame"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;indexOf&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="sc"&gt;'='&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;substring&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;substring&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;substring(start, end)&lt;/code&gt; includes &lt;code&gt;start&lt;/code&gt; but excludes &lt;code&gt;end&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;substring(start)&lt;/code&gt; extracts from &lt;code&gt;start&lt;/code&gt; to the end.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;index + 1&lt;/code&gt; skips the delimiter.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. Code can compile and still be logically wrong.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A successful compilation doesn't guarantee that your program is producing the expected result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Read the error message before rewriting your code.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Error messages often contain valuable clues, including the exact input that caused the failure.&lt;/p&gt;

&lt;p&gt;Sometimes the answer is already there.&lt;/p&gt;

&lt;p&gt;I'm back on the learning streak, and these little debugging experiences are teaching me more than I expected.&lt;/p&gt;

&lt;h3&gt;
  
  
  Your turn
&lt;/h3&gt;

&lt;p&gt;What's an off-by-one error or silly debugging mistake that cost you way more time than it should have?&lt;/p&gt;

&lt;p&gt;I'd love to hear your stories.&lt;/p&gt;

&lt;h1&gt;
  
  
  Java #Programming #Debugging #SoftwareEngineering #LearningInPublic
&lt;/h1&gt;

</description>
      <category>beginners</category>
      <category>debugging</category>
      <category>java</category>
      <category>programming</category>
    </item>
    <item>
      <title>Java is interesting fr</title>
      <dc:creator>Joseph Boafo Afful</dc:creator>
      <pubDate>Sat, 03 Oct 2026 14:00:58 +0000</pubDate>
      <link>https://dev.to/arcaenux/java-is-interesting-fr-1heb</link>
      <guid>https://dev.to/arcaenux/java-is-interesting-fr-1heb</guid>
      <description>&lt;p&gt;Been getting into Java recently.&lt;/p&gt;

&lt;p&gt;The syntax isn't even the interesting part for me. I'm more interested in what I can actually build with it once I get comfortable.&lt;/p&gt;

&lt;p&gt;Still working through the fundamentals before I touch Spring Boot.&lt;/p&gt;

&lt;p&gt;We move.&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>learning</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
