Who Did This? Track Code Recommendations With Amazon CodeWhisperer

Who Did This? Track Code Recommendations With Amazon CodeWhisperer


Who Did This? Track Code Recommendations With Amazon CodeWhisperer

🔗 https://aws.amazon.com/codewhisperer/

Life of coding along with an AI-powered tool such as Amazon CodeWhisperer is very much like any pair programming sessions developers do. At some point, there is a need to figure out what code was created and by who. In this video, Tiffany Souterre explains how to use the reference log feature, which keeps track of all the recommendations made by CodeWhisperer.

0:00 - Intro to reference log
0:16 - Manually triggering reference log
1:38 - Disabling and enabling the feature
2:24 - Final thoughts

Follow AWS Developers:
👾 Twitch: https://twitch.tv/aws
🐦 Twitter: https://twitter.com/awsdevelopers
💻 LinkedIn: https://www.linkedin.com/showcase/aws

Follow Tiffany Souterre:
💻 : https://www.linkedin.com/in/tiffanyso
🐦 : https://twitter.com/tiffanysouterre

Join our AWS Community Builders Program!
https://aws.amazon.com/developer/comm

Discussion Resources:
https://aws.amazon.com/codewhisperer/
https://aws.amazon.com/blogs/aws/amaz

☁️ Build On AWS is for the hands-on, technical AWS cloud builder who wants to become more agile and innovate faster. Learn more about technical concepts, cloud infrastructure development, and everything there is to know about building incredible things with AWS. Subscribe to the Build On AWS channel for events, programs and recurring shows presented by the AWS Developer Relations team!

#AWS #CodeWhisperer #ai

💡 Any opinions in this video are those of the individual author and may not reflect the opinions of AWS.


Content

0.366 -> Hi, my name is Tiffany Souterre.
2.633 -> I'm a Developer Advocate Specialist in AI/ML at AWS.
6.899 -> Today we're going to see how CodeWhisperer can help you with reference log
11.632 -> so you can add proper license and attribution to your code.
14.931 -> Let's see how it works.
16.698 -> Okay, so now I am in my VS Code in my project
21.931 -> and we'll see how we can trigger the reference log feature.
26.797 -> So let's say we want to build a function
31.296 -> that creates a DynamoDB table.
44.295 -> See how CodeWhisperer is already giving me suggestions
49.828 -> and now we see that this suggestion
52.528 -> is a reference code under MIT license.
56.061 -> If we hit the right and left arrow keys,
59.26 -> we can see other suggestions, alternatives
63.493 -> and
65.126 -> if there are other references, like let's say, here
68.326 -> we have a reference code under Apache 2.0,
71.592 -> then we can see the different pieces of code and choose
76.392 -> which one we want, depending on which license we want to accept or not.
82.791 -> So when you accept a piece of code that was under license, you can go to the
87.591 -> CodeWhisperer reference log and see the reference of this code.
93.29 -> So you can do proper attribution to your code.
98.456 -> If you click on
99.923 -> the AWS Toolkit and CodeWhisperer
102.789 -> you can stop auto suggestions, which means that
107.122 -> if you go back to this code and try to recreate this function
110.655 -> CodeWhisperer is not going to give you suggestions.
113.721 -> You can manually trigger it
116.288 -> by hitting the Option + C key on a Mac
119.888 -> and the Alt + C key on Windows.
124.22 -> Let's do that.
127.653 -> And see now it's giving me the options that I had earlier
131.82 -> so I can take, let's say, this piece of code
138.652 -> and you'll see that
140.419 -> it is again under the reference log.
144.352 -> Congratulations, you now know how to use the reference log feature in CodeWhisperer.
149.618 -> You can now make informed decisions as to which piece of code
153.051 -> you want to take and add proper license and attribution to your code.
157.317 -> If you want to see more videos like this one, don't forget to subscribe.
160.983 -> Happy Coding.

Source: https://www.youtube.com/watch?v=qu67bvH2Y08