4 ms·
It's worth keeping a toe in the water, but for now the productivity hype seems way overblown. I recently asked Claude to help deserialize a JSON Post request i
by n4r9 2y ago
It's worth keeping a toe in the water, but for now the productivity hype seems way overblown.
I recently asked Claude to help deserialize a JSON Post request in an asp.net web API so that absent or null JSON properties get set to the coded default values. They gave me what was nearly the right answer (set NullValueHandling to Ignore) but led me down a merry garden path by saying I should also set DefaultValueHandling to Populate. Every time I said it wasn't working and gave the error message, it came up with additional code to put in, which never helped. Eventually I just started toying around with it myself and realised the solution, but it was maybe half a day down the drain.
Perhaps I could have taken a different approach from the start, but still, my impression is that the tools are not what they're made out to be.
- oxidant 2y agoI've had similar issues and the trick I've found is to jump to Google/SO to find examples or docs as soon as Claude stops making progress. If you got NullValueHandling, jumping to the library documentation would give you immediate accurate results.
- n4r9 2y agoI actually did do that, but for some reason I find Newtonsoft's documentation particularly tricky. The recent radical change in Assert formatting hasn't helped either.