What's the best AI ...
 
Notifications
Clear all

What's the best AI for coding in Python and JavaScript?

7 Posts
8 Users
0 Reactions
124 Views
0
Topic starter

I’m currently diving into a full-stack project where I’m juggling React for the frontend and FastAPI for the backend. While I’ve been using ChatGPT, I find that it occasionally struggles with the latest syntax or maintaining context across my entire project structure. I really need a tool that can handle complex JavaScript logic and help me debug Python decorators without constant back-and-forth. I’ve heard a lot of buzz about Claude 3.5 Sonnet and the Cursor IDE integration lately, but I’m not sure which one is actually better for daily use. Has anyone compared these specifically for a JS/Python workflow? Which AI currently offers the best balance of code accuracy and speed for these two languages?


7 Answers
12

I went through this last year when I was migrating a legacy app to a FastAPI and React setup. Honestly, the struggle with context is real... I feel u. ChatGPT was great for snippets but it kept hallucinating my backend routes when I was writing frontend hooks.

Here is what I found while messing around with different setups:

• Claude 3.5 Sonnet: This was a total game changer for my React components. It handles the latest JS syntax way better than GPT-4o, especially with complex state management. It just seems more 'logical' for frontend stuff?

• GitHub Copilot: I still keep this active for the inline completions. It is super snappy for boilerplate Python decorators, but it doesn't really 'understand' the whole project as well as Cursor AI Code Editor does (which the previous guy mentioned).

• Supermaven: If you want insane speed, this one is crazy fast. The 1M token window is legit for huge files, tho it maybe struggles a bit more with logic compared to Claude.

I ended up sticking with the Claude integration inside Cursor mostly cuz the project indexing is just too good to ignore for full-stack work. It's been working well for me so far, no complaints really!! gl with the project.


11

TL;DR from this thread: most agree Cursor is best for context, but Claude 3.5 Sonnet via Continue.dev is the big budget win. I'm kinda cautious about data safety tho, so maybe check the privacy settings before indexing ur whole project!! I'd suggest the pay-per-token model since it's way cheaper than a $20 monthly sub if you aren't coding 24/7. anyway, hope that helps u decide... gl!


5

Basically, you gotta switch to Cursor AI Code Editor. I've been doing full-stack with FastAPI and React for years, and ChatGPT just doesn't cut it anymore for deep project context. Cursor literally indexes ur whole project structure, so it actually knows how your backend routes connect to your frontend hooks. Plus, you can use Claude 3.5 Sonnet directly inside it. In my experience, Claude is way more precise with Python decorators and complex JS logic than GPT-4o. It doesn't hallucinate old syntax as much... honestly, it's a game changer. The "Composer" mode in Cursor lets you edit multiple files at once, which is a lifesaver for those React/FastAPI refactors. Seriously, just try the free trial, you wont go back lol. Cheers!


4

In my experience, Claude 3.5 Sonnet via Continue.dev is the best value. Its way more precise with FastAPI than ChatGPT, and tbh you only pay for the tokens you actually use... saves money.


3

+1


2

Following this thread


1

Works great for me


Share: