Hacker News new | ask | show | jobs
by djhworld 1297 days ago
I think this is kinda neat (and scary!)

I'm doing AoC at the moment too and I'm using the chat GPT thing as a sort of assistant. I don't program in Rust much so sometimes it's difficult to remember certain things and functions. Expressing my intent to the tool seems to come up with decent answers

Some example questions I've asked the tool recently:

> I want to insert a char into a hash map if it does not exist, if it does increment a counter

> rust find common keys in two hashmaps keyed by char

Yes they can probably be found on stack overflow or whatever but it feels more natural this way.

...and yes I could just go down the route of getting the thing to solve the AoC challenge completely but that's no fun

1 comments

> that's no fun

Is there really any fun in solving problems that you could easily solve with an AI?

This reminds me of the (apocryphal?) story that boxed cake mixes sold better after they started requiring you to add an egg, since that made people feel like they contributed more to the result.
I've also heard that story, but it always seemed to me that an equally, if not more, likely reason is that cake made with a fresh egg simply has better flavor and texture. I tried reconstituted powdered eggs once, the taste is still somewhat egg-like but the texture is semi-unpleasant.
Yes.