Ai Coding Tools

How to Write Your First 100 Lines of Code with AI Assistance in Under 2 Hours

By BTW Team4 min read

How to Write Your First 100 Lines of Code with AI Assistance in Under 2 Hours

If you've ever stared at a blank screen, overwhelmed by the prospect of writing your first lines of code, you're not alone. The good news? With the right AI tools, you can tackle this challenge in under two hours. In 2026, AI coding assistants are not just hype; they're genuinely useful for indie hackers, solo founders, and side project builders looking to break into coding.

Prerequisites: What You Need Before You Start

Before diving in, here’s what you should have:

  • Basic understanding of programming concepts: You don’t need to be a pro, but knowing what variables, functions, and loops are will help.
  • An AI coding assistant: We’ll cover specific tools that can guide you through the coding process.
  • A code editor: Use something like Visual Studio Code (free) or Replit (free tier available).
  • A clear project idea: Decide what you want to build. A simple web app or a script is ideal for your first 100 lines.

Step-by-Step: Writing Your First 100 Lines of Code

Step 1: Choose Your AI Tool

Here are some of the best AI coding tools available in 2026:

| Tool Name | Pricing | Best For | Limitations | Our Take | |---------------------|-----------------------------|------------------------------|-------------------------------------|-------------------------------| | GitHub Copilot | $10/mo, free trial available | General coding assistance | Limited to supported languages | We use it for quick suggestions. | | Tabnine | Free tier + $12/mo Pro | Autocomplete code snippets | Doesn’t provide full code solutions | We prefer it for JavaScript. | | Codeium | Free | Multi-language support | Not as intuitive as others | We don’t use it often, but it’s decent. | | Replit | Free tier + $20/mo Pro | Collaborative coding | Performance dips with larger projects | Great for team projects. | | OpenAI Codex | $20/mo | Advanced code generation | Requires some coding knowledge | We use it for complex functions. | | Sourcery | Free tier + $12/mo Pro | Python code improvements | Limited to Python | We don’t use it as much. | | LeetCode | Free tier + $35/mo Pro | Coding challenges and practice| More for learning than building | Skip if you're past beginner level. |

Step 2: Set Up Your Environment

  1. Install your chosen code editor.
  2. Install the AI tool: For example, if you choose GitHub Copilot, install the extension in your VS Code.
  3. Create a new project: Start a new file and set up a basic structure for your project.

Step 3: Start Coding

  1. Begin with a simple function: Use your AI assistant to generate code snippets. For instance, type function add(a, b) and let the AI suggest the body.
  2. Iterate: Build upon your initial function. Ask the AI for help with specific tasks, such as adding error handling or optimizing the code.
  3. Test your code: Run your code frequently to ensure everything works as expected.

Step 4: Get Feedback

Use your AI tool to review your code. For example, with GitHub Copilot, you can ask for suggestions on improving your code readability or efficiency.

Step 5: Finalize and Document

Once you have your 100 lines, add comments to your code. This will help you understand what you did later on and is a good practice for future projects.

Troubleshooting: What Could Go Wrong

  • AI suggestions don’t work: Sometimes, the AI might suggest incorrect code. Always double-check what it generates.
  • Overwhelmed by options: If too many suggestions come up, focus on one feature at a time.
  • Syntax errors: Make sure to familiarize yourself with the syntax of the language you're using.

What’s Next?

Once you’ve written your first 100 lines, consider expanding your project. Explore adding features, or even start a new project using what you learned. If you’re feeling brave, share your code with the community for feedback.

Conclusion: Start Here

To write your first 100 lines of code with AI assistance in under two hours, pick a simple project, choose the right AI tool, and follow the steps outlined above. You’ll find that coding is less daunting than it seems, especially with the right assistance.

What We Actually Use

In our experience, we primarily rely on GitHub Copilot for its comprehensive suggestions and ease of use. For quick snippets, Tabnine is our go-to. If you’re starting out, these tools will significantly reduce your learning curve.

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