DEV Community

Cover image for These 7 AI Tools Helped Me Write Better Code in 2024
Anmol Baranwal
Anmol Baranwal Subscriber

Posted on

These 7 AI Tools Helped Me Write Better Code in 2024

Coding can be hard sometimes, especially with bugs that are tough to fix.

I tried a lot of AI tools in 2024 but only 7 of those made sense for my developer workflow. The ones that actually helped me write better code.

Right now, I'm only using a couple of those but each tool on this list is worth it.

Let's understand how they helped me and how they can do the same for you.


1. Qodo

qodo

 

I've always heard that testing should be the main focus and any code that is not tested is unreliable.

I believe a little knowledge of the codebase and automating the testing part is important because it might be overkill in other cases as there are different thresholds for people to ensure that the app works correctly.

That is where I came across Qodo (previously known as CodiumAI) and it was damn useful.

It's a developer AI tool that generates meaningful tests for code. It analyzes your code, docstring, comments and then suggests tests as you code.

It's super handy for properly testing complex stuff. It mainly provides:

-→ Qodo Gen : Define the coverage goal and qodo generates the tests accordingly. Detect bugs and document them.

-→ Qodo Merge : Make PRs less painful by providing reviewers a simple walkthrough and giving code suggestions ranked by severity.

Watch this quick 1-minute demo of how Qodo helps you get zero bugs!

You can download it from VSCode Marketplace and JetBrains extension.

You would have heard about popular tools like PR Agent (for reviewing PRs) and Codiumate, they were made by the same team.

codiumate and pr agent

Check the official docs and read the difference between CodiumAI vs ChatGPT by comparing the power to generate unit tests.

🎯 Right now, what am I using Qodo for?

I'm mainly using it to validate the code by generating the tests since it's easy with context awareness. I haven't used it for every project but it's easier to use Qodo whenever I work with a new codebase (open source project).

Qodo is completely open source with all of its tools. You can check the repo below!

Star Qodo ⭐


2. Cursor

cursor

 

I have used VSCode for years and avoided AI editors due to a perception that AI-written code would take longer to debug. I assumed that it would just cancel the productivity but I gradually realized how wrong I was.

The problem is there are so many choices for AI-based editors like Cursor, Continue, Zed, Void, PearAI and I'm sure there are many more out there.

I was skeptical at first, but I chose Cursor because many developers on Twitter were talking about it (maybe the hype got to me).

In my experience, Cursor actually understands your project, unlike other editors who just say it for the sake of saying it.

It gets your coding style, knows your project structure and even picks up on your team's best practices. It's just that good.

It's a fork of VS Code so you can just import the settings, themes, keybindings and extensions to maintain the same experience. The switch is very easy which is why developers started using it.

cursor used every second

developers using cursor every second

 

I've used almost all of the features and was stunned. Let's briefly outline a few features with demo examples.

⚡ Tab

Traditional auto-complete doesn't work that well, the Tab feature in Cursor is constantly working behind the scenes, analyzing your existing code and predicting your next move.

It's very accurate because it tracks your recent changes and the overall context of your project.

next level code generation

next level code generation

 

cursor prediction

Intuitive cursor prediction (super accurate)

 

⚡ ⌘ K

This command shortcut puts the full power of AI-assisted coding which can help you achieve code generation, refactoring a big chunk of code and so much more.

code generation on demand

code generation on demand

 

quick questions to get fast answers

quick questions to get fast answers

 

⚡ Terminal

The editor extends to the terminal and you just have to use ⌘ K in the terminal.

For example, instead of trying to remember the exact find command syntax, you could just type Find all files added in the last 24 hours and let Cursor do the heavy lifting.

terminal

terminal

 

⚡ Chat

The cursor understands what file you're in and where your cursor is. It's like chatting with a dev who's looking at your screen. These conversations are context-aware which makes them far better.

context aware conversations

context aware conversations

 

visual context with image support

visual context with image support

 

⚡ Composer

This is one of the most crazy features and can help generate an entire app from scratch. Yes, complete the functional codebase in minutes with all the necessary imports and boilerplate code.

composer

generating entire app using composer

 

If you're curious to know more features, models and terminologies like context or AI review, you can explore on the official docs.

When I was starting, I just read the blog The Ultimate Introduction to Cursor for Developers by the Builder.io team. This is a complete guide and is highly recommended!

🎯 Right now, what am I using Cursor for?

I'm building my portfolio and using it to fix small bugs mainly for complex frontend work. Cursor is now my default editor and I believe that it improves productivity. I just might take the pro plan as well :)

Star Cursor ⭐️


3. ChatGPT

chatgpt

 

I remember a time in my project when I was stuck on a problem. I went through 50+ Stack Overflow threads and even asked senior developers. That’s how frustrating it was!

Then ChatGPT came along, making it easier to find information. It could’ve solved that issue much faster. Of course, when ChatGPT first launched, it wasn’t great at writing code. It took a few tries to get useful answers.

With new models like GPT-4o and GPT-4o mini, it has become much better and now has a memory with context to provide more accurate answers.

At first, I used ChatGPT and DevGPT (which now limits you to 10 requests) to cross-check answers. But I eventually stopped using DevGPT.

Today, ChatGPT is way more advanced, with plugins and agents making them even more powerful.

agents inside chatgpt

For instance, you can use DALL・E to generate a cover image based on your prompt. You can find all the agents at chatgpt.com/gpts.

dalle cover image inside chatgpt

🎯 Right now, what am I using ChatGPT for?

To be honest, I mainly use it for usual tasks like understanding code or quickly finding new information. I used it a lot in the beginning, especially for coding and manual work, when it was first released. But now, I don’t use it as much for coding.

Visit ChatGPT 🔥


4. Perplexity

perplexity

 

Whenever I'm stuck with a coding problem, Perplexity is usually my first stop. It’s like a smarter, faster search engine that gives clear answers without making me sift through a bunch of links.

I prefer Perplexity over other search engines like Bing or Google because those are often filled with ads. On Perplexity, every answer feels direct and backed up with sources.

perplexity

starting dashboard looks like this

 

This briefly outlines a few features:

⚡ There are six modes to accomplish different needs.

six modes

video mode

response through video mode

 

⚡ You can also fill up basic info to get better personalized answers.

personalized answers

⚡ You can create a custom space where you can organize information in a much better way. You can later upload files (ppt, pdf, word, excel) as a source for your knowledge database. Then you can invite collaborators to brainstorm and work together on cool ideas.

spaces

spaces

⚡ You can discover new stuff to remain updated (don't really use it) and bookmark it for later.

discover new stuff

⚡ With any query, you can search for images and videos (on the right side). You can also check all the sources and see which ones are used for each point individually.

all the sources

all the sources

 

points summarized from which sources are clearly shown

points summarized from which sources are clearly shown

 

I started using it because the user interface is very easy to pick on and the features just back that simplicity.

There is also an open source alternative of Perplexity which goes by the name of Perplexica. It uses advanced machine learning algorithms like similarity searching and embeddings to refine results and provides clear answers with sources cited.

They use SearxNG to stay current and has also 6 focus modes. You can definitely learn a bunch of stuff from the codebase.

🎯 Right now, what am I using Perplexity for?

Using it to get clear, direct answers rather than sifting through multiple Google links. Plus, endless follow-ups make it convenient for complex queries.

Visit Perplexity 🔥


5. Pieces

pieces

 

A few months ago, I saw all the hype about Pieces on Twitter and decided to try it out.

It's an AI productivity tool designed to help developers organize their chaotic workflow. What sets it apart is its completely offline approach to AI, which gives a strong sense of privacy.

The best part is their full ecosystem, which includes a powerful desktop app called Pieces OS, a Chrome extension for transferring snippets, and a VSCode extension. When used together, they make a really powerful setup.

Pieces OS uses local LLMs, so everything runs 100% locally on your machine, though you can connect to the cloud for backups, sharing and using cloud-based LLMs for code generation.

copilot in pieces

✅ I tried it for the live context which is basically hyper-aware assistance to guide you right back to where you left off. Like you can ask, What was I working on an hour ago? and it will give you all the details.

✅ You can even browse docs (web browser) and let the AI learn from them. Then you can ask questions and it will answer using those docs.

You can see the complete list of features that is available with Pieces.

I even covered a lot of interesting use cases with demo examples in the blog about how Pieces is the only AI tool you need to be a 10x developer🤯.

🎯 Right now, what am I using Pieces for?

I'm not using it right now, but I used it for a few months when working on many projects. As I said earlier, it's more powerful when you use the full ecosystem (browser extension + desktop app + VS Code extension).

Pieces is open source with all some of its tools.

Star Pieces ⭐️


6. Mintlify

mintlify

 

I understood the importance of documentation as a developer. But it's a lengthy process and things can get messy sometimes.

I was looking for a solution and came across Mintlify which uses AI to help you document the code in just a few seconds.

You can watch this video for the complete walkthrough!

 

As you can see, you just have to highlight the code or place the cursor on the line you want to document. Then click on the Write Docs button (or hit ⌘ + .)

It supports more than 10 major programming languages and a lot of docstring formats like JSDoc, reST, NumPy and more.

It was simple and automatically documents the code as you write so it was quite handy.

mintlify

You can install the VSCode extension or find it on IntelliJ. You can read more on their website.

🎯 Right now, what am I using Mintlify for?

I mainly use it to document code for open source projects. I skip it when working solo on a codebase (unless it's complex) since I don’t see the need for documentation in that case. Overall, it’s much faster than starting from scratch.

Mintlify is open source.

Star Mintlify ⭐️


7. Continue

continue

 

I didn’t have a specific reason, just decided to try Continue as an AI coding assistant while working on a blog. It didn’t disappoint for sure.

The main reason might have been working with local LLMs to save some bucks. Plus, it can take context in the form of codebase, issues, docs and even files.

local llms in continue

You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains.

You can easily set Ollama with Continue, here are the snapshots of when I was installing it.

step 1

Step 1

 

step 2

run it through terminal

 

step2 complete

step2 complete

 

step3

run it through terminal

 

step3 complete

step3 complete

 

It's that simple. After you have configured it, you can use all the amazing concepts like:

⚡ Tab feature to autocomplete code suggestions.

⚡ Asking questions about your codebase.

⚡ To understand terminal errors immediately.

⚡ Kicking off actions with slash commands.

⚡ Refactor functions where you are coding.

If you're still curious, you can watch this YouTube video and find all the info on the docs.

🎯 Right now, what am I using Continue for?

I switched to Cursor since it covers most of my needs. Still, Continue is a good option if you want to avoid cloud subscription costs and rely on local LLMs (it might be slower but it's worth it).

Star Continue ⭐️


These tools made coding feel less like work (we all know coding can get tough) and more like magic. Qodo and Cursor are my favorites on the list.

Did you use any other AI tools? Let us know in the comments.

Have a great day! Till next time.

You can join my community for developers and tech writers at dub.sh/opensouls.

If you loved this,
please follow for more :)
Thank you for reading, Anmol 🥰
profile of Twitter with username Anmol_Codes profile of GitHub with username Anmol-Baranwal profile of LinkedIn with username Anmol-Baranwal

Ending GIF waving goodbye

Top comments (18)

Collapse
 
hosseinyazdi profile image
Hossein Yazdi

I didn't know many of them, thanks!

Here are more AI coding tools to know:

Collapse
 
anmolbaranwal profile image
Anmol Baranwal

I know most of these except Phind and ZZZ Code AI.

To be honest, there are so many tools on the market now that I can only try a few of them. Thanks for sharing Hossein 🔥

Collapse
 
hosseinyazdi profile image
Hossein Yazdi

Certainly, there's just way too many awesome tools to try :)

But personally, I've found Phind to be an exceptional one, it's an unlimited ChatGPT, configured specifically for programming. Definitely try it, it's awesome!

Thanks again for your awesome post as always, Anmol! 😉

Collapse
 
mfdupuis profile image
Marc Dupuis

We use Mintlify and I was not aware of that functionality. Definitely going to check it out!

I've actually found Claude to be more helpful for coding than ChatGPT. I feel like as a whole ChatGPT has significantly degraded over the past year.

BTW, we're building fabi.ai/ - I'd be curious to hear your take :)

Collapse
 
anmolbaranwal profile image
Anmol Baranwal

Hi Marc, mintlify is definitely a decent option especially if you're into documenting code plus they also provide docs with a business email.

Impressive work on Fabi 🔥 I watched the complete demo since I know how hard it can be to collect decent feedback and I really loved the concept.

There are so many small details that make the UX very powerful and letting us confirm everything with Apply to cell before giving the AI complete control is very crucial.

To be honest, my work is not very oriented to data analysis so I'm not sure what things are needed, but I can see how Fabi can be very productive.

I've shared it with my community and will explore more later on :)

Collapse
 
mfdupuis profile image
Marc Dupuis

Appreciate it! Yeah totally get it. I'm always game to connect with smart folks if you want to chat dev productivity.

Collapse
 
srbhr profile image
Saurabh Rai

Cursor is pretty amazing, has Qodo also looks great as well.

Collapse
 
anmolbaranwal profile image
Anmol Baranwal

Yes, I'm using Cursor and Perplexity right now (almost regularly). Qodo is pretty decent as well.

I think 2024 has seen a rise in great AI tools and it will just increase in 2025.

Collapse
 
dumebii profile image
Dumebi Okolo

I haven't tried perplexity for coding, mostly used the plugins on ChatGPT. I'd check it out.

Collapse
 
anmolbaranwal profile image
Anmol Baranwal

I highly recommend it, even for your articles. It will help you understand a topic much better, making it easier to explain. I've used it multiple times to learn something new (technical as well as general stuff).

Collapse
 
dumebii profile image
Dumebi Okolo

Awesome then. Off to try it out!

Collapse
 
rohan_sharma profile image
Rohan Sharma

Great list!

Collapse
 
anmolbaranwal profile image
Anmol Baranwal

Thanks for reading Rohan :)

Collapse
 
komsenapati profile image
K Om Senapati

I am using windsurf. Thats also awesome

Collapse
 
anmolbaranwal profile image
Anmol Baranwal

Oh yes, that's made by Codeium, so it must be good.

For me, Cursor handled pretty much everything, so I didn't explore any more code editors, but I will give Windsurf a try as well.

Collapse
 
best_codes profile image
Best Codes

Awesome! I'd replace Cursor with Windsurf, since I like it better.

Collapse
 
anmolbaranwal profile image
Anmol Baranwal

Awesome 🔥 Will give it a try as well. There are just too many options out there :)

Collapse
 
lawrence_wamala_b12344f9f profile image
lawrence wamala

thanks mate, got to try them out, was using ChatGPT mostly though.