Похожие чаты

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 ответов

15 просмотров

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

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

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

Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
Ну вот просто даже давайте вот как. Какой нибудь конкретный кейс, можете в пример привести, где бч работает и приносит прикладную пользу, а не просто что бы было? Не крипту.
Alexander Andreev
22
For all those that keep asking why no pump? why this ? and why that...? Please close ur ewt chart and open 2 others - TOTAL (total mc) and BTC.D (btc dominance). Maybe BTC a...
Inn3r_G
19
"Since pnut can flip FTM easily, I'm swapping my FTM to pnut and hoping for a easy x5-x10" Perfect recipe for disaster. NFA but chances are, you'll end up as exit liquidity ...
C. A.
7
объясните пожалуйста, почему функция не работает должным образом? вроде должно брать активное окно сравнивать его размер с размером экрана, и если есть совпадение = true прове...
JF
9
AMD status update? No longer in the plan but something might be around the corner later on Chinese partner? No longer in the plan. This market does not seem to be the top ...
Ben
6
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
да кстати заметил всюда почему то всех сюда прёт, ни в одном чате столько ботов не прёт как сюда.. Может чота надо доработать?
REDis
15
Мне вот любопытно. Уже сколько времени имею соблазн купить макбук, ибо подозреваю что очень уж удобен будет в связке с другой техникой от эпл которая у меня есть, да и сам по ...
Not Yeromin
14
I get confused when people talk about the ‘bull market’ and the ‘next bull market’ as if anyone really has a clue what’s really going on in the world. First of all - there i...
Shah
1
Карта сайта