<?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: Red Doe</title>
    <description>The latest articles on Forem by Red Doe (@red_54).</description>
    <link>https://forem.com/red_54</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%2F1615856%2F31cfd3bd-2ca0-426f-99ee-5dfe6f7745eb.jpeg</url>
      <title>Forem: Red Doe</title>
      <link>https://forem.com/red_54</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/red_54"/>
    <language>en</language>
    <item>
      <title>From Zero to MindMaps... Without Writing a Single Line of Code? 🤯</title>
      <dc:creator>Red Doe</dc:creator>
      <pubDate>Wed, 12 Jun 2024 15:35:10 +0000</pubDate>
      <link>https://forem.com/red_54/from-zero-to-mindmaps-without-writing-a-single-line-of-code-32hl</link>
      <guid>https://forem.com/red_54/from-zero-to-mindmaps-without-writing-a-single-line-of-code-32hl</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/Red-54/MindMap"&gt;The code write by our AI overlords&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'll admit it – I’m a lazy programmer at heart.  So when I saw that viral video where some genius used OpenAI to whip up an app without coding, my inner sloth rejoiced. Could I pull off the same magic with Google’s Gemini and avoid the drudgery of typing? &lt;/p&gt;

&lt;p&gt;Challenge accepted! My mission: &lt;strong&gt;build a web app that could magically transform dull documents into beautiful MindMaps, all with the help of AI.&lt;/strong&gt;  No coding experience required… right?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Round 1:  "Hello World," Says Gemini (and a Mountain of Errors) 💪&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Armed with a blank text file and the unyielding optimism of someone who’s never actually built a web app, I summoned Gemini into my coding arena (aka my chat window).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Hey Gemini, my brilliant AI friend, let’s make a Flask app where people can upload documents, and you, with your infinite wisdom, will turn them into glorious Mermaid mindmaps!”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Gemini, bless its silicon soul, responded with a torrent of code snippets, helpful explanations (or so I thought at the time), and a Flask app skeleton. “Cool,” I thought, naively. “This AI stuff is easy!”  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Round 2:  The Encoding Labyrinth of Doom 🤯&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The honeymoon phase was short-lived.  My first boss battle?  Encoding.  Gemini dutifully generated Mermaid code, but &lt;code&gt;mermaid.ink&lt;/code&gt;, the online rendering service I was using, kept spitting back errors. &lt;/p&gt;

&lt;p&gt;"Invalid encoded code!" it screamed. "Bad Request!"&lt;/p&gt;

&lt;p&gt;Turns out, Base64 encoding wasn't enough. We ventured into the treacherous realm of URL-safe encoding, battled mysterious "pako:" strings from the Mermaid Live Editor, and I swear I saw a hex editor flash before my eyes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Round 3: Mermaid Syntax:  Where Spaces Are Deadly Weapons ⚔️&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Mermaid diagrams, those elegant visualizers of information, are beautiful… until they're not.  Gemini and I spent an eternity (or at least what felt like it) wrangling Mermaid's finicky syntax:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Missing spaces around arrows: "400 Bad Request!"&lt;/li&gt;
&lt;li&gt;Extra spaces around arrows: "400 Bad Request!"&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;graph LR&lt;/code&gt; directive:  A mystical incantation that sometimes worked and sometimes didn't.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I began to suspect that Mermaid was sentient and enjoyed tormenting me.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Round 4:  The Phantom "Syntax Error" Image 👻&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Just when we thought victory was near, a new terror emerged:  the dreaded "Syntax error in text" image.  But wait… Gemini was now generating perfectly valid Mermaid code!  What dark sorcery was this?!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4dnaalj0aidek4r986f8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4dnaalj0aidek4r986f8.png" alt="Syntax Error Image Generated by Mermaid Ink" width="512" height="109"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enter the villain: browser caching! My browser, like a stubborn mule, refused to let go of the old, error-ridden image. Clearing the cache and performing hard refreshes became my new mantra.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Result: A Frankensteinian MVP 🧟‍♂️&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Bruised, battered, but not entirely broken, I emerged from the AI coding gauntlet with a working app!  It was a Frankensteinian creation, cobbled together with duct tape and Gemini's digital sweat.&lt;br&gt;&lt;br&gt;
A diagram that was generated:-&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft9ctsx0foerrb6qgsbuh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft9ctsx0foerrb6qgsbuh.png" alt="A Mind Map generated from file containing some theory on AI" width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The UI was hideous, performance was slower than a snail in molasses, and I still had nightmares about encoding.  But it functioned!  And I hadn’t written a single line of “real” code. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnzqwnroast7lequqahw9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnzqwnroast7lequqahw9.png" alt="Hideous UI of my App" width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lessons Learned from the AI-pocalypse:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AI is a powerful tool:&lt;/strong&gt;  Gemini's ability to generate code, explain concepts, and assist with debugging was impressive. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human skills still matter:&lt;/strong&gt;  Clear communication, problem-solving, and the ability to understand (and fix!) code are essential.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Patience is a virtue:&lt;/strong&gt; When working with AI, be prepared for unexpected errors, cryptic messages, and a whole lot of head-scratching. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Quest Continues... Manually!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, armed with newfound (and hard-won) knowledge, I'm embarking on a new quest: rebuilding this app from scratch, using my own coding skills.  Will I be able to create a better, more refined version?  And how will the time and effort compare to the AI-assisted approach? &lt;/p&gt;

</description>
      <category>python</category>
      <category>ai</category>
      <category>beginners</category>
      <category>api</category>
    </item>
  </channel>
</rss>
