LETTING AN AI WRITE CODE FOR ME! 😳🤯

preview_player
Показать описание
Today, I use the ChatGPT service from OpenAI to solve Day 04 (Part 1) of the advent of code. It's mind blowing how good this thing is!

If you want to try out Chat GPT check it out here:

If you want to follow along with me on the Advent of Code Check it out here:

And Try advent of code yourself here:
Рекомендации по теме
Комментарии
Автор

Your tsconfig determines whether you need to assign those types, obv chatgpt doesn't have access to your tsconfig. Tell it to write a strongly typed function. And you don't have to keep repeating that it's typescript. It holds that in context.

avi
Автор

good to see you are in good mood
i'm really scared for my ass, i'm starting working out to handle my future job as a mover or farmer

denisblack
Автор

When he said lets do it lower and upper, I felt that.

carloscervantes
Автор

Learnt java basics using it and my exam on it went really well

swapnilvairagade
Автор

That was an amazing demonstration of ChatGPT, it felt like 2 minutes.

hanhyunbinlee
Автор

Holy crap you might just saved my diploma project for the artschool im doing. Is there any way to contact you cause i like to hear/read what a developer think about the possibilitys of my project

Wadehadedude
Автор

i dunno,

i had an array of amounts that i would convert to usd, using 1.1 exchange rate
[200, 450, 3000, 70, 1300]
this is what i got
[220, 495, 3300, 770, 1430]

here is the prompt it has given me when i was debugging a code in my app

''In the array where I convert the amounts to USD, the number 770 appears because that is the result of converting the number 70 to USD using the exchange rate of 1.1.

To convert a number from Euros to USD using the exchange rate of 1.1, you would simply multiply the number by 1.1. For example, if you had an amount of 70 Euros, you would convert it to USD by multiplying it by 1.1, which would give you 77 USD (70 x 1.1 = 77).''

it contradicts itself and my attempt to show him his mistake bore no fruit. It doesnt learn(for now obviously)

const totalDepositsUSD = movements
.filter(mov => mov > 0)
.map(mov => mov * euroToUsd)
.reduce((acc, mov) => acc + mov, 0);

it has given me the answer


just be careful debugging, or leaving calculations to it.

SoraJustAGuy