With an AI assistant to help you, it is not difficult to solve any questions!


Obviously, I have learned a lot of knowledge consciously, but when I actually started to do the questions, there was still the dilemma of "one pen, one hand, one Leetcode for one night"? Have you ever had such an experience, the question type is not too difficult, and you can figure it out by reading the solution, but when you do it yourself, you look at the question face to face and have no way to start. Is this dilemma bothering you now or has it been overcome by you? Come share your troubles and suggestions!

Foreword:

(Reminder: AI has become an essential skill in this era. Instead of waiting for others to master AI, it is better to actively embrace AI.)
The ancients said:

There is no limit to the sea of ​​learning, but there is a limit to life, and there is no limit to pursue the limitless.

The explanation is: human life is limited, but knowledge is infinite, and if one pursues infinite knowledge with a limited life, one will be exhausted.
Of course, the author is a person who loves to learn. It is true that "the mountain of books has a road and hard work is the path, and the sea of ​​learning is boundless and hard work." The books I have read have really piled up into mountains, but I still can't live my life Life is not to talk about frustration. I originally planned to publish a book, but was rejected by the publisher because of the unpopularity; I dated a girlfriend, and finally found out that the other party didn’t really like me; I wanted to develop a game, but the boss was eager for quick success, and he was urging his life every day. rush!
Therefore, life questions are more difficult than Leetcode. I really don’t want to continue to put my life into infinite knowledge, because AI has come. Leetcode’s questions only need simple annotations. AI It can help us automatically generate code, why do we need to think hard?
Of course, the premise is that you have to know how to write notes, so let me tell you how to master the AI ​​assistant first!

1. Choose an AI assistant

Tip: There are a lot of AI assistants on the market, many of which are based on ChatGPT, and have various restrictions, such as country and region restrictions, and fees, etc.

The author also selected a solution that I think is relatively moderate from many solutions. Of course, it does not mean that other things are not good, but that I just happen to use it conveniently.
The author's combination is: Rider + CodeWhisperer
The advantages of this solution are:

  1. Rider itself is a very useful IDE;
  2. CodeWhisperer is free;
    the combination of the two is an obvious 1+1>2 solution. Of course, Rider is charged. If you are a teacher or student, you can apply for free. If you really don’t want to spend money, you can use VSCode instead. Take a combination according to your personal situation.

2. How to configure CodeWhisperer in Rider

Tip: Other IDEs are also configured in a similar way.

First open the Rider plugin window and search for AWS in the Marketplace, as shown in the figure below:

search plugin
The first AWS Toolkit is the toolbox provided by Amazon that we need, click Install, and then click Restart to restart Rider.
Open any project, find the Amazon icon of AWS in the toolbar, and click to open the AWS Toolkit, as shown in the figure below: In the figure
Open Amazon Toolbox
above, the author has registered Amazon's build ID and connected it. Before connecting, there is a button, click the button Afterwards, a navigation window will pop up. You only need to follow this navigation to open the browser to complete the registration, and then you can complete the configuration. Here are very simple steps, so I won’t repeat them here.
If you encounter any problems during the registration process, you can leave a message in the comment area, and the author will provide additional answers.

3. How to use

Tip: The usage method is too simple, so there is really nothing to write!

After connecting to Amazon's server, you only need to write comments, wait for the server to search, and then just keep pressing Enter to automatically generate code.
If there is something you don't understand, you can read the CodeWhisperer User Guide , as shown in the figure below, this user guide is written in great detail.
Instructions for use
The above are all in English, and everyone can bring their own translation tools.

4. Share your AI solutions

Tip: The author's solution is not bad at present, but it may not be able to solve all problems perfectly.

If you have a better AI solution, you can leave a message in the comment area, the author will try one by one, and then share it with more people.
Embracing AI may be a technical means to liberate our brains. This technology has advantages and disadvantages. It can only be said that the benevolent sees the benevolent and the wise sees wisdom.
As expressed in the preface, if AI can free us from endless overtime and study, that would be a good thing. Instead of struggling to solve problems, or working overtime inefficiently, why not save time to live a good life?
Life should be about us enjoying the good experiences of life, not wasting it in meaningless things.
The author's sister is often annoyed by her nephew's poor English. The author told her that she doesn't need to learn English at all, because AI will translate for us, so she shouldn't waste time learning it. But the reality is that you have to learn this to go to university. This means that our society has not yet adapted to the changes brought about by AI.
I believe this adaptation period will end soon, just like many people persuade the author to take the driver's license test, because they think the driver's license is necessary, so they can enjoy it early. But I don’t think it’s necessary. One is that I don’t have a car yet; the other is that the self-driving technology is becoming more and more mature;
Of course, these things are based on the opinions of the benevolent and the wise. There is no single solution to life, and we can only continue to adapt to this rapidly changing era!

Supongo que te gusta

Origin blog.csdn.net/qq_30137245/article/details/131612167
Recomendado
Clasificación