<?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: Ahmet Kaptan</title>
    <description>The latest articles on DEV Community by Ahmet Kaptan (@codescaptain).</description>
    <link>https://dev.to/codescaptain</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%2F735484%2F374de40f-152c-48f1-b26b-d6404c76899e.jpeg</url>
      <title>DEV Community: Ahmet Kaptan</title>
      <link>https://dev.to/codescaptain</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/codescaptain"/>
    <language>en</language>
    <item>
      <title>I Used Claude Code for 30 Days on My Rails App. Here’s What I Learned</title>
      <dc:creator>Ahmet Kaptan</dc:creator>
      <pubDate>Mon, 01 Jun 2026 10:06:16 +0000</pubDate>
      <link>https://dev.to/codescaptain/i-used-claude-code-for-30-days-on-my-rails-app-heres-what-i-learned-42m9</link>
      <guid>https://dev.to/codescaptain/i-used-claude-code-for-30-days-on-my-rails-app-heres-what-i-learned-42m9</guid>
      <description>&lt;p&gt;I’ll be honest: I was skeptical. Not in the “I hate AI” way, more in the “I’ve tried enough hype-driven tools to know most of them just shift the frustration around” way. But Claude Code kept showing up in conversations I trusted, so in January I made a deal with myself. Thirty days. Real project. No cherry-picking the easy wins.&lt;/p&gt;

&lt;p&gt;This is what actually happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Project
&lt;/h2&gt;

&lt;p&gt;I was working on a mid-size Rails 8 app. A SaaS product with a fairly standard setup: PostgreSQL, Sidekiq for background jobs, some API integrations, a Hotwire frontend. Not a toy project. Real users, real data, things that could break in production.&lt;/p&gt;

&lt;p&gt;The codebase had about 40k lines of Ruby. Some legacy corners I hadn’t touched in over a year. The kind of project where you sometimes open a file and just… stare.&lt;/p&gt;

&lt;h2&gt;
  
  
  Week 1: The Honeymoon Period (and Its Limits)
&lt;/h2&gt;

&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%2Fqe4kb0oygq4julywd3sj.webp" 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%2Fqe4kb0oygq4julywd3sj.webp" alt="a developer and AI in a smooth collaborative workflow, side by side at terminal and whiteboard&amp;lt;br&amp;gt;
" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first week was genuinely impressive. I pointed Claude Code at some of the more mechanical tasks: writing RSpec tests for existing methods, generating migration files, refactoring repetitive controller code. It handled these really well.&lt;/p&gt;

&lt;p&gt;The autocomplete-style suggestions inside the terminal felt different from GitHub Copilot. Claude Code seems more willing to look at broader context, across multiple files, before suggesting something. I had it generate a service object for a complex checkout flow and it actually picked up that we were using a specific currency formatting helper from a concern somewhere in the codebase. Didn’t have to tell it.&lt;/p&gt;

&lt;p&gt;But I hit the first wall around day 5. I asked it to help trace a performance issue we’d been seeing in a background job. It gave me a solid analysis of the code I showed it, suggested some improvements, but it couldn’t actually run anything, couldn’t see the real query plans, couldn’t connect the dots between the job and the database behavior. The insight was good. The diagnosis needed me.&lt;/p&gt;
&lt;h2&gt;
  
  
  Week 2: Where It Actually Saved Me Time
&lt;/h2&gt;

&lt;p&gt;This is where things got interesting. I stopped trying to use Claude Code as a senior dev and started treating it more like a very fast junior who needs clear direction.&lt;/p&gt;

&lt;p&gt;The biggest win was documentation and test writing. We had a whole module of financial calculations, some of which had been written by someone who clearly loved one-liners but not comments. I asked Claude Code to read through, explain what each method did in plain English, then generate RSpec examples for each. It did this in maybe 15 minutes. Doing it manually would have taken me a couple of hours minimum&lt;/p&gt;

&lt;p&gt;A concrete example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Original method (no docs, no tests)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calculate_proration&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;days_used&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;days_in_period&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days_used&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_f&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;days_in_period&lt;/span&gt;&lt;span class="p"&gt;)).&lt;/span&gt;&lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;

&lt;span class="c1"&gt;# Claude Code generated test:&lt;/span&gt;
&lt;span class="no"&gt;RSpec&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;describe&lt;/span&gt; &lt;span class="s1"&gt;'#calculate_proration'&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="s1"&gt;'returns correct proration for partial period'&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
    &lt;span class="n"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;calculate_proration&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;100.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)).&lt;/span&gt;&lt;span class="nf"&gt;to&lt;/span&gt; &lt;span class="n"&gt;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;50.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;end&lt;/span&gt;

  &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="s1"&gt;'rounds to 2 decimal places'&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
    &lt;span class="n"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;calculate_proration&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;100.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)).&lt;/span&gt;&lt;span class="nf"&gt;to&lt;/span&gt; &lt;span class="n"&gt;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;33.33&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;end&lt;/span&gt;

  &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="s1"&gt;'handles full period'&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
    &lt;span class="n"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;calculate_proration&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;100.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)).&lt;/span&gt;&lt;span class="nf"&gt;to&lt;/span&gt; &lt;span class="n"&gt;eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;100.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;end&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Not revolutionary, but genuinely useful. And it caught an edge case I hadn’t thought about (what happens when days_in_period is 0). I added a guard clause after that conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Week 3: The Frustrations
&lt;/h2&gt;

&lt;p&gt;Let’s talk about the bad stuff, because there was bad stuff.&lt;/p&gt;

&lt;p&gt;The context window is real. On a large Rails app, you constantly hit the limit of what Claude Code can hold in mind at once. I’d be deep in a refactor conversation, and then I’d have to re-explain something it seemed to have forgotten about from earlier in the session. This got annoying.&lt;/p&gt;

&lt;p&gt;It also occasionally does something I’d call confident wrongness. It’ll suggest an approach that sounds reasonable, uses correct Ruby syntax, but doesn’t account for something specific about your app’s architecture. If you’re junior enough not to catch it, you might ship something subtly broken. This is a real risk and I think it’s undersold in the hype.&lt;/p&gt;

&lt;p&gt;One time it suggested adding an index to a table that already had that exact index, just worded differently. Not harmful, but a reminder that it doesn’t actually know your schema, it’s reasoning from what you’ve shown it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Week 4: Finding the Right Workflow
&lt;/h2&gt;

&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%2Fg816u71u5h4l29hhykzu.webp" 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%2Fg816u71u5h4l29hhykzu.webp" alt=" " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By week four I’d settled into something that actually worked. Here’s the breakdown:&lt;/p&gt;

&lt;p&gt;Tasks where Claude Code genuinely helped:&lt;/p&gt;

&lt;p&gt;Writing boilerplate (migrations, serializers, basic CRUD). Generating test cases from existing code. Explaining unfamiliar code or gems. Refactoring specific methods when given clear constraints. Writing first drafts of API documentation.&lt;/p&gt;

&lt;p&gt;Tasks where I stopped relying on it:&lt;/p&gt;

&lt;p&gt;Debugging production issues. Performance optimization that requires real query plans. Architectural decisions. Anything touching security logic. Code that requires deep knowledge of your specific data model.&lt;/p&gt;

&lt;p&gt;The mental model I landed on: Claude Code is a force multiplier for the work you already understand. It’s not a replacement for understanding. When I knew exactly what I wanted but just didn’t want to type it out, it was fantastic. When I was genuinely uncertain about the right approach, it sometimes gave me confident-sounding guidance that I had to sanity check anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers, Roughly
&lt;/h2&gt;

&lt;p&gt;I didn’t track this scientifically, but my rough estimate: around 20–25% faster on the tasks where it was useful. Test coverage on the financial module went from embarrassing to solid in a couple of sessions. I closed 3 tickets that had been sitting in the backlog for weeks because the friction of “I’ll need to write all those tests” was lower.&lt;/p&gt;

&lt;p&gt;One thing I didn’t expect: it made me a better reviewer of my own code. When you’re explaining a problem to Claude Code clearly enough for it to help, you often figure out the answer yourself in the process. Rubber duck debugging, but the duck sometimes responds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Would I Keep Using It?
&lt;/h2&gt;

&lt;p&gt;Yes. With caveats.&lt;/p&gt;

&lt;p&gt;If you’re expecting it to write your app for you, you’ll be disappointed and you’ll ship bugs. If you treat it as a fast, tireless pair programmer who needs direction and fact-checking, it’s genuinely valuable.&lt;/p&gt;

&lt;p&gt;The Ruby LSP integration is worth mentioning too. Running Claude Code alongside a solid LSP setup in VS Code or Neovim makes the experience noticeably smoother. Autocomplete, inline docs, go-to-definition, all working together with the AI assistance on top. That combination is the closest thing I’ve felt to actual pair programming with someone who’s always available.&lt;/p&gt;

&lt;p&gt;Thirty days in, I’m not going back to working without it. But I’m also not pretending it’s magic. It’s a tool. A good one. Use it like one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enjoyed this?
&lt;/h2&gt;

&lt;p&gt;If this saved you some headaches, consider following me on Medium. I write about Ruby, Rails, and JavaScript with a focus on real-world problems and honest takes.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://medium.com/@codescaptain" rel="noopener noreferrer"&gt;medium.com/@codescaptain&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How do you add Medium or Dev.to articles to your GitHub Profile?</title>
      <dc:creator>Ahmet Kaptan</dc:creator>
      <pubDate>Wed, 20 Dec 2023 21:23:36 +0000</pubDate>
      <link>https://dev.to/codescaptain/how-do-you-add-medium-or-devto-articles-to-your-github-profile-32bk</link>
      <guid>https://dev.to/codescaptain/how-do-you-add-medium-or-devto-articles-to-your-github-profile-32bk</guid>
      <description>&lt;p&gt;Hello folks, 2 days ago, I asked myself, “How can I add Medium articles to my GitHub Profile?” So I googled it and found some articles. I read them, and the articles provided some repositories, but the projects are outdated and don’t work. I decided to create an open-source project for this. We can call an API to get an article as a responsive SVG and showcase it on our GitHub profiles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/codescaptain/rails-medium-snippet" rel="noopener noreferrer"&gt;The Repo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The source of Medium and Dev.to articles&lt;br&gt;
I use the API:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;https://api.rss2json.com/v1/api.json?rss_url=https://medium.com/feed/#{@the_medium_username}")&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;code&gt;https://api.rss2json.com/v1/api.json?rss_url=https://dev.to/feed/#{@the_medium_username}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The API gives the user’s &lt;strong&gt;latest 10 articles&lt;/strong&gt;. So that is it. We already have data.&lt;/p&gt;
&lt;h3&gt;
  
  
  Medium Snippet API
&lt;/h3&gt;

&lt;p&gt;I have been using Ruby on Rails in the project. The Medium Snippet API allows users to retrieve and display the latest 10 &lt;strong&gt;Medium&lt;/strong&gt; or &lt;strong&gt;Dev.to&lt;/strong&gt; articles for a given username. Users can add these articles to their GitHub profiles by providing the username and index parameters.&lt;/p&gt;

&lt;p&gt;I am currently maintaining it and there are to-dos.&lt;br&gt;
Like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Update snippet card style&lt;/li&gt;
&lt;li&gt;Add a new style for white mode theme&lt;/li&gt;
&lt;li&gt;…&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The API finds articles from the username with this link:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;https://medium-snippet-dc633c4f39a0.herokuapp.com/api/article.svg?username=@codescaptain&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;index=0&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;source=medium

https://medium-snippet-dc633c4f39a0.herokuapp.com/api/article.svg?username=@codescaptain&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;index=0&lt;span class="err"&gt;&amp;amp;&lt;/span&gt;source=dev_to
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;username: your &lt;strong&gt;medium&lt;/strong&gt; or &lt;strong&gt;dev.to&lt;/strong&gt; username/profile&lt;/li&gt;
&lt;li&gt;index: your recent article index. e.g.: 0 means your latest article.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Example Medium
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Code:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[![My Medium story](@codescaptain&amp;amp;index=1)](#)"&amp;gt;https://medium-snippet-dc633c4f39a0.herokuapp.com/api/article.svg?username=@codescaptain&amp;amp;index=1)](#)
[![My Medium story](@codescaptain&amp;amp;index=0)](#)"&amp;gt;https://medium-snippet-dc633c4f39a0.herokuapp.com/api/article.svg?username=@codescaptain&amp;amp;index=0)](#)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Output(the article has been changing depending index):
&lt;/h4&gt;

&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%2Fszxr3eblm4up6c79m10o.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%2Fszxr3eblm4up6c79m10o.png" alt=" " width="799" height="504"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contact&lt;br&gt;
For inquiries, you can reach out through my &lt;a href="https://github.com/codescaptain" rel="noopener noreferrer"&gt;GitHub Profile&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ruby</category>
      <category>rails</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
