Ai Coding Tools

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

By BTW Team5 min read

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

If you're anything like me when I started coding, the thought of writing any code can feel overwhelming. But what if I told you that in just two hours, you could write your first 100 lines of code with the help of AI coding assistants? In 2026, the landscape of coding has been transformed by these tools, making it easier for beginners to dive into programming without the steep learning curve. Let's break down how to get you coding quickly and efficiently.

Prerequisites: What You Need to Get Started

Before we dive in, you'll need a few things:

  1. A Computer: Basic specs will do—just make sure it can run a web browser.
  2. Internet Connection: Most AI coding assistants are cloud-based.
  3. Basic Understanding of Programming Concepts: Familiarity with variables, loops, and functions will be helpful but not strictly necessary.

Step-by-Step Guide to Coding Your First 100 Lines

Step 1: Choose Your AI Coding Assistant

With dozens of AI coding assistants available, it’s crucial to pick the right one. Below is a breakdown of some popular options:

| Tool Name | Pricing | Best For | Limitations | Our Take | |--------------------|-----------------------|----------------------------------|-----------------------------------------------|--------------------------------| | GitHub Copilot | $10/mo | JavaScript, Python | Limited to supported languages; may suggest incorrect code | We use this for quick snippets.| | Tabnine | Free tier + $12/mo pro| Multiple languages | Free tier has limited features | Good for autocomplete but needs improvement.| | Replit | Free tier + $7/mo | Quick prototyping | Limited features on the free tier | Great for beginners to test code quickly.| | Codeium | Free | Various languages | No paid options, limited support | Solid for beginners, easy to set up.| | OpenAI Codex | $20/mo | Complex coding tasks | Requires API knowledge for advanced use | We don't use this because it's overkill for beginners.| | Sourcery | Free + $19/mo | Python refactoring | Focused on Python only | Nice for improving existing code, not for beginners.| | Jupyter Notebooks | Free | Interactive coding | Requires some setup for AI integration | We use this for data science projects.| | Ponic | $15/mo | Web development | New tool; still has bugs | Potential, but not yet reliable.| | CodeSandbox | Free tier + $9/mo | React and frontend work | Limited backend support | Excellent for frontend prototyping.| | AI Dungeon | Free | Game development | Not traditional coding, more for fun | Fun for creative coding, not practical.| | Cogram | Free + $10/mo | Python, JavaScript | Limited language support | Great for educational purposes.| | Kite | Free tier + $19.90/mo | Python, JavaScript | Not as robust as others for suggestions | We don't use this because it can be slow.| | Codexify | $5/mo | Learning coding | Limited features for advanced coding | Good for absolute beginners.| | DeepCode | Free tier + $15/mo | Code reviews | Focused on reviews, not writing code | Useful for improving existing code quality.| | Hasty | $10/mo | AI-assisted project management | Limited integrations | We don't use this; more project management focused. |

Step 2: Set Up Your Environment

Once you've chosen your AI assistant, set up your coding environment. For example, if you're using Replit, just sign up, create a new project, and choose your programming language (Python is a good start). You can finish this in about 10 minutes.

Step 3: Start Coding with Guidance

Now, let’s write some code. Use your AI assistant to generate code snippets. For example, if you're building a simple calculator in Python, you might start by asking your AI assistant to "Create a function that adds two numbers."

Expected output might look like this:

def add_numbers(a, b):
    return a + b

Step 4: Expand Your Code

Continue building your code by adding more functions—subtraction, multiplication, and division. Use your AI assistant to help with syntax and logic. Remember, trial and error is part of the learning process.

Step 5: Test Your Code

Once you have your functions, create a simple interface to test them. You can prompt your AI assistant to help with creating a user input section.

Step 6: Run Your Code

Run your code to see if it works as expected. If you encounter errors, don't panic! Use your AI assistant to debug. For example, you can ask, "What does this error mean?" and get guidance on how to fix it.

Troubleshooting: What Could Go Wrong

  • Code Errors: If your code throws an error, check for typos or incorrect syntax. Most AI assistants can help you debug.
  • Logic Errors: If the output isn't what you expected, revisit your logic. Ask your AI assistant for help on specific functions.
  • Environment Issues: Sometimes, your coding environment might not be set up correctly. Make sure everything is configured as per the tool's guidelines.

What’s Next?

After you’ve written your first 100 lines of code, the next step is to build something more complex. Consider exploring web development or data analysis with your newfound skills. You could even start a side project!

Conclusion: Start Here

Getting started with coding in 2026 is easier than ever with AI coding assistants. By following this guide, you should be able to write your first 100 lines of code in just two hours. Choose a tool that fits your needs, set up your environment, and start coding! If you get stuck, remember that your AI assistant is there to help.

What We Actually Use: For quick coding tasks, we rely primarily on GitHub Copilot and Replit for a seamless experience.

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

GitHub Copilot vs. Cursor: Which AI Tool is Better for Pro Developers?

GitHub Copilot vs. Cursor: Which AI Tool is Better for Pro Developers? As a pro developer, writing code can often feel like an uphill battle, especially when it comes to finding th

Apr 13, 20264 min read
Ai Coding Tools

How to Use GitHub Copilot to Write 10x Faster in 2026

How to Use GitHub Copilot to Write 10x Faster in 2026 In the fastpaced world of coding, time is money. As indie hackers and solo founders, we often juggle multiple projects, and th

Apr 13, 20264 min read
Ai Coding Tools

Five AI Coding Tools Every Beginner Should Try in 2026

Five AI Coding Tools Every Beginner Should Try in 2026 Stepping into programming can feel a bit like being thrown into the deep end without a life jacket. You know you need to swim

Apr 13, 20264 min read
Ai Coding Tools

Top 10 Advanced AI Coding Tools for Professional Developers 2026

Top 10 Advanced AI Coding Tools for Professional Developers 2026 As a professional developer in 2026, you probably find yourself juggling multiple coding projects, each with unique

Apr 13, 20265 min read
Ai Coding Tools

Bolt.new vs GitHub Copilot: Choosing the Right AI Coding Assistant for Your Projects

Bolt.new vs GitHub Copilot: Choosing the Right AI Coding Assistant for Your Projects As a solo founder or indie hacker, the last thing you want is to waste time on repetitive codin

Apr 13, 20263 min read
Ai Coding Tools

How to Integrate AI Coding Tools into Your Daily Workflow in Under 2 Hours

How to Integrate AI Coding Tools into Your Daily Workflow in Under 2 Hours As a solo founder or indie hacker, you know the struggle of balancing coding with everything else on your

Apr 13, 20264 min read