Ai Coding Tools

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

By BTW Team4 min read

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

If you’re a beginner trying to break into coding, the thought of writing your first 100 lines of code can feel daunting. But what if I told you that AI coding assistants can make this journey smoother and faster? In 2026, these tools have evolved significantly, offering incredible support for new coders. However, it's essential to know how to leverage them effectively.

In this guide, I’ll walk you through using AI coding assistants to write your first 100 lines of code. I’ll share the tools we’ve used, their pricing, strengths, and limitations, so you can choose what fits your needs best.

Prerequisites: What You Need Before Starting

Before you dive into the world of coding with AI, here are a few things you should have ready:

  • Basic Understanding of Programming Concepts: Familiarity with concepts like variables, loops, and functions will help.
  • An AI Coding Assistant Account: Choose one from the tools listed below.
  • A Text Editor or IDE: Install something like VS Code or any other code editor you prefer.

Time Estimate: How Long Will It Take?

You can expect to complete your first 100 lines of code in about 2-3 hours. This includes time spent experimenting with the AI tools and debugging your code.

Step-by-Step Guide to Writing Your First 100 Lines of Code

1. Choose Your AI Coding Assistant

Here’s a list of AI coding assistants you can use:

| Tool Name | Pricing | Best For | Limitations | Our Take | |-------------------|-----------------------------|------------------------------|--------------------------------------|-------------------------------| | GitHub Copilot | $10/mo; Free trial available| General coding assistance | Requires GitHub account | We use it for quick code snippets and suggestions. | | OpenAI Codex | $0-20/mo (API usage) | Complex problem-solving | Can be expensive based on usage | Great for brainstorming solutions. | | Tabnine | Free tier + $12/mo pro | Autocompletion | Limited to syntax suggestions | We don’t find it as helpful for learning. | | Codeium | Free | Fast code generation | Limited language support | We use this for quick prototypes. | | Replit | Free tier + $7/mo pro | Collaborative coding | Performance issues with large projects| It's nice for learning in teams. | | AI Dungeon | Free | Creative coding exercises | Not focused on traditional coding | Fun for storytelling in code! | | Sourcery | Free tier + $19/mo pro | Code optimization | Focused on Python only | Useful for refining existing code. | | Ponic | Free | Beginners and non-coders | Limited advanced features | We don’t recommend for serious projects. | | Codeium | Free | Fast code generation | Limited language support | We use this for quick prototypes. | | Jupyter Notebook | Free | Data science and visualizations| Not a traditional coding tool | Excellent for learning Python basics. |

2. Set Up Your Environment

Once you’ve chosen a tool, install it and set up your coding environment. For instance, if you’re using GitHub Copilot, integrate it with your IDE. This integration allows the AI to suggest code as you type, significantly speeding up your workflow.

3. Start Coding

Now, it’s time to write code. Here’s a simple project idea: create a basic calculator. You can break this down into the following 100 lines:

  • Define Functions: Addition, subtraction, multiplication, and division functions.
  • User Input: Use input functions to get user data.
  • Display Results: Print the results of calculations.

As you write, let the AI assistant suggest code snippets. For example, if you type def add(a, b):, Copilot might suggest the complete function.

4. Debugging

Inevitably, you’ll run into errors. Here’s how to troubleshoot effectively:

  • Read Error Messages: They often point you to the line of code that’s causing the issue.
  • Ask the AI for Help: If you’re stuck, describe your problem to the AI, and it can suggest fixes.
  • Test Incrementally: Write and test small pieces of code to avoid overwhelming yourself.

5. Review and Optimize

Once you’ve written your 100 lines, review the code for efficiency. Use tools like Sourcery or Tabnine to help refine and optimize your code. This step is crucial as it teaches you best practices in coding.

What Could Go Wrong

Here are a few common pitfalls:

  • Over-reliance on AI: While AI can suggest code, make sure you understand what it’s doing. Blindly accepting suggestions can lead to poor coding practices.
  • Ignoring Documentation: AI tools may not always provide the best solution. Refer to official documentation for better context.

What's Next?

Once you’ve completed your first project, consider moving on to more complex projects. Try integrating APIs, working on web development, or even contributing to open-source projects. Each of these steps will build your skills further.

Conclusion: Start Here

If you’re ready to write your first 100 lines of code, start by choosing an AI coding assistant from the list above. I recommend GitHub Copilot for its versatility and ease of use. Remember, the goal is to learn and grow, so don’t hesitate to experiment and make mistakes along the way.

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

How to Automate Your Development Workflow with AI in 3 Easy Steps

How to Automate Your Development Workflow with AI in 3 Easy Steps (2026) As indie hackers and solo founders, we often find ourselves buried under a mountain of repetitive tasks tha

Sep 3, 20264 min read
Ai Coding Tools

How to Boost Your Coding Velocity with AI in 30 Minutes

How to Boost Your Coding Velocity with AI in 30 Minutes As a solo founder or indie hacker, you know that time is your most precious resource. The idea of boosting your coding veloc

Sep 3, 20264 min read
Ai Coding Tools

Why Most Developers Get GitHub Copilot Wrong: 5 Myths Busted

Why Most Developers Get GitHub Copilot Wrong: 5 Myths Busted As we dive into 2026, GitHub Copilot has become a staple in many developers' toolkits. However, despite its popularity,

Sep 3, 20263 min read
Ai Coding Tools

How to Use AI Coding Tools to Boost Productivity in Under 2 Hours

How to Use AI Coding Tools to Boost Productivity in Under 2 Hours As indie hackers, we all know the struggle of trying to stay productive while juggling multiple projects. The prom

Sep 3, 20265 min read
Ai Coding Tools

Vercel vs GitHub Copilot: Which AI Tool is Right for Your Project?

Vercel vs GitHub Copilot: Which AI Tool is Right for Your Project? As a solo founder or indie hacker, choosing the right tools can be a makeorbreak decision for your project. With

Sep 3, 20263 min read
Ai Coding Tools

Why GitHub Copilot is Not the Magic Bullet for Every Programmer: Debunking the Myths

Why GitHub Copilot is Not the Magic Bullet for Every Programmer: Debunking the Myths As a programmer, I’ve been there: staring at a blank screen, hoping for a burst of inspiration

Sep 3, 20264 min read