Ai Coding Tools

How to Use AI Tools to Write Your First 100 Lines of Code

By BTW Team4 min read

Comparing tools? See the AI tools tested on the show.

In short

A step-by-step guide for beginners on leveraging AI coding tools to help you code your first 100 lines in under 2 hours.

If you're a beginner in coding, the idea of writing your first 100 lines of code can be both exciting and daunting. You might feel overwhelmed by the sheer amount of resources available or unsure about where to start. The good news is that AI coding tools have come a long way, especially in 2026, making it easier than ever to dip your toes into programming. In this guide, I'll show you how to leverage these tools effectively, so you can get your first lines of code written in just about 2 hours.

Prerequisites: What You Need Before You Start

Before diving into the coding process, make sure you have the following:

  1. A computer: Any machine that can run a modern web browser.
  2. An internet connection: Most AI tools are cloud-based.
  3. Basic understanding of programming concepts: Familiarity with terms like variables, functions, and loops is helpful but not mandatory.

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

Step 1: Choose Your Coding Language

Decide on a programming language that aligns with your goals. Popular choices for beginners include Python and JavaScript. I recommend Python for its readability and simplicity.

Step 2: Select an AI Tool

Here are some AI coding tools that can help you write your first lines of code efficiently:

| Tool Name | What It Does | Pricing | Best For | Limitations | Our Take | |---------------|--------------------------------------------|----------------------------------|---------------------------|------------------------------------|-----------------------------------| | GitHub Copilot| AI-powered code suggestions and completion | $10/mo for individuals | Quick code snippets | Limited language support | We use this for quick functions. | | Replit | Online IDE with AI code assistance | Free tier + $20/mo pro | Collaborative coding | Can be slow at times | Great for real-time collaboration. | | Codeium | AI code generator for various languages | Free, with premium options | Code generation | Limited debugging capabilities | We use this for generating boilerplate code. | | Tabnine | AI code completion tool | Free tier + $12/mo pro | Faster coding | Basic suggestions can be off | Useful for speeding up coding. | | CodeGPT | Conversational AI coding assistant | $15/mo | Learning and debugging | Less effective for complex tasks | We don’t use this as much. | | Ponic | AI code tutor for beginners | Free, paid features coming soon | Learning fundamentals | Limited to basic concepts | Ideal for absolute beginners. | | Sourcery | AI-powered code review | Free + $10/mo for pro | Code quality improvement | Doesn't write code for you | We don't use this for writing code.| | Polygott | Multi-language AI code assistant | Free | Diverse language support | Can be inconsistent | We use this for language-specific tasks. | | Codex | API for AI code generation | Pay-as-you-go (usage-based) | Custom applications | Requires API knowledge | Not beginner-friendly. | | AI Dungeon | Interactive storytelling with coding | Free + $15/mo pro | Learning through play | Limited coding focus | Fun way to learn coding concepts. |

Step 3: Start Coding

  1. Open your chosen AI coding tool.
  2. Begin with a simple task: For example, create a program that prints "Hello, World!".
  3. Use AI suggestions: As you type, let the AI suggest code snippets. This can save you time and help you learn best practices.

Step 4: Experiment with Modifications

Once you have the basic code written, try modifying it. Change the text being printed or add a simple function. Use the AI tool to assist you with these modifications, and don’t hesitate to ask for help if you get stuck.

Step 5: Review and Test Your Code

Run your code to see if it works as expected. If you encounter errors, use the AI tool to help debug. Most coding AIs can suggest fixes or improvements.

Troubleshooting: What Could Go Wrong

  1. Syntax errors: Check for missing punctuation or incorrect keywords.
  2. Logic errors: Ensure your code does what you intended by reviewing your logic flow.
  3. Tool limitations: Remember that AI tools might not always provide the perfect solution. Don’t hesitate to consult other resources like documentation or forums.

What's Next?

After writing your first 100 lines, consider exploring more complex projects or diving deeper into programming concepts. You might want to look into frameworks or libraries related to the language you've chosen.

Conclusion: Start Here

To get started with AI tools and write your first 100 lines of code, choose a simple project, select an AI coding tool from the list, and follow the step-by-step guide. Remember, the key is to experiment and learn from the process. Don’t be afraid to make mistakes; that's part of the journey.

If you're looking for more insights, check out our podcast, Built This Week, where we discuss tools we're testing and lessons from building in public.

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools
Ai Coding Tools

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them)

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them) In the everevolving landscape of AI coding tools, it's easy to get swept up in the hype. As indie hackers and s

Nov 30, 20263 min read
Ai Coding Tools

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026 In 2026, the landscape for indie hackers and solo founders has evolved significantly, especially with the advent

Nov 26, 20264 min read
Ai Coding Tools

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026 If you’re a developer stuck maintaining legacy code, you know the frustration. It’s like navigating a maze blindfolde

Nov 23, 20264 min read
Ai Coding Tools

10 AI Coding Tools That Will Save You Hours of Debugging in 2026

10 AI Coding Tools That Will Save You Hours of Debugging in 2026 Debugging can feel like a neverending cycle of frustration. Whether you're a solo founder or an indie hacker, spend

Nov 18, 20265 min read
Ai Coding Tools

10 Common Mistakes When Using AI Coding Tools for MVP Development

10 Common Mistakes When Using AI Coding Tools for MVP Development As a founder in 2026, you’re likely aware that AI coding tools can significantly speed up the MVP development proc

Nov 16, 20264 min read
Ai Coding Tools

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026 As a beginner developer, you’ve probably come across a ton of buzz surrounding AI coding tools. But with all the hyp

Nov 12, 20263 min read