Getting into LLM-powered coding
Here, you get to use an LLM to produce code for you! It can just reel off a load of code for you from some English. If you’re lucky or the code is simple and commonly used enough, the code will just work straight away! This is going to save you a lot of time and effort!
Here is a series of prompts and their resulting code responses by Gemini. From these, we can start to see the sorts of things that can be done easily by chatbots and what is more difficult and error-prone.
We can then analyze and see how to improve our prompts and how to debug when we get errors.
Here is Prompt 1: Please give me an example of python code to make a button for a webpage where if you click the button it
says "hello".
This is HTML, so should be put into a web page on a website editor or it can be tested and played with in an HTML interpreter, such as https://htmledit.squarefree.com/, https://onecompiler.com/html, or https://www.w3schools.com/tryit...