GitHub Copilot Generated Insecure Code in 40% of Circumstances During Experiment
I thought this should have been expected.<p>Security starts with deep understanding.<p>Some standards and practices can help avoid <i>some</i> types of problems, and some are even rather effective (like airgapping your systems), but there isn&#x27;t any way to <i>assure</i> security in general other than truly understand what you are doing.<p>**<p>I feel like Copilot is the wrong direction to optimize development. This is mostly going to help people with already poor understanding of what they are doing create even more crap.<p>For a good developer those low level, low engagement activities are not a problem (except maybe for learning stage where you actually want people engaged rather than copy&#x2F;paste). What it does not help is the important parts of development -- defining domain of your problem, design good APIs and abstractions, understanding how everything works and fits together, understanding what your client needs, etc.<p>Also, I feel this is going to help increase complexity by making more copies of same structures throughout the codebase.<p>My working theory about this is this is going to hinder new developers even more than they already are by google and stack*. Every time you are giving new developers an easier way to copy paste code without understanding you are robbing them an opportunity to gain deeper understanding of what they are doing and in effect prevent them from learning and growing.<p>It is a little bit like giving answers to your kids homework without giving them chance to arrive at the answer or explaining anything about it.<p>**<p>Another way I feel this is going to hurt developers is competition in who can produce most volume of code.<p>I have already noticed this trend where developers (especially more junior but aspiring to advance) try to outcompete others by producing more code, close more tickets, etc. Right now it means skipping understanding of what is going on in favor of getting easy answers from the Internet.<p>These guys can produce huge amounts of code with relatively little actual engagement.<p>To management (especially with wrong incentives) this seems like a perfect worker, because management usually doesn&#x27;t understand the connection between lack of engagement and planning at design&#x2F;development time with their later problems (or they don&#x27;t feel it is them that is going to pay the price).<p>The Copilot is probably going to make it even more difficult for people who want to do it the right way because even starker difference in false productivity measurements.