<?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: Christian Gintenreiter</title>
    <description>The latest articles on DEV Community by Christian Gintenreiter (@cgint_2024).</description>
    <link>https://dev.to/cgint_2024</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%2F2250414%2Fcfb1d69d-f366-429e-a0d8-341d6530aee9.jpg</url>
      <title>DEV Community: Christian Gintenreiter</title>
      <link>https://dev.to/cgint_2024</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cgint_2024"/>
    <language>en</language>
    <item>
      <title>Memory Game created with open source tool Cline Dev</title>
      <dc:creator>Christian Gintenreiter</dc:creator>
      <pubDate>Tue, 22 Oct 2024 10:20:00 +0000</pubDate>
      <link>https://dev.to/cgint_2024/memory-game-created-with-open-source-tool-cline-dev-m0a</link>
      <guid>https://dev.to/cgint_2024/memory-game-created-with-open-source-tool-cline-dev-m0a</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;I already did a short article about &lt;a href="https://cursor.sh/" rel="noopener noreferrer"&gt;Cursor AI&lt;/a&gt; and some other AI tools that can help you build software (&lt;em&gt;see article &lt;a href="https://smart-ai.blog//cursor-ai-the-beginning" rel="noopener noreferrer"&gt;Cursor AI - The Beginning&lt;/a&gt;&lt;/em&gt;).&lt;br&gt;
As a big fan of open source software, I am always looking for open source tools that can help me with my work.&lt;br&gt;
So now and then I try out new tools because I do like to have multiple options and generally I think the open source movement is just awesome.&lt;/p&gt;

&lt;p&gt;People already pointed out that there are open source alternatives to the big players in the AI space like OpenAI, Google and Co.&lt;br&gt;
My experience with these tools was rather unsatisfying when compared to closed source tools like Cursor AI, Github Copilot.&lt;br&gt;
Only &lt;a href="https://aider.chat/" rel="noopener noreferrer"&gt;Aider&lt;/a&gt; stood out as a mindblowing open source tool having multi file editing capabilities and much more.&lt;/p&gt;

&lt;p&gt;I got the feeling that is was time to give it another try and get some first impressions.&lt;/p&gt;
&lt;h2&gt;
  
  
  Cline Dev
&lt;/h2&gt;
&lt;h3&gt;
  
  
  What is Cline Dev and what are its main features
&lt;/h3&gt;

&lt;p&gt;Cline Dev is an open-source AI assistant that integrates with your command-line interface and code editor.&lt;br&gt;
It leverages Claude 3.5 Sonnet's capabilities to handle complex software development tasks,&lt;br&gt;
offering a human-in-the-loop approach for safe AI-assisted coding.&lt;/p&gt;

&lt;p&gt;See &lt;a href="https://github.com/cline/cline" rel="noopener noreferrer"&gt;Cline Dev - GitHub&lt;/a&gt; for the source of this summary and more.&lt;/p&gt;

&lt;p&gt;Key features of Cline Dev include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Supports multiple API providers (OpenRouter, Anthropic, OpenAI, Google Gemini, AWS Bedrock, Azure, GCP Vertex) and local models via Ollama&lt;/li&gt;
&lt;li&gt;Executes terminal commands with user permission, allowing for package installation, build script execution, and more&lt;/li&gt;
&lt;li&gt;Creates and edits files directly in the editor, presenting diff views for user approval&lt;/li&gt;
&lt;li&gt;Analyzes images and browser screenshots, enabling multimodal workflows&lt;/li&gt;
&lt;li&gt;Monitors linter/compiler errors and fixes issues proactively&lt;/li&gt;
&lt;li&gt;Provides context management tools to efficiently handle large, complex projects&lt;/li&gt;
&lt;li&gt;Tracks token usage and API costs for transparency&lt;/li&gt;
&lt;li&gt;Offers a VSCode extension for seamless integration into the development environment&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;

&lt;p&gt;Installation was straight forward and worked without any issues.&lt;br&gt;
There is a &lt;a href="https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev" rel="noopener noreferrer"&gt;Cline Dev Plugin for VSCode&lt;/a&gt; in the marketplace.&lt;br&gt;
After installing i decided for Anthropic Sonnet 3.5 as my LLM model because I have good experiences with it in the past and I just wanted to try Cline Dev.&lt;/p&gt;

&lt;p&gt;You could go with quite some different providers and models and even local models with &lt;a href="https://ollama.com/" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt;.&lt;/p&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%2Frk28ffyfcnjnbngb3dp7.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%2Frk28ffyfcnjnbngb3dp7.png" alt="Cline Dev Provider and Model Selection" width="660" height="760"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  First Impressions
&lt;/h3&gt;

&lt;p&gt;The UI looks very tidy, professional and intuitive.&lt;/p&gt;

&lt;p&gt;Okay what should we do first?&lt;br&gt;
Why not create a little game.&lt;br&gt;
Snake is heavily used already so I wanted something different.&lt;/p&gt;

&lt;p&gt;In case you can not wait to see the result here is the video.&lt;br&gt;
Some main aspects will be explained in the text below in case you do not want to watch the video.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In the following video&lt;/strong&gt; I show you how to create a simple memory game with Cline Dev.&lt;br&gt;
It is uncut and I do not have any professional targeting or anything like that.&lt;br&gt;
With this simple video I want to show you what it actually feels in real time.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/I7NfB41Ki-U"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;You can try the game - just go to &lt;a href="https://memory.ai4you.app/" rel="noopener noreferrer"&gt;Animal Memory Card Game&lt;/a&gt; and enjoy playing. Here is the link to &lt;a href="https://github.com/cgint/cline-memory" rel="noopener noreferrer"&gt;Github - Repository for Animal Memory Card Game&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The prompt I used:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"Create a memory card game with html and typescript. Use big unicode characters of animals."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First response:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Certainly, I'll create a memory card game using HTML and TypeScript with big Unicode characters of animals.&lt;/p&gt;

&lt;p&gt;Let's break this task down into steps and implement the game.&lt;br&gt;
We need to create an HTML file for the structure of the game.&lt;br&gt;
We'll need a TypeScript file for the game logic.&lt;br&gt;
We'll also need a CSS file for styling.&lt;br&gt;
We should create a tsconfig.json file for TypeScript configuration.&lt;/p&gt;

&lt;p&gt;Let's start by creating the HTML file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My interventions:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Well - there were none necessary.&lt;/p&gt;

&lt;p&gt;My part was to accept the write actions and command executions ... and enjoy the show.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final response:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Task Completed&lt;br&gt;
I have successfully created a memory card game using HTML and TypeScript, featuring big Unicode characters of animals.&lt;br&gt;
The game includes the following components:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An HTML file (index.html) that provides the structure for the game.&lt;/li&gt;
&lt;li&gt;A TypeScript file (game.ts) that implements the game logic, which has been compiled to JavaScript (game.js).&lt;/li&gt;
&lt;li&gt;A CSS file (styles.css) that styles the game board and cards.&lt;/li&gt;
&lt;li&gt;Necessary configuration files (tsconfig.json and package.json) for proper TypeScript compilation and project management.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The game features a 4x4 grid of cards, each hiding an animal emoji. Players can click on the cards to reveal the animals and try to match pairs.&lt;br&gt;
The game is fully functional and ready to play.&lt;/p&gt;

&lt;p&gt;To play the game, simply open the index.html file in a web browser.&lt;br&gt;
The game board will be displayed with 16 blue cards.&lt;br&gt;
Click on any card to reveal the animal emoji underneath, and try to find its matching pair.&lt;br&gt;
The game will keep track of your progress and alert you when you've successfully matched all pairs.&lt;/p&gt;
&lt;h2&gt;
  
  
  My impressions and takeaways
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Very professional and well thought procedure
&lt;/h3&gt;

&lt;p&gt;I was very positively surprised how well Cline Dev did and how well thought and professionally it worked.&lt;br&gt;
What I was expecting is that it would be more like a chatbot but it actually created a full project with html, css and typescript.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Planning, performing and reflecting is done in a very professional and well thought manner completely automatically.&lt;/li&gt;
&lt;li&gt;The whole task conversation to the Anthropic API can be downloaded via "Export". I am beyond amazed.&lt;/li&gt;
&lt;li&gt;You can upload an image and Cline Dev will use it in the chat. I have to try this out more.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And you get a token usage report: &lt;em&gt;(45 tokens up looks fishy but I did not dig deeper)&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Tokens: (up) 45 (down) 3.9k Cache: +15.7k -&amp;gt; 77.1k API Cost: $0.1409
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Some details from the creation process
&lt;/h3&gt;

&lt;p&gt;The only thing I had to do was to accept the write actions and command executions.&lt;br&gt;
After a failure running some commands Cline Dev inspects the error and starts to fix it right away without any further help needed.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Verifies files after command execution.&lt;/th&gt;
&lt;th&gt;Errors during command execution are handled.&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&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%2Ftutk3lh4emvn2o2j8ia7.png" alt="Verifies files after command execution." width="674" height="414"&gt;&lt;/td&gt;
&lt;td&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%2F6lszfga9db9dwjh5gtku.png" alt="Verifies files after command execution." width="680" height="372"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Missing entries in tsconfig.json are fixed.&lt;/th&gt;
&lt;th&gt;Installs typescript also in package.json.&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&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%2Fk9h2ypjpenqvhcsjvoi5.png" alt="Missing entries in tsconfig.json are fixed." width="680" height="414"&gt;&lt;/td&gt;
&lt;td&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%2Fn1n9yw4mxc0yecpooy92.png" alt="Installs typescript also in package.json." width="676" height="496"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Inspects the resulting html file.&lt;/th&gt;
&lt;th&gt;Final message after task completion.&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&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%2Fwqdk81p2b5zfx4qj03go.png" alt="Inspects the resulting html file." width="674" height="485"&gt;&lt;/td&gt;
&lt;td&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%2F8wxyzopgd3mfmljw0akk.png" alt="Final message after task completion." width="682" height="480"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  What is left ?
&lt;/h3&gt;

&lt;p&gt;Will be interesting to see how well Cline Dev works when it comes to editing existing code.&lt;br&gt;
As going step by step is key in my opinion this will be a good indicator for the practical usefulness of Cline Dev.&lt;/p&gt;

&lt;p&gt;And I am very curious how the image upload in the chat will help to make some things clearer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;What we learned in this article:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cline Dev is a powerful tool for creating projects using AI assistance&lt;/li&gt;
&lt;li&gt;It can generate a complete, functional game (memory card game with animal emojis) from a simple prompt&lt;/li&gt;
&lt;li&gt;The tool handles HTML, CSS, TypeScript, and necessary configuration files&lt;/li&gt;
&lt;li&gt;Cline Dev demonstrates professional planning, execution, and reflection in its workflow&lt;/li&gt;
&lt;li&gt;It can automatically troubleshoot and fix errors without user intervention&lt;/li&gt;
&lt;li&gt;The tool provides detailed token usage reports and allows for conversation exports&lt;/li&gt;
&lt;li&gt;Cline Dev shows promise for both creating new projects and potentially editing existing code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Overall, Cline Dev proves to be a surprisingly capable and efficient AI-powered development assistant,&lt;br&gt;
offering a streamlined experience for creating small-scale projects with minimal user input.&lt;/p&gt;

&lt;h2&gt;
  
  
  Appendix: Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/cline/cline" rel="noopener noreferrer"&gt;Cline Dev&lt;/a&gt; (former Claude Dev)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.sh/" rel="noopener noreferrer"&gt;Cursor AI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aider.chat/" rel="noopener noreferrer"&gt;Aider&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ollama.com/" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=I7NfB41Ki-U" rel="noopener noreferrer"&gt;smart-ai.blog - Cline Dev - Create a simple memory game&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://memory.ai4you.app/" rel="noopener noreferrer"&gt;Animal Memory Card Game&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/cgint/cline-memory" rel="noopener noreferrer"&gt;Github - Repository for Animal Memory Card Game&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
  </channel>
</rss>
