Похожие чаты

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

8 просмотров

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

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

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

Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Hey, Oceaners 🌊 As we approach Phase 1 of the token merger, OCEAN and AGIX will migrate to FET starting July 1st! Here's a list of exchanges that have communicated their su...
KreigDK | Never DM first🌊
3
VIP 332 Quarterly XVS Buyback, Funds Allocation and New Tokenomics Summary This VIP outlines the protocol’s Quarterly Buyback and Funds Allocation strategy as per our Tokeno...
Venus Announcements
1
База данных не поможет. Шифрование не поможет. Какие там ещё варианты? Накидывайте.
КТ315
20
А табстоп это сообщение от окна или от элемента управления?
The Bird of Hermes
18
I love the passion, really do. I do think this is being blown way out of proportion. We are not deleting our Telegram or not allowing you to talk about anything you want, a...
Mike Herron
3
Did you guys see the latest tweet from TonGifts? 🚀
Mike
44
А как лучше конвертировать физический адрес в виртуальный при маппинге? В случае ядра у меня, например, direct mapping, первые 768МБ я как есть мапплю в higher half, а остальн...
Evg Resh
26
Hey, what is the best and maintained way of transpiling cpp to c? (As a need to support many different toolchains quickly and may not have a c++ support in the given toolch...
Meitar Reihan
11
Hey guys, did you see the latest announcement about $FUN? 🔥
Brian
21
Карта сайта