Generative AI - Short & Sweet 03 - ?? Code Generation
[Migrating my newsletter. This is from the 16th of August.]
Welcome to?Generative AI - Short & Sweet!
To last episode (AI Image Generation): I stumbled upon this?post, showing an AI-generated short clip inspired by biology. However, I am not sure what the source of this art is though.
???The GAI topic of the week is ..
Code Generation. The generation of source code, including code refactoring, code translation, and code explanation. But, one by one.
?? Btw. NLP = Natural Language Processing, and is part of AI.
Generation:?The NLP creates source code including comments following manual code input. For example,?Deepgenx?(with video) suggests potential code succession, just after only a part of the initial comment. Others are?GitHub's Copilot,?SourceAI,?Themesberg?(CSS code generator), and some more see?here?or?here.
Refactoring:?When code needs to be re-structured one can refactor it via GAI models. For instance,?Typist’s AI?offers this functionality. The input is code, which is text, which the NLP GAI model modifies/ re-organises into better-structured code, with respect to better practices.
Translation:?Similarly, code can be translated from one language to another, from Python to Perl, from SQL to C++, etc.?This?video showcases OpenAI’s Codex capabilities to do that. Btw. as Microsoft owns both of them, it seems to be a logical move to use OpenAI’s Codex in GitHub’s Copilot.
Explanation:?You have legacy code and don’t understand it, or perhaps you want to improve your code documentation? Then, you could run a respective GAI model over it to explain it to you. For a better look & feel of code explanation, try it out yourself on?Stenography’s Dashboard.
领英推荐
Here is a screenshot of how Copilot suggests code to you. It is seamlessly integrated into the workflow:
???What could this mean?
These are just a couple of aspects that might happen, but maybe not. What is your opinion of how this tech will affect our way of working?
?
Subscribing to, giving feedback about, and sharing the?newsletter?as well as our?renowned online course?will be highly appreciated and helps a lot. ??
Thank you for reading,
Martin