top of page

QR Code Generator and Vibe Coding

  • Writer: Renee Li
    Renee Li
  • Oct 12
  • 2 min read

This is another exercise related to Code with Mosh, Python projects for beginner.


This is a very light exercise code wise, but it got me intrigued on a third party library, pypi.org.

Basically, this third party library does a lot of the heavy lifting for us and all we need to do just to follow the instructions and install to terminal and act accordingly.


In this case, it only took 4-5 lines to get the qr code generated for my website, rococomakes.ai.


Also, before I go to the implementation, I would like to mention Copilot again! I know many of us already using it and know how good they are, but I still want to take this opportunity to show my appreciation to Copilot, ChatGPT, DeepSeek, Perplexity, Manus and some other AI tools that I have used along the way.


Which leads us straight into one of the most electrifying ideas gaining traction lately—


Vibe Coding

I asked Copilot the other day, what is Vibe Coding, Copilot said:


Vibe coding is a conversational, AI-driven approach to software development where the programmer guides a large language model (LLM) using natural language prompts, rather than manually writing or reviewing code. It emphasizes intuition, iteration, and experimentation over traditional structure and correctness.

Coined by Andrej Karpathy in early 2025, vibe coding refers to a radically intuitive style of programming where the developer “gives in to the vibes”—describing goals, testing outputs, and refining behavior through dialogue with an AI assistant.


Instead of writing code line-by-line, you:

  • Describe what you want (e.g., “Make a Python app that tracks my expenses”)

  • Let the AI generate the code

  • Run it, observe what happens

  • Give feedback like “Add error handling” or “Make it prettier”

  • Repeat until it feels right


In application to this exercise, after I installed the QRcode library, I had an issue at run time. I just forwarded error that terminal told me to Copilot and got a solution right away.


What went wrong?
  • You’ve installed qrcode and pillow for Python 3.13 ARM64.

  • But your script is running with Python 3.13 x64, which doesn’t have those packages installed.


How to fix it?

Run this command using the exact Python executable that runs your script:

C:/Users/rococ/AppData/Local/Programs/Python/Python313/python.exe -m pip install "qrcode[pil]"


After That

You can re-run your script:

python "c:/Documents/python projects/qrcoce.py"


ree

So just like that, Copilot helped me fixed the issue.


Okay, somebody might argue that this is not really vibe coding as you are not really describing what you want to AI. You just simply throw an error to AI for a solution. They are not wrong. But I do think this is such a easy-to-understand and simple example of how AI helps achieve goals and get what we want. For me, this is truly an another level of abstraction.


I will definitely brings in more vibe coding related in future exercise and projects. But for now, without further due, let's the implementation.


rococo makes QR code generation
rococo makes QR code generation

ree

Stay tuned!

Comments


bottom of page