search
HomeWeb Front-endJS TutorialMy first experience with Cursor + Claude Sonnet

My first experience using Cursor as an IDE and Claude 3.5 Sonnet to develop software

Minha primeira experiência com Cursor + Claude Sonnet

I believe that by now you have heard of, or at least seen something related to Cursor. If not, here is a brief description of what it is, according to its own documentation:

Cursor is a fork of VS Code. This allows us to focus on making the best way to code with AI, while offering a familiar text editing experience.

In summary, Cursor is an IDE that has integration and functionalities directly linked to the use of AI for software development.

That said, let's look at my experience :)

I leave here the link to the repository: Game of Life

My background

So that you have a closer understanding of my experience, I will leave here some information that may be relevant to the result and my final considerations:

  • I'm a software developer, more specifically Front-end with 5 years of experience
  • I have a degree in Computer Science
  • I had never used any IDE-level extension other than Github Copilot that involved AI
  • Yes, I use ChatGPT in my daily life (I have several points about this, but that's for a next post)

Like every experience, we need to define rules:

I am REQUIRED to accept AI-generated code suggestions
Use English as a language of communication
I cannot change the code in order to find solutions to bugs and/or improve the quality of what was generated
Objective
To test everything that has been pointed out, the objective is to implement an interactive version of Jhon Cornway's "Game of Life" using Angular 17 (yes, the version is relevant to the content of this article)

Game of Life

The game of life is a cellular Automaton, which has some defined rules:

  • A living cell with 2 or 3 living neighbors remains alive.
  • A living cell with less than 2 living neighbors dies.
  • A living cell with more than 3 living neighbors dies.
  • A dead cell with exactly 3 living neighbors becomes alive.

Minha primeira experiência com Cursor + Claude Sonnet

Prompts

As previously stated, the language used was English for the entire interaction and the commands were given directly and clearly, such as:

Implements "Game of Life" in a grid with full width and height of the screen.
Add a button that randomizes the grid and another one that is going to start
the simulation. Please use Angular Material for the styles

Important: I decided to write this article a little after the test and I lost the history with the commands and the results, so I can't put 100% of what I wrote and that explains the absence of the result of each command. However, I will do a follow-up with the next steps and evolution of this project.

For each code generation, I accepted everything, ran it and asked for corrections such as layout adjustment, margin, bugs, etc.

Code quality

I can't say that the code is perfect, but I can say with ease that readable and understandable code was generated at all times, so that if necessary I would be able to intervene and correct/improve something that was generated.

Bugs/Problems

Just like us flesh-and-blood programmers, AIs also generate bugs, and my first contact was no different. I had a lot of problems with the positioning of elements in the layout (such as the statistics and visibility of the buttons), some problems with the colors of the grid and the main one: the pattern detection system doesn't work (but it is listed as next steps).

Even with the problems, the generated code was reliable and solved what was requested, requiring some adjustments here and there. It is worth highlighting that the rules of the Game of Life were all implemented without any problems or need for adjustment.

Time

I believe I spent less than 1h30m on the entire project, taking into account that I was still getting used to the shortcuts and testing some ways of carrying out the prompts. And although it's not a very complex project, I would need at least 2x that time (being optimistic) to implement it in the same way.

Positive points

  • Fast code generation
  • The flexibility of adding context to each command makes it much easier to fix bugs, create functions and look for problems you might not have known were there
  • Code that works :)
  • IDE based on VSCode, so I could simply import everything I use in my day-to-day life

Negative points

  • It is still difficult to solve some problems (mainly related to layout)
  • Although the code is functional, some implementations leave a little to be desired

Conclusion

I am very surprised and very satisfied with the quality of everything that was produced and I believe that I can benefit a lot from this on a daily basis for manual and repetitive work such as generating tests, fixing simple bugs, creating MVP's and concepts simple, so I still need to make adjustments so that the quality of the code pleases me.

Next Steps

Now that the first prototype has been made, the next steps will be to create new features for this project (I really want to fix Pattern detection and add some pre-implemented patterns like Logic Gates). Furthermore, I will create applications using technologies that I do not master (but I want to learn like Three.js) and not only accept the code, but also adjust and improve the quality of what was generated to understand the real potential.

Ah, I also want to see how v0 is working (it looks very interesting).

Again the link to the repository on Github: Game of Life.

If you've read this far, thank you very much :)
Leave your review or suggestion for future posts here

The above is the detailed content of My first experience with Cursor + Claude Sonnet. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
JavaScript and the Web: Core Functionality and Use CasesJavaScript and the Web: Core Functionality and Use CasesApr 18, 2025 am 12:19 AM

The main uses of JavaScript in web development include client interaction, form verification and asynchronous communication. 1) Dynamic content update and user interaction through DOM operations; 2) Client verification is carried out before the user submits data to improve the user experience; 3) Refreshless communication with the server is achieved through AJAX technology.

Understanding the JavaScript Engine: Implementation DetailsUnderstanding the JavaScript Engine: Implementation DetailsApr 17, 2025 am 12:05 AM

Understanding how JavaScript engine works internally is important to developers because it helps write more efficient code and understand performance bottlenecks and optimization strategies. 1) The engine's workflow includes three stages: parsing, compiling and execution; 2) During the execution process, the engine will perform dynamic optimization, such as inline cache and hidden classes; 3) Best practices include avoiding global variables, optimizing loops, using const and lets, and avoiding excessive use of closures.

Python vs. JavaScript: The Learning Curve and Ease of UsePython vs. JavaScript: The Learning Curve and Ease of UseApr 16, 2025 am 12:12 AM

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

Python vs. JavaScript: Community, Libraries, and ResourcesPython vs. JavaScript: Community, Libraries, and ResourcesApr 15, 2025 am 12:16 AM

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

From C/C   to JavaScript: How It All WorksFrom C/C to JavaScript: How It All WorksApr 14, 2025 am 12:05 AM

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

JavaScript Engines: Comparing ImplementationsJavaScript Engines: Comparing ImplementationsApr 13, 2025 am 12:05 AM

Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

Beyond the Browser: JavaScript in the Real WorldBeyond the Browser: JavaScript in the Real WorldApr 12, 2025 am 12:06 AM

JavaScript's applications in the real world include server-side programming, mobile application development and Internet of Things control: 1. Server-side programming is realized through Node.js, suitable for high concurrent request processing. 2. Mobile application development is carried out through ReactNative and supports cross-platform deployment. 3. Used for IoT device control through Johnny-Five library, suitable for hardware interaction.

Building a Multi-Tenant SaaS Application with Next.js (Backend Integration)Building a Multi-Tenant SaaS Application with Next.js (Backend Integration)Apr 11, 2025 am 08:23 AM

I built a functional multi-tenant SaaS application (an EdTech app) with your everyday tech tool and you can do the same. First, what’s a multi-tenant SaaS application? Multi-tenant SaaS applications let you serve multiple customers from a sing

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use