How ChatGPT and AI are already writing code, changing the game
Tags: webdev, ai, programming, codenewbie
Published: 2022-12-08 23:12:57

AI is having a moment.  

AI – or Artificial Intelligence for long -- has been a buzzword in the tech world for many years.  

And how it’s been used to this point is more behind the scenes, everyday folks are now able to interact with AI and see how quickly it will transform our world.  

Really, how it’s transforming our world right now.  

Not later. Now! 

So, let’s dive into first what AI is, and then look at three ways it’s changing how we think about art, writing, as well as how it works hand-in-hand with machine learning.  

## AI definition 

OK, by now we’ve all heard the term “AI” thrown around. And like other technologies we’ve seen come and go, it’s touted as a technological revolution that will change everything.  

But first, let’s define AI.  

### AI defines AI 

“Artificial intelligence (AI) is a branch of computer science that aims to create intelligent machines that can think and act like humans. It is an interdisciplinary field of science that combines computer science, mathematics, psychology, linguistics, engineering, and other sciences to create intelligent systems that can analyze large amounts of data, recognize patterns and relationships, and make decisions based on the information they have. AI has the potential to revolutionize many industries and is already being used to help solve complex problems in fields like healthcare, finance, and transportation.” 

This was the answer given by AI itself, using ChatGPT. More on ChatGPT in a bit.  

First and foremost, this is a fantastic answer. Secondly, it’s been made to “sound human,” and does.  

How does it hold up to a definition written by a human, though? 

### Human definition of AI 

This, from Ed Burns of [Tech Target](https://www.techtarget.com/searchenterpriseai/definition/AI-Artificial-Intelligence):  

“Artificial intelligence is the simulation of human intelligence processes by machines, especially computer systems. Specific applications of AI include expert systems, natural language processing, speech recognition and machine vision.” 

And he continues:  

“In general, AI systems work by ingesting large amounts of labeled training data, analyzing the data for correlations and patterns, and using these patterns to make predictions about future states. In this way, a chatbot that is fed examples of text chats can learn to produce lifelike exchanges with people, or an image recognition tool can learn to identify and describe objects in images by reviewing millions of examples.” 

The two definitions are incredibly similar, and while one may prefer the human writing over the AI, another person may prefer the AI definition. 

And, if you were to tell someone the first definition _wasn’t_ written by a human, well, that’s a bit shocking because it’s so well-done.  

## 3 Ways AI is already changing our world 

OK, so we get the concept of AI.  

Artificial Intelligence is what it sounds like: A computer which ingests a ton of data, then processes and organizes that data to create future predictions, including emulating human language. Of course, because it’s a computer system, the amount of information it can hold is many times what a human’s brain can hold, process and organize.  

Therefore, it’s possible to envision a world in which AI-powered robots not only help us solve incredibly complicated problems, but also replace jobs in which critical, human thinking has always been needed.  

## ChatGPT 

[ChatGPT](https://chat.openai.com/chat) is taking the world by storm.  

The incredible AI chatbot, created by Open AI, not only answers questions but it does so in a human-like way.  

That means, it’s very difficult – or even impossible – to know if what you’re reading was created by a human or by the chatbot.  

From the [Open AI playground](https://beta.openai.com/playground):  

“ChatGPT is a natural language processing (NLP) chatbot that utilizes the open-source GPT-3 language model. It is designed to generate human-like conversations and can be used for automated customer service, virtual assistants, and other chatbot applications.” 

Simply, the technology is tremendous. This isn’t some half-witted design still in the beta phase, this is a polished, amazing chatbot which will only continue to improve in the future. In fact, GPT-4 is still in testing phase, but it will be out soon-ish. 

#### Impacts of ChatGPT 

So, on one hand, ChatGPT is incredible.  

It can answer complicated questions in chatbots for humans. 

We’ve all been there before; There’s a complicated question we have about our bill, and the chatbot doesn’t know exactly how to handle it. So, we have to get through many prompts before it offers up, “Speak to a representative.” And then the human on the other end understands what we’re asking and helps us through the issue.  

That could be extended to kiosks in airports for international travelers, or even in an app which helps people get around a foreign place. And in many other applications.  

But the downside is how good it actually is. Meaning, if a student were asked to write an essay on a topic, there’s no way a teacher would be able to know if the student wrote it, or if it were AI.  

For instance, I asked ChatGPT to write a blog on AI. It gave a superb, detailed, amazing answer.  

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ian1b4xumspoaldbij3o.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xit4gn0blq3j170cse0b.png)

Wonderfully, ChatGPT even acknowledges the ethical implications of using AI here.  

“Many people are concerned about the potential for AI to automate jobs, and there are also concerns about privacy and bias in AI systems,” ChatGPT itself wrote.  

Simply, if ChatGPT can write this well, what does it mean for writers? Content creators? Bloggers?  

If AI is so accomplished at writing, and it holds the knowledge of the entire universe inside itself: Why would humans become writers? How could a human be a better writer than AI?  

And why would a child ever write their own essay when they can use this?

And this extends not just to creative writing, but into **writing code**, too. Which ChatGPT can do.  

 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rlwp14st4ly21ssw306w.png)

Here’s [Replit using ChatGPT to write code and build a website in real time.](https://twitter.com/Replit/status/1599803817515548674) 

Will AI chatbots replace not only writers, but software developers? What are the ethics of employing a free program instead of a human, putting that human out of a job? 

These are some of the questions generated by this sensational new technology. 

## AI-generated Art 

Just like with writing, AI may end up replacing artists, too.  

We’re talking painters, graphic artists and much more.  

How?  

Basically, the same way AI ingests words and uses machine learning to speak in a “human-like way”, the AI simply ingests pictures. Thousands and even millions of pictures.  

But, if the artists didn’t give consent to use their artwork, is it ethical to use their style?  

As written about in [NBC on Dec. 6, 2022:](https://www.nbcnews.com/tech/internet/lensa-ai-artist-controversy-eth)

“Days after illustrator Kim Jung Gi died in October, a former game developer created an AI model that generates images in the artist’s unique ink and brush style. The creator said the model was an homage to Kim’s work, but it received immediate backlash from other artists. Ortiz, who was friends with Kim, said that the artist’s “whole thing was teaching people how to draw,” and to feed his life’s work into an AI model was ‘really disrespectful.’” 

And from that same piece comes a [tweet, calling out Lensa.ai,](https://twitter.com/LaurynIpsum/status/1599953586699767808?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1599953586699767808%7Ctwgr%5Eb54ee40206760998477376369f0ff8c320d217ee%7Ctwcon%5Es1_&ref_url=https%3A%2F%2Fiframe.nbcnews.com%2FXbXEpiT%3F_showcaption%3Dtrueapp%3D1) the application being used by many to turn their personal photos into AI fantasy art.  

 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eii3wvei05g42gntyvqg.png)

As you can see, the original artists signatures are still in the photos. In other words, that artist’s style was completely ripped off and the person’s portrait was generated in that style by the AI. 

Prisma, who owns [Lensa](https://prisma-ai.com/lensa) has responded on twitter saying, “AI-generated images ‘can’t be described as exact replicas of any particular artwork.’” Again, per the NBC piece referenced above.  

So, just like with writing, visual artists are already questioning the ethics of AI using their artwork.  

Besides Lensa.ai, there’s also MidJourney, which allows anyone to give their AI a prompt to create images like this:  


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/znwvd7yosbky549y14du.png)

Our mascot/logo at Fathym is Thinky the Octopus, and this is how we like to think he could look if he was in the “Pixar style” as one of our developers gave the prompt, “Octopus on a computer in Pixar Style.”  

## AI-ML  

So, we’ve talked extensively about AI, but what about machine learning? 

ChatGPT defines machine learning as:  

“Machine learning is a type of artificial intelligence that enables computers to learn from data, identify patterns, and make decisions with minimal human intervention. It is a subset of artificial intelligence that uses algorithms to analyze data and make predictions. It enables computers to learn from experience without being explicitly programmed. Machine learning can be used for a variety of tasks, such as facial recognition, natural language processing, and predictive analytics.” 

To give a human’s take on it, this, from Jay Selig at [expert.ai](https://www.expert.ai/blog/machine-learning-definition/): 

“Machine learning is an application of AI that enables systems to learn and improve from experience without being explicitly programmed. Machine learning focuses on developing computer programs that can access data and use it to learn for themselves.” 

So, think of AI as the intelligence, the smarts of a computer system. The data.  

But machine learning is _how_ it uses that data to do predict future events or sound like a human. And simply, learn from the data.  

So, how is AI and Machine Learning being used together? 

Well, for starters, the aforementioned ChatGPT uses AI and ML. 

From [Tech Crunch](https://techcrunch.com/2022/12/05/chatgpt-shrugged/#:~:text=%E2%80%9CChatGPT%20works%20by%20using%20machine,and%20structures%20of%20natural%20language.%E2%80%9D):  

“ChatGPT works by using machine learning algorithms to analyze and understand the meaning of text input, and then generating a response based on that input.” 

It should be noted that ChatGPT explained that itself.  

Which poses the question: Can AI be biased? Can AI use machine learning to keep certain information from us if it wants to?  

Who else is using AI-ML together?  

#### Drone Express 

Drone Express is, per [Drone DJ](https://dronedj.com/2022/12/08/microsoft-ai-delivery-drone-express/),  

“The last-mile delivery provider says it’s on track to become one of the first companies in the US to attain a Part 135 FAA certification for autonomous drone delivery. But doing so wouldn’t have been possible without Microsoft Azure hosting Drone Express’s AI solutions and training its machine learning models. 

Drone Express trains its machine learning models by feeding them photos of obstacles and scenarios that the drones could encounter and teaching them to identify safe delivery areas." 

#### Habistack Weather Forecasting API 

[Fathym’s Habistack](https://www.fathym.com/forecast), also uses a combination of AI-ML for weather forecasting, specifically related to road conditions. 

Habistack combines the world's best weather forecasts with statistics-based, machine-learning techniques to tackle the largest datasets, including road weather. Habistack offers developers comprehensive weather forecasting capabilities over freely chosen locations and routes across the globe. The API delivers a unique suite of highly specialized forecast variables derived through statistically based machine learning models. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vs0vpww9c2pvydpeh2gs.png)

That data is all ingested into Microsoft Azure and into the AI, and then the machine learning uses all that data to create forecasts (predictions) based on that data.  

## Conclusion, questions about AI and ethics 

AI isn’t just something that _will_ affect our everyday lives in the future. It’s something that’s impacting our lives today.  

That’s both amazing and scary at the same time.  

There are many more questions than answers at this time.   

Some of them are: 

Will AI chatbots phase out writers and other creatives? 

Will AI chatbots be used to write code and therefore phase out developers, too? 

What are the ethics of putting an artist’s work into AI and then creating art based on their works? Especially when the artists do not give permission?  

Can AI chatbots be biased? And how would we know? 

Should we trust every answer a chatbot gives us? Why? 

And finally, are we ready for AI? Either way, it’s here to stay and will continue to change our lives in ways we haven’t even imagined yet. Both good and bad, unfortunately.