▲ | stpedgwdgfhgdd 4 days ago | ||||||||||||||||||||||||||||
Last week I asked Claude to improve a piece of code that downloads all AWS RDS certificates to just the ones needed for that AWS region. It figured out several ways to determine the correct region, made a nice tradeoff and suggested the most reliable way. It rewrote the logic to download the right set, did some research to figure out the right endpoint in between. It only made one mistake, it fallback mechanism was picking EU, which was not correct. Maybe 1 hour of work. On my own it would have taken me close to a working day to figure it all out. | |||||||||||||||||||||||||||||
▲ | Towaway69 4 days ago | parent | next [-] | ||||||||||||||||||||||||||||
This is just a thought experiment. I don't mean to be treading on feet but I'm noticing this more and more in the debates around AI. Imagine if there are developers out there that could have done this task in 30 mins without AI. The level of performanace of AI solutions is heavily related to the experience level of the developer and of the problem space being tackled - as this thread points out. Unfortunately the marketing around AI ignores this and makes every developer not using AI for coding seem like a dinosauer, even though they might well be faster in solving their particular problems. AI is moving problem solving skills from coding to writing the correct prompts and teaching AI to do the right thing - which, again, is subjective, since the "right thing" for one developer isn't the "right thing" for the another developer. "Right thing" being the correct solution, the understandable solution, the fastest solution, etc depending on the needs of the developer using the AI. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
▲ | dns_snek 3 days ago | parent | prev [-] | ||||||||||||||||||||||||||||
> Maybe 1 hour of work. On my own it would have taken me close to a working day to figure it all out. 1. Find out how to access metadata about the node running my code (assumption: some kind of an environment variable) [1-10 minutes depending on familiarity with AWS] 2. Google "RDS certificates" and find the bundle URL after skimming the page [1] for important info [1-5 minutes] 3. Write code to download the certificate bundle, fallback being "global-bundle.pem" if step 1 failed for some reason? [5-20 minutes depending on all the bells and whistles you need] Did I miss anything or completely misunderstand the task? [1] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Using... edit: I asked Claude Sonnet 4 to write robust code for a Node.JS application that downloads RDS CA bundle for the AWS region that the code is currently running in and saves it at the supplied filesystem path. 0. It generated about 250 lines of code 1. Fallback was us-east (not global) 2. The download URLs for each region were hardcoded as KV pairs instead of being constructed dynamically 3. Half of the regions were missing 4. It wrote a function that verifies whether the certificate bundle looks valid (i.e. includes a PEM header)... but only calls it on the next application startup, instead of doing so before saving a potentially invalid certificate bundle to disk and proceeding with the application startup. 5. When I complained that half of my instances are downloading global bundles instead of regional ones (because they're not present in the hardcoded list), it: - incorrectly concluded that not all regions have CA bundles available and hardcoded a duplicate list in 2 places containing regions that are known to offer CA bundles (which is all of them). These lists were even shorter than the last ones. - wrote a completely unnecessary function that checks whether a regional CA bundle exists with a HEAD request before actually downloading it with a GET request, adding another 50 lines of code Now I'm having to scrutinize 300 lines of code to make sure it's nothing doing something even more unexpected. |