Skip to content
AI Growth Lab
Navigation menu
AI Growth Lab

Loading lesson…

CoursesContactPrivacy

Curriculum based on Datawhale / Easy Vibe · CC BY-NC-SA 4.0

← Back to course

AI Product Builder

Chapter 1: Introduction to Programming
  1. How to Learn This Course
  2. What can you do after the course?
  3. First Programming Experience in the AI Era
  4. 3.3 Try Making Other Mini-Games
  5. 📚 Assignment
Chapter 2: Development Environment and Tools
  1. Introduction to AI Programming Tools
  2. 4. Hands-on: Build a Snake Game Locally with an AI IDE
  3. 6. How to Talk to AI Effectively
  4. 8. 📚 Assignment: Make a More Complex Game with Local AI IDE
  5. Clone from Screenshots: First Imitation Practice
Chapter 3: From Problems to Product
  1. 1. Find Real Problems
  2. 6. Build an Interactive Prototype
  3. 2. Build a Prototype in 10 Minutes: Let AI IDE Implement the Core Gameplay
  4. 4. Make the Prototype Feel Real
  5. 5. 📚 Assignment: Recreate Your Own Douyin E-commerce Workbench

📚 Assignment

On this page
  • 📚 Assignment
  • Appendix
  • Appendix 1: Do We Need Frontend Knowledge?
  • Appendix 2: What Exactly is Vibe Coding
  • Appendix 3: Model Context
  • Appendix 4: Instruction Following

📚 Assignment

Lesson Contents

  1. 📚 Assignment
  2. Appendix
  3. Appendix 1: Do We Need Frontend Knowledge?
  4. Appendix 2: What Exactly is Vibe Coding
  5. Appendix 3: Model Context
  6. Appendix 4: Instruction Following
7. Connect Real AI Capabilities
  • 7. Image understanding with Qwen3-VL
  • 12. 📚 Chapter assignment
  • 8. Polish and Deliver a Complete Product
  • 6. 📚 Assignment
  • Complete Your First AI-Native Mini Games

    In this section, you've followed the steps to experience the complete process from "conversational Snake generation" to "understanding AI-native game design thinking." The following assignments will help you turn this understanding into real skills.

    1. Fully Reproduce the AI-Native Snake Game
      • At minimum, implement: the snake can move, eating "food" changes its length and score, and hitting walls or itself ends the game.
      • During reproduction, practice sending the error description + error message + key code snippets all at once to the AI, asking it to fix things in "beginner mode."
    2. (Optional) Create 1 Original AI-Native Mini-Game or Demo
      • It can be any lightweight gameplay involving text, images, music, rhythm, etc., such as "eat words to write poems," "rhythm clicking," "generative runner," etc.
      • The focus isn't on flashy graphics, but on being able to clearly articulate: what specifically did AI help with here, and what "hard-to-do-manually or tedious" part did it solve.

    That's the complete tutorial! You may need about 4 hours to finish all the content and build your own Snake game. Don't rush—explore, experiment, and enjoy the process. If you encounter concepts you don't quite understand along the way, we recommend checking the relevant sections in the appendix below.

    Appendix

    Appendix Navigation
    Here we've compiled some foundational concepts related to this chapter: if you encounter questions like "what is frontend?" or "what exactly does Vibe Coding mean?" during your learning, you can always come back here to look them up.
    Appendix 1: Do We Need Frontend Knowledge?
    Understand where frontend fits in the overall application, and know which parts are "visible."
    Appendix 2: What Exactly is Vibe Coding
    Understand the core idea of "conversational development" and how to collaborate with AI.
    Appendix 3: Model Context
    Understand commonly heard but easily confused concepts like "context length."
    Appendix 4: Instruction Following
    Learn why models sometimes "don't understand" and how to write clearer instructions.
    Tip: You can press Ctrl/⌘+F to search for keywords, or copy confusing paragraphs to AI and ask it to explain again in a way "a complete beginner can understand."

    Appendix 1: Do We Need Frontend Knowledge?

    💡 One-line Summary

    You don't need to write code, but understanding the basic concepts helps you describe requirements to AI more effectively.

    👁️ Frontend Visible
    Everything users can see and click
    • Page titles, text, images
    • Buttons, input fields, dropdown menus
    • Game interfaces, animation effects
    ⚙️ Backend Invisible
    Data processing running on the server
    • User score storage
    • Login account verification
    • Level content distribution

    The Frontend Trio

    Think of a webpage as a house. Three types of "code" each handle one thing:

    • HTML: decides what's on the page — like drawing the house blueprint first
    • CSS: decides how it looks — like painting walls and arranging furniture
    • JavaScript: decides how it reacts — like a light switch: press it and the light turns on

    How Does Code Become a Page?

    The browser builds the frame with HTML, decorates with CSS, and switches on the power with JavaScript — three steps, and there's your webpage.

    So What Are React and Vue?

    They're "prefab tools" for building complex pages — faster and more reliable. You don't need to learn them; just know they're helpers.

    In Vibe Coding

    No code writing, just describing. Talk to AI in plain language, for example:

    "Use React to make a leaderboard page, with a score list on the right. Clicking a row shows player details below. Clean, modern style."

    To learn more, check out the Web Basics Appendix and the Frontend Evolution Appendix.

    Appendix 2: What Exactly is Vibe Coding

    💡 What is Vibe Coding? Computer scientist Andrej Karpathy (one of the co-founders of OpenAI, former head of AI at Tesla) coined the term vibe coding in February 2025. This concept refers to a coding methodology that relies on LLMs, allowing programmers to generate working code by providing natural language descriptions instead of manually writing code.

    Bilingual Vibe Coding diagram showing a person’s intent, an AI model, a rapid prototype and feedback returning to the person.

    Literally, Vibe Coding can be understood as a way of "developing by talking." The core change is: you no longer need to write code line by line, look up syntax, or debug yourself. Instead, you directly describe what you want in natural language, for example:

    "I need a login page with a phone number input field and a verification code input field." "After successful login, redirect to the homepage and display the username in the top right corner." "Give me a simple Snake game that can be controlled with keyboard arrow keys."

    The Large Language Model (LLM) will automatically translate these descriptions into real, runnable code and generate the corresponding pages, logic, and data structures. After you see the results, you can propose modifications in natural language, such as "make the button bigger," "change the background to dark," "record scores and display a leaderboard," and the AI will continue adjusting the implementation according to your requirements.

    In this mode, you don't need to learn a programming language first before writing code. Instead, you focus your main energy on: clearly stating what you want to do, judging "what's wrong" after seeing the results, and then proposing new modifications. AI handles turning these high-level ideas into concrete implementations, significantly reducing mechanical, repetitive coding work.

    You can click here to learn more about vibe coding: https://www.ibm.com/think/topics/vibe-coding

    You can click here to see more of Karpathy's shared content: https://karpathy.bearblog.dev/blog/

    How to Pretend You're a Vibe Coding Master

    In practice, during real vibe coding, we usually don't use many complex prompts. Perhaps we need a specific and moderately complex prompt for the entire program at the beginning, but after that, at each step, you may only need prompts like these:

    "There's a bug in the code, please fix it."
    "I don't want partial code, give me the complete modified code."
    "Your code still has problems."
    "Please modify again and give me the complete corrected code."
    "It was working before, why isn't it working now?"
    "Did you not understand what I meant? Don't change my original code."
    "Don't add any debugging features."
    "Don't do things I didn't ask you to do."
    "Where is the feature I asked you to implement?"
    "Can you not understand what I'm saying?"
    "I only want one function."
    "I told you to refer to my previous code."
    "Please don't add unnecessary comments."
    "Please don't modify the basic logic of my original code."
    "Help me modify the code."
    "Modify based on my code..."
    "Don't change my variable names!!!"
    "Don't change the original function names!"
    "Don't mess with my variables."
    "Don't add extra features."
    "Don't just generate a skeleton, generate the complete code."
    

    This may sound a bit exaggerated, but in reality, these are the prompts we might use in daily work. Due to the context length limitations of large language models, or sometimes because their instruction following ability isn't very strong, models may forget content discussed earlier in the conversation. In vibe coding, we tend to use models with long context and strong instruction following ability. We can judge whether a model is good through rankings or metrics of these two aspects.

    Alternatively, due to the style of training datasets, large models tend to respond in the style of their training data. For example, some speak very seriously, some like to add lots of embellishments, and some models like to add lots of comments or unnecessary modules to code.

    Appendix 3: Model Context

    Model context can be understood as AI's short-term memory. It refers to all the text content that the model can "see" and "remember" during a single conversation or task, including your previous questions, system-provided instructions, relevant materials, etc.

    It is precisely because of context that AI can understand you're continuing from previous content, enabling round after round of coherent, natural conversation. Without context, every sentence you say would appear to the model as a completely new question—it wouldn't know what you said before, and there would be no way to continue a conversation.

    Each model has its own effective context length (context window). This length is usually measured in tokens (which can be roughly understood as units of "word fragments"), and most mainstream models currently range from 32k to 128k tokens. The longer the context, the more content the model can "read" at once, for example:

    • Reading an entire lengthy paper or report in one go
    • Referencing multiple materials and cases in the same conversation
    • Having the model remember conclusions from complex discussions several rounds ago

    When your input approaches or exceeds the model's context limit, some common phenomena often appear:

    • The model starts forgetting details or key information from earlier in the long text
    • As the conversation progresses, the topic gradually drifts from the original goal
    • Across different Q&As about the same material, the referenced content becomes inconsistent

    These phenomena don't mean the model suddenly "got dumber"—they are natural results of the context capacity being used up or nearly used up.

    In practical use, we want the context to be as long as possible, while also being aware that:

    • The longer the context, the more computing resources it consumes
    • The corresponding API costs (fees) also increase accordingly

    Therefore, when designing AI applications, you need to balance letting the model see enough information with controlling costs and improving efficiency. For example:

    • Distill information that truly needs long-term retention before feeding it to the model
    • Avoid stuffing detail information that's no longer needed into the context repeatedly
    • Use external knowledge bases and similar approaches to hand "long-term memory" to the system rather than forcing it into the model's context

    Appendix 4: Instruction Following

    Instruction following refers to: after the model understands your instructions, whether it can accurately and completely execute according to your requirements. This includes not only answering questions, but also completing tasks in specified formats, styles, and steps.

    For example, the following are all instructions with clear requirements for the model:

    • Summarize this article into three key points
    • Write a reply email in a formal, polite tone
    • Translate this word into English and create an example sentence for each
    • Extract the author, time, and main events from the article

    A model with strong instruction following ability typically has these characteristics:

    • Outputs content in the required quantity For example, if asked to summarize three key points, it won't give five.
    • Covers all specified elements For example, if asked to extract author, time, and events, it won't omit any of them.
    • Follows the specified format and tone For example, if asked to use a formal tone, it won't output overly colloquial responses.
    • Doesn't make unnecessary additional extensions For example, if only asked to translate and create sentences, it won't output a large paragraph of unrelated explanations.

    In practical applications, strong instruction following ability is very important for these reasons:

    • Improved stability: The same instruction produces more consistent output structure and behavior patterns across different times and multiple runs, less likely to go off-script
    • Improved reproducibility: When you configure a prompt into a product or workflow, you can predict roughly how the model will respond, making testing and iteration easier
    • Easier system integration: When model output conforms to expected formats, it's easier to automatically interface with backend programs, workflows, or other tools

    Therefore, when selecting and evaluating a large language model, in addition to focusing on whether it's smart and has broad knowledge coverage, you also need to pay special attention to its instruction following ability. For industrial-grade applications, being able to stably and accurately execute instructions is often more important than occasionally giving a stunning answer.

    Previous
    Sign in to track progress
    Next