1. Preface
I am an operation and maintenance engineer, with the ability to use @workspace and @terminal of the personal version of the Tongyi spirit code to do a quick understanding of a project, find the realization of the logic of the project, as well as the implementation of the instructions do not know how to write, or unclear about the meaning of a certain instruction, compared to the previous no spirit code, and now improve the effectiveness of the 20%, and never need to "Baidu a bit " or "Google", the use of the specific process is as follows:
Imagine that your development colleague completes the project online and submits it to you for operation and maintenance, before you have no idea where to start, if you are working in some code repository, Spirit Code can sense and analyze your code project in advance. In this way, when you need to implement new requirements or refactoring features, by asking the code, it is like an old friend who knows the project like the back of his hand, and can quickly help you generate some repetitive code, or provide brainstorming and sample code to realize the idea of requirements, and become a real "know you" coding partner.
Recently, Tongyi Spirit Code has launched a new capability: @workspace, based on the RAG technology of local codebase, which allows Spirit Code to deeply perceive your codebase, understand your needs better, and pair programming together. Let's first understand what it can do?
2. What can @workspace do for me?
2.1 Getting up to speed quickly and familiarizing yourself with a new code project
You can ask for any details about the current project, such as "What is the structure and functionality of the project?" , "Where is the code implementation for order management?", "How to build and run the current project?". Talking with Spirit Code eliminates the feeling of unfamiliarity and allows you to quickly get started with a new project.
2.2 Brainstorming to assist in realizing new requirements
You can combine the current code project, analyze the user's needs, provide implementation code or brainstorming. For example, "how to increase the user authentication logic", "to realize a function, batch add my favorite products to the shopping cart", "to increase the interface to delete articles, including the back-end controller, service, mapper, front-end vue changes" and so on, so that the code can quickly provide solutions and code. service, mapper, front-end vue changes" and so on, so that the spirit of the code quickly provide solutions and code.
Scenario 1: New projects get up to speed quickly with @workspace to familiarize themselves
Question 1: Describe the structure and function of the project, as shown below:
Question 2: How to build and run this project is shown in the following figure:
Scenario 2: @workspace assists in rapid realization of new requirements
Issue 1: Add the interface for deleting articles, including changes to the back-end controller,service,mapper, and front-end vue, as shown in the following figure:
QUESTION 2: Please help me to implement a feature to log in using cell phone number + CAPTCHA, and if the cell phone number has not been registered for an account, then it will be automatically registered with the cell phone number as shown in the below image:
3. What can @terminal do?
3.1@terminal Q&A
When you have a command you don't know how to write, or you don't know the meaning of a command, you can invoke @terminal via @ in the smart Q&A window, and then use natural language to describe the command you need, and Tongyi Linguistic Code will be able to generate the command you need. After generating the command, you can insert it into teminal with one click to execute it or let Tongyi Lingcode continue to interpret it. Of course, you can also input commands after selecting @terminal to let Tongyi Lingcode generate commands for interpretation. This is shown in the following figure:
Let's take a VUE project to try, Tongyi Ling code can easily analyze the complete structure of the project, and then explain each file in detail, so that reading the source code is no longer a problem, even if it is a white man can understand the complex logic of the project in a short period of time. As shown in the figure below:
4. Summary
Tongyi Lingcode not only automatically renews code and generates unit tests, but also optimizes code and generates detailed comments. You only need to focus on the core business logic, Tongyi Lingcode will handle those time-consuming repetitive work for you. Whether it's Java, Python or other mainstream programming languages, it can do, it is simply the developer's intimate assistant.
Tongyi Spirit Code supports 200 programming languages, compatible with Visual Studio Code, Visual Studio, JetBrains IDEs and other mainstream programming tools, as long as you write the code, it can think what you want, to bring you a new development experience.