Ai Coding Tools

How to Write Your First 100 Lines of Code Using AI in 2 Hours

By BTW Team4 min read

How to Write Your First 100 Lines of Code Using AI in 2 Hours

Feeling overwhelmed by the idea of coding? You're not alone. For many beginners, the thought of writing even a single line of code can be daunting. But what if I told you that you could write your first 100 lines of code in just two hours using AI tools? In this guide, I'll walk you through the tools and steps needed to make that happen, drawing from our real experiences and the latest in AI coding assistance as of August 2026.

Prerequisites: What You Need Before You Start

Before diving in, you’ll need a few things set up:

  1. A Computer: Any modern computer will work.
  2. An Internet Connection: Most AI coding tools require online access.
  3. Basic Text Editor: Options include Visual Studio Code or even a simple Notepad.
  4. An Open Mind: Be ready to learn and try things out without fear of making mistakes.

Step 1: Choose Your AI Coding Tool

To get started, you need to select an AI coding assistant. Here’s a list of some of the best tools available in 2026:

| Tool Name | Pricing | Best For | Limitations | Our Take | |--------------------|-------------------------|---------------------------|---------------------------------|--------------------------------------------| | GitHub Copilot | $10/mo, $100/yr | Writing code snippets | Limited language support | We use this for quick code suggestions. | | Tabnine | Free tier + $12/mo pro | Autocompleting code | Can be buggy in complex cases | Good for beginners, but not perfect. | | Replit | Free tier + $7/mo pro | Collaborative coding | Limited features on free tier | Great for real-time collaboration. | | Codeium | Free | Code generation | Basic functionality | We don’t use it much due to limited scope.| | OpenAI Codex | $20/mo | Complex coding tasks | Expensive for casual use | Powerful but pricey; use sparingly. | | Sourcery | Free + $19/mo pro | Code optimization | Focuses on Python | We like it for code reviews. | | Ponic | $5/mo | Basic coding tasks | Limited AI capabilities | A good starting point for absolute newbies.| | AI Dungeon | Free | Game coding | Not focused on traditional coding| Fun for creativity, not practical coding. | | CodeGPT | $15/mo | General coding | Slower response times | Solid for general use, but not fast. | | Jupyter AI | Free | Data science projects | Only for Python | Great for data-related tasks. |

What We Actually Use

In our experience, GitHub Copilot and Replit are the most effective for quickly writing and testing code.

Step 2: Set Up Your Environment

  1. Install Your Chosen Tool: Follow the installation instructions specific to your tool.
  2. Create a New Project: If using Replit, create a new project. For local setups, create a new directory for your code.
  3. Familiarize Yourself with the Interface: Take a few minutes to explore the tool's features.

Step 3: Start Writing Code

Now, let’s start writing. Here’s a simple plan to get you to 100 lines of code:

  1. Write a Basic Function: Start with a simple function, like a calculator that adds two numbers.
  2. Use AI to Generate Code: As you type, let the AI suggest completions. This is where tools like GitHub Copilot shine.
  3. Gradually Add Complexity: After your first function, add more functions (e.g., subtraction, multiplication) and use AI to help complete them.
  4. Combine Functions: Create a main function that calls these basic functions and interacts with the user.

Expected Outputs

By the end of this step, you should have a file with at least 100 lines of code that implements a simple calculator.

Troubleshooting: What Could Go Wrong

  • AI Doesn’t Understand Your Intent: Be ready to rephrase your prompts or try different functions.
  • Errors in Code: Debugging is part of the process. Use error messages to guide your fixes.
  • Overwhelmed by Suggestions: If the AI is suggesting too much, focus on one feature at a time.

What's Next: Progressing Beyond 100 Lines

Once you’ve written your first 100 lines, consider these next steps:

  1. Refactor Your Code: Clean up your code for readability.
  2. Add More Features: Try adding new operations or a user interface.
  3. Explore Advanced AI Tools: Look into more complex AI tools for deeper coding tasks.
  4. Join Coding Communities: Engage with others for feedback and support.

Conclusion: Start Here

Writing your first 100 lines of code can be a rewarding experience, especially with the help of AI. Start with GitHub Copilot or Replit, follow the outlined steps, and don’t hesitate to experiment. Remember, the best way to learn is by doing.

If you're feeling stuck, revisit the steps or check out the tools mentioned above. Happy coding!

Follow Our Building Journey

Weekly podcast episodes on tools we're testing, products we're shipping, and lessons from building in public.

Subscribe

Never miss an episode

Subscribe to Built This Week for weekly insights on AI tools, product building, and startup lessons from Ryz Labs.

Subscribe
Ai Coding Tools

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time

10 AI Coding Tools That Will Drastically Reduce Your Debugging Time As a developer, whether you're just starting out or have years of experience, debugging can feel like a neverend

Oct 16, 20265 min read
Ai Coding Tools

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow

10 Common Mistakes When Integrating AI Coding Tools into Your Workflow As developers, we’re always on the lookout for ways to streamline our workflow and boost productivity. Enter

Oct 14, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools That Could Hurt Your Development Process

5 Myths About AI Coding Tools That Could Hurt Your Development Process As a solo founder or indie hacker, you might be lured by the promises of AI coding tools that claim to simpli

Oct 13, 20264 min read
Ai Coding Tools

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026

5 Common Mistakes Developers Make When Using AI Coding Tools in 2026 As AI coding tools have become an integral part of a developer's toolkit in 2026, many are still stumbling over

Oct 12, 20264 min read
Ai Coding Tools

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026

5 Myths About AI Coding Tools: What Every Developer Should Know in 2026 As we dive into 2026, the landscape of AI coding tools has evolved significantly, yet many developers still

Oct 11, 20263 min read
Ai Coding Tools

Why AI Coding Assistants Are Overrated for Beginners in 2026

Why AI Coding Assistants Are Overrated for Beginners in 2026 As a solo founder or indie hacker, it’s tempting to think that AI coding assistants are the silver bullet to jumpstart

Oct 10, 20263 min read