Generative AI models seem to be all the talk these days. In this blog, we will be discussing everything you need to know about GenAI and whether you should be using them to code. We will also provide some free GenAI model ideas.
Artificial intelligence is useful in many scenarios. AI uses algorithms and data to complete tasks which would usually require human thought processes. This is done by collecting data and adding algorithms to this data. AI is able to gather patterns from the data and apply it to future requests. Then, it makes predictions based solely on the data it's already analyzed. As a subcategory of AI, generative AI seems to be the best of both worlds. When it comes to GenAI, the same process applies. Data is collected and analyzed, but GenAI goes one step further. These models can also create new data based solely what they were trained on. The main purpose of generative AI is to develop text, images, and music based on how they were trained. These models take raw data and generate the most likely outcomes when asked to do so. This new data can even include code. This can be a time saver for busy web devs if the code produced is properly formulated. Although AI has become a popular tool for almost everything, how accurate is the code that GenAI produces?
You can, in fact, use generative AI to code. However, in order to make the coding experience more time efficient, its important to understand how the AI works and which tools are best suited to meet your coding needs. Understanding the history of GenAI can also be useful to ensure you are using it to its full capability.
Although the roots of GenAI date all the way back to the 1960s, it still seems to be a relatively new phenomenon to web devs today. It wasn't until the 2020s when generative AI took off and many realized the coding potential. Generative AI models have also been used for many years by larger companies to help interpret and produce data such as statistics. These models have been widely used since before the 2010s.
There seems to be a lot of potential for GenAI to benefit coders. Let's break down how it works. When a user of GenAI enters a prompt explaining what it wants the code to do, they should receive that code from the model. But that's not all. GenAI can also suggest improvements to existing code, modernize code, translate code, and help developers learn new code. The Large Language Models (LLMs) have been trained on existing code. This is where the user will enter the prompt into. They will receive the code either in its entirety, or the user can ask just to be provided with snippets.
Let's back up a little bit and discuss LLMs. LLMs are AI programs such as ChatGPT. They are trained on large amounts of data allowing them to make interpretations and predictions. LLMs are based on machine learning, where such high volumes of data are fed into them that they are able to break down the data without the help of humans. LLMs are trained to respond to prompts by the user in a way which makes sense. Unfortunately, LLMs still make mistakes and are not 100% reliable. LLMs can also have bugs and can be manipulated like most other applications.
With the many different models out there, which GenAI tools are best suited for coding? We combined our knowledge with that of multiple sources. Here's what we found.
While we didn't test every other generative AI model out there, we did choose some of the most basic and popular ones. There was definitely a clear winner. Web devs have been raving about their experiences with the new Gemini model and we can see why. While some have stated that Gemini 2.5 Pro narrowly beats out ChatGPT-4.0, others would disagree. It's clear that Gemini 2.5 Pro has the highest stats right now and many are saying that Google has won the AI battle.
While the models have been getting steadily better over time, many web devs remind us that these tools should be used as an assistant for coding and not as a replacement for human coders. GenAI models can greatly speed up the coding process and help reduce repetitiveness for humans. However, they can still make mistakes. The bottom line is that generative AI is a great tool to speed up time and allow you to focus on more difficult aspects of coding, just be sure to double check for mistakes and consider giving today's AI models easier tasks. Sometime in the future, generative AI will be able to to do all the coding for us, and that time is close.
It's clear that GenAI has positively impacted the world in many ways and not just through coding. However, what are the environmental impacts of GenAI? According to science, its not good. Generative AI uses a lot of resources, mostly energy and water. Generative AI uses a humongous amount of energy. On top of this, the construction of data centres has increased drastically. In addition, water is used to cool the systems used for training the models and this is heavily impacting many ecosystems. Some company's water usage has increased by almost 35% as they create AI models. What's even worse is that as different versions of GenAI are being released constantly, all of that previous energy use is being wasted. As scientists work towards making GenAI a more sustainable industry, these issues are becoming increasingly worrisome.
As we all know, GenAI has been taking the world by storm. Many models are more than fit to be used for coding (with some careful revision by humans of course). However, as generative AI grows, so do the environmental concerns that come along with it. Hopefully, we will get to a point in the future when GenAI becomes an industry that can do more good than harm to our planet.
As always, thank you for taking the time to read our blog today. If you have any questions or concerns, please feel free to email us at contact@gemify.ca. If you would like to see more from us, please check out our Instagram and LinkedIn pages and subscribe to our newsletter. We used many great resources for this blog, so we've listed them below for you to view.
Olaf Thielk's article on ChatGPT
Martin Heller's review on Amazon Q Developer