Top Use Cases for Programming with AI

Top Use Cases for Programming with AI11:39

Download information and video details for Top Use Cases for Programming with AI

Uploader:

Lex Kartynnik

Published at:

3/5/2024

Views:

1.5K

Video Transcription

Speaker 1

Hello everybody.

Today we gonna discuss about how programmers can use AI chats right inside the IDE.

So move on.

Speaker 2

Before we move deeper to the topic, I need to tell you what the ideas currently support AI tooling.

In my experience, I'm using Visual Studio Code, Visual Studio and Rider from JetBrains.

And almost all of the topics that I'll cover today will be relevant to these ideas.

Visual Studio, Visual Studio Code from Microsoft and all of the ideas from JetBrains.

So let's start.

When I'm talking about AI tooling and IDE, I mean conversational AI.

So this is like a chat GPT, but integrated in your IDE.

And what we have here for today, we have first of all, GitHub Copilot chat.

It costs approximately $10 and including in GitHub Copilot subscription.

and github copilot chat pretty good works in visual studio and visual studio code and also it works in jetbrains ids but with some age cases speaking easier in visual studio code and in visual studio github copilot chat much more better understand the context of your project

Regardless, in JetBrains IDE, it's a little bit worse.

But for the family of JetBrains IDE, we have JetBrains AI Assistant.

It is also conversational AI made by JetBrains.

And this conversational AI can be integrated with your JetBrains IDE.

It costs...

approximately 20 bucks monthly so you can buy it and use it third one and my most lovely one it is machine.net not all of you know about machine.net machine.net is it is a startup the guys provide really cool conversational ai id integrated tool

that really great understand the whole of context of your project this tool works only in your brain's family ids but you can test it you can try it right now just check the link in the description below

And number one case, most important ones from my side, it is to use AI assistant as your pair programmer assistant.

So there are pretty familiar situation for every programmer.

when you need to start your project or you need to start some task or proof of concept you need to make some boilerplate initial code you need to create initial classes you need to imagine initial architecture and all of these tasks can

can be cause of procrastination you know and these tasks can spend not even hours but even days from pretty skilled programmer and here conversational ai can be really helpful you can just copy and paste your description of the task and ask ai to start writing a code instead of you

And then when AI provides you some example of this initial code, you can work with it.

For AI, it is task for five seconds.

For you, it can be task one week long and more.

Second important use case is to use AI Assistant as a search engine.

so for now you can search for any information related to programming right inside your ide without using google without using stack overflow from my perspective i'm using ai last one year and i noticed that during this year i didn't visit stack overflow at all but here here is some tricky picky point you need to

Remember that AI systems, AI assistant can hallucinate and can provide you outdated information.

This is related to architecture of neural networks that AI based on.

And this is because training data that AI used also can be a little bit outdated.

Whenever you use codes that provided by AI systems, do not afraid to check all of

libraries that this AI assistant recommend to you.

Third really important use case is to explain stack trace and errors.

Yeah.

While you're programming, especially when you're programming with some new libraries, with some new frameworks, with some new languages, it is pretty usual situation when you get some error or, I don't know, bug, and you don't know how to figure out it.

You need a lot of searching, a lot of googling and for now you can just copy and paste error message into AI chat and get really powerful, really useful explanation of your error.

And moreover, AI assistant can even provide you a possible solution for mitigate this error to

do not get this error again tip number four ai assistant can be extremely helpful while you're learning new technology or even new programming language so if you are skilled programmer in some programmer languages for example in javascript you can use ai assistant to provide you information in the same knowledge sphere in different languages for example you don't know how to

works generics in C sharp, but you know how it works in Java.

So you can just ask AI assistant right inside your IDE to explain how it works in C sharp and even provide an examples of code.

This is the most

delicious hot dog in poland just go to orleans fuel station and ask hot dogs parovka and serum hot dogs parovka serum bellissimo

Use case number four is to converting your code from one language to another language.

And it is not about just translation from English to Russian, for example.

It is about translation from, I don't know, JavaScript to Kotlin.

If you don't want to learn new language and you need to make small piece of code for your project on programming language that you don't know, you can write it on your familiar language and then ask AI assistant to convert this code to needed language.

Really awesome possibility.

Tip number six is to explain the code.

So if you are working with legacy code or you're working with a project that was written not by you but some programmers who are not working at the company now, you can ask about it to your AI assistant.

Just copy and paste this part of code and ask what this code do.

In my experience, all of AI assistance really good works in explanation of code.

So don't hesitate to use those systems in this way.

Next use case pretty similar to previous one, but it is not about code.

It is about documentation.

Conversational AI assistance really good in understanding of documentation of the project.

So if you have

some kind of documentation let it be swagger documentation or a bunch of redmi files just say ai conversational where this documentation placed in your project and ask everything you want about functionality of your application based on this documentation really helpful case moreover you even can just copy and paste documentation inside your

AI chat let's say place documentation in context window and ask AI chat about the stuff from this documentation tip number seven my favorite one it is creation of after commit message so whenever you're working with github or gitlab or other system of version control

system of your code version control you can use this small functionality for example in visual studio code with github copilot chats it is really convenient way to not waste your time for creation this commit message because when you have a lot of changes it can take a lot of minutes to imagine how this commit message should should be named and

AI Assistant can do it in several seconds.

So it is my lovely use case and do not hesitate to use AI Assistant.

in this way.

If you are using GitHub Copilot Chart or JetBrains AI or MachineNet, just read the documentation for get knowledge about all of the possibilities that this tooling providing to you.

Because for example, GitHub Copilot Chart and JetBrains AI and MachineNet, all of them have really good integration into IDE.

So it is not only conversational AI text box.

or chat box.

It is also a lot of possibilities through contextual menu.

It is also a lot of possibilities through key combination.

And if you know about all of these possibilities, you can be really productive programmer.

Use case is the most underestimated from developers.

It is not a secret that almost all developers hate to write unit tests because unit tests almost totally is a boiler plate.

80 or 90% of unit tests

cover just simple things that you can delegate to ai assistant if you don't write in unit test with ai assistant i don't know why just start doing that it can save a lot of hours of your time and help you do not waste your time and be more productive developer

so that's all use cases that i want to share with you today if you want more use cases or you want to discuss particular use case that i don't not cover in this video just leave the comment below and also press like button share this video subscribe to channel and see you in the next vlogging video from me thank you bye