top | item 41474424

(no title)

robodale | 1 year ago

I've used Copilot and chatGPT to help with algorithms where I'm unsure where to start. Actual case: "Write a performant algorithm to find the number of work days given a future date". It's trickier than you think and makes a great interview question.

Both AI tools came back with...garbage. Loops within loops within loops as they iterated through each day to check if the day is a weekend or not, is a leap year and to account for the extra day, is it a holiday or not, etc.

However, chatGPT provided a clever division to cut the dataset down to weeks, then process the result. I ended up using that portion in my final algorithm creation.

So, my take on AI coding tools are: "Buyer beware. Your results may vary".

discuss

order

zzleeper|1 year ago

I was never able to use them well, but cursor.ai together with Claude is starting to feel actually useful

JonChesterfield|1 year ago

How did you cite / reference the clever division it had copied out of the training set?