当前位置:网站首页>Copilot - employee, your layoff notice has been delivered
Copilot - employee, your layoff notice has been delivered
2022-06-23 21:00:00 【Four leaf flower】
Experienced for a while Copilot, Let's talk about the feeling of using it .
What is? Copilot?
Copilot yes github A product based on AI Programming aids for , The popular expression is : Help you write code .
So when it was born , Many articles write :** Programmers are going to be laid off , Programmer development tools beat programmers ** That's what I'm saying . Is that really the case ? Let's take a look at what it provides :
- According to the code written , Autocomplete code This is the main function , According to the code written by the developer , Automatic completion of subsequent codes
- According to the notes written , Automatic incomplete code If the developer writes the comments first ,Copilot According to the semantics of annotations , Automatic code generation
- According to the code written , Generate test code automatically If the developer writes a login() Method , Write below test, Will automatically complete test_login() Related test code
The actual use
After reading the above several main function introductions , It feels really powerful . Don't talk much , Come and have a try .
Apply for the use of
because Copilot It's still in the testing phase , At present, you must apply to use . This is To apply for the address , After passing , I will inform you by email .Copilot Currently, the following three models are supported IDE, The corresponding warehouse address is :
Be careful , Required after installation github To login , Students who fail to pass the application will not be able to use it for the time being , So you must apply before using .
On
Because the author is Android Development , Here is to IDEA/AndroidStudio IDE,Java Examples of practical use of language , To illustrate the actual use .
Code hinting
Write TAG It will automatically prompt when , among The gray part is the code for the prompt :
Comments are automatically prompted
When you write comments, you will automatically prompt , The first line is my comment , The second line is the prompt code :
In addition to these , If the developer writes comments , Whether in Chinese or English , It will also automatically prompt the developer , So it's not just the code that it complements , It also contains comments, etc .
Too many examples , There are no more examples here . Overall, the experience is good , If the developer feels the prompt is wrong , You can use shortcut keys to switch between different prompts , And its hints are not static , As the number of uses increases , According to the usage habits of developers , Give different suggestions , Generally speaking, it conforms to AI The identity of the .
Other languages
Copilot At present, I am good at languages , except Java, It also includes Python、JavaScript、TypeScript、Ruby and Go, The others Not good at What about your language ?
Kotlin
kotlin Automatic code generation :
Dart
in general , In other languages ,Copilot The tips are also excellent , You can use it safely and boldly .
principle
Copilot So strong , So how did it come true ? The official explanation is :
OpenAI Codex Trained in open source and natural language , So it understands programming and human language . GitHub Copilot The Editor Extension sends your comments and code to GitHub Copilot service , Then the service uses OpenAI Codex To compose and suggest individual rows and entire functions .
Let's be frank , It is based on the code written by the developer , A snippet of code written by the developer , Send to server , And then according to Github Open source code on , Give the best advice , Then return to the developer . The core of the principle is AI, as well as Github A lot of source code on Training data provided .
Safe hidden trouble
The above principle says ,Copilot Will send your code snippet to its server , Is there a potential safety hazard ? Let's take a look at its statement :
The developer's individual code snippets will not be shared with other users
https://docs.github.com/en/github/copilot/about-github-copilot-telemetry
Stored code snippets are encrypted , Including your url, Database address , Account password, etc :
https://docs.github.com/en/github/copilot/about-github-copilot-telemetry
Data access will be strictly restricted , Only the following members can access :
- stay GitHub Copilot Team or GitHub Designation of the work of the platform health team GitHub personnel ( Employees and contractors ) visit
- stay Azure Work on or with Azure Working together Microsoft personnel ( Employees and contractors ) and / or GitHub Copilot The team , as well as
- stay GitHub Copilot Working on OpenAI staff
https://docs.github.com/en/github/copilot/about-github-copilot-telemetry
in general , Data security is guaranteed . If you are in a sensitive position , Or in projects requiring less confidentiality , Better not to use , In this respect, it is best to align with the relevant policies of the developer company .
Last
Copilot In the process of experiencing , My strongest feeling is , It can intelligently help me prompt some template sample code , The template sample code is common IDE You can't do it .
I would like to call it The strongest code prompt tool , It can't replace developers to write code , It is a tool to help developers assist in programming .
and Copilot The original meaning of is also the meaning of the co pilot , As its description says :
You’re the pilot With GitHub Copilot, you’re always in charge.
边栏推荐
- Advantages of token mechanism over cookie mechanism
- 打新债到底是用什么软件比较安全?打新债平台有哪些
- WinDbg loads mex DLL analysis DMP file
- Memory patch amsi bypass
- 【Golang】快速复习指南QuickReview(七)——interface
- JS chain call
- 徽商期货交易软件正规吗?如何安全下载?
- Realize vscode to write markdown documents + pictures to be automatically uploaded to Tencent cloud cos
- Command line add user set password never expires add remote group add administrator group
- 【Golang】类型转换归纳总结
猜你喜欢

FPGA based electromagnetic ultrasonic pulse compression detection system paper + source file
Implementing MySQL fuzzy search with node and express

Use of the vs2022scanf function. An error is reported when using scanf - the return value is ignored: Solutions
Application of JDBC in performance test

Syntax of SQL union query (inline, left, right, and full)

Ugeek's theory 𞓜 application and design of observable hyperfusion storage system

Yaokui tower in Fengjie, Chongqing, after its completion, will be the safety tower for Sichuan river shipping with five local scholars in the company

JS advanced programming version 4: generator learning

重庆 奉节耀奎塔,建成后当地连中五名进士,是川江航运的安全塔

SQL聯合查詢(內聯、左聯、右聯、全聯)的語法
随机推荐
数字化采购转型解决方案:SaaS采购管理平台推进企业阳光采购
Advantages of token mechanism over cookie mechanism
Where should DNS start? I -- from the failure of Facebook
Importance and purpose of test
Setinterval stop
SQL聯合查詢(內聯、左聯、右聯、全聯)的語法
Whether the offsetwidth includes scroll bars
Configure two databases in master-slave database mode (master and slave)
打新债到底是用什么软件比较安全?打新债平台有哪些
JS chain call
ntpupdate. tencentyun. Com has been eliminated
Advantages of short video automatic audit? What are the difficulties of manual audit?
Emmet syntax specification
Spingboot reads the parameter values in the YML configuration file
Implementation of flashback query for PostgreSQL database compatible with Oracle Database
【Golang】深究字符串——从byte rune string到Unicode与UTF-8
Excel text function
Is Huishang futures trading software formal? How to download safely?
同花顺网上开户安全吗,佣金高不高
Using asp Net core MVC framework for building web applications