Why us developers may soon be out of a job.


I recently got caught up in the hype that was Chat GPT.

What is Chat GPT?

Chat GPT is an AI Technology that enables NLP (Natural Language Processing).  So what does that mean? It means you can ask it to perform a task in plain English and it will perform it for you.

So if you want a poem written about a dog with a rose simple. Ask it:

Can you write me a poem about a dog with a rose?

and here is what you will receive:

Chat GPT poem about a dog with a rose

pretty impressive right? But let's say you're someone with limited knowledge of a website.  You want one created but don't know where to start.  

You could spend your day searching Google.

  • How do I create a web page?
  • What is HTML?
  • How do I add space to my page?
  • etc...

Or you could simply go to Chat GPT and request it to create you a page.

Write me a webpage with a title of "Welcome to my web page", below that 2 sections. the first titled "German" and displaying two random german words, the second titled "Polish containing 2 random Polish words

and here is what it returns:

"Here is a basic HTML webpage with a title of "Welcome to my web page" and two sections, the first titled "German" and containing two random German words, and the second titled "Polish" and containing two random Polish words:"

Code to create a simple webpage

 

and this is how that page would look:

 

Welcome to my web page

German

Hund, Katze

Polish

Pies, Kot

 

Not bad at all. Very simplistic, but you can also ask it to solve problems for you, for example.

In C# how can I return just the odd numbers in a List?

To return only the odd numbers in a list in C#, you can use the Where method in LINQ (Language Integrated Query) to filter the list based on a condition. Here's an example:

using System.Linq;

List numbers = new List { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

// Use the Where method to filter the list and return only the odd numbers
var oddNumbers = numbers.Where(num => num % 2 != 0);

foreach (var num in oddNumbers)
{
    Console.WriteLine(num);
}

"In this example, we create a list of integers called numbers that contains the numbers 1 through 10. Then we use the Where method to filter the list and return only the numbers that are odd. Finally, we use a foreach loop to iterate through the filtered list and print out the odd numbers."

Obviusly, we could achieve the same thing in less code. But the AI is doing a very good job and I'm sure in the next 10 years it will have improved massively.

I can't even begin to imagine what work will look like for future generations.

 

Comment