Похожие чаты

Do you use AI to create unit tests? JUnit 5/Spock

Framework/...

What tools do you use? What prompts do you use?

Please, share you experience!

6 ответов

18 просмотров

I use github copilot for almost a year already. I don't use prompts explicitly in 99% cases, I just start writing test or main code and it suggests me correct pieces. It follows my style. And it guesses what test should do in majority of cases. If not, I just start writing it myself and copilot gets it along the way. The way how I use prompts when I have to use it, is to just type a comment what I need, and copilot reads it and generates appropriate code. Same with tests. Though I usually write such prompts/comments individually for given/when/then sections only. For the whole test I never write prompts, it's enough to write test method name (or even start writing it), and it guesses it correctly. Copilot now has "Chat" feature, available in VS Code only, it allows to give it prompts in chat mode. Maybe that's what you're looking for. I don't miss this feature in intellij TBH, as it's way too time consuming for what it provides. I'm good with prompts in form of comments for this purpose. I mean, it would be nice to have it in intellij, but it's not enough for me to consider VS Code.

Rabestro- Автор вопроса
Dmytro Buryak
I use github copilot for almost a year already. I ...

Does copilot send your code to some server outside? I asked because ChatGPT and AI Assistant from JetBrains do so (if I correct) and this prevent to use AI in commercial development

Rabestro
Does copilot send your code to some server outside...

I think it does but default but you can disable that behaviour.

Rabestro
Does copilot send your code to some server outside...

It kind of does. It sends not your code, but rather your prompts and generated snippets. And in practice, generated snippets use lots of enclosing code, so in the end - yes, it sends your code, or "some information" of your code. > this prevent to use AI in commercial development No, why do you think so? For example, I use it. Security team in our organization evaluated copilot and allowed to use it. If your thinking was true, then cloud providers wouldn't exist. And version control platforms like github, gitlab, bitbucket, and so on, would not exist either. The main obstacle here is not whether copilot/jetbrains/chatgpt/whatever sends proprietary data to some remote server or not, but rather whether you trust the owners of that server or not. If you don't trust them, or privacy policy doesn't fit you, then you won't be able to use it. You can read more about privacy, data protection, and what is being sent here https://github.com/features/copilot

Rabestro
Does copilot send your code to some server outside...

To be clear, OpenAI GPT admits to sending analytics if you use ChatGPT (the app). It doesn’t say the use API results for analytics afaik, so you can use it for commercial development if that’s the blocker

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта