top | item 43642064

(no title)

nbevans | 10 months ago

I love the Java code sample:

```

// It works, but we have no idea how to send an HTTP request in java.

// If you do, send us a nice example to support@errortexts.com.

// You just need to POST JSON with the keys `api_key` and optionally `message`.

```

That's brilliant. But it does make me wonder why the LLM couldn't have provided you a suitable Java code example?

discuss

order

windowshopping|10 months ago

I wondered the same. Those code examples took an hour or so to figure out. It's a very basic exercise, sending an HTTP request, but doing it in nine languages, the majority of which you've never used, requires a little research. The llm can generate them all, but I had to run them locally to make sure they worked, and they oftentimes didn't. Most of them were easy and only took a minute or two to figure out, but after an hour and a half I gave up on Java. I literally could not figure it out. I'm sure I could have if I went long enough, but at some point you just have to cut your losses and decide it's not worth your time. This was not going to make or break my product offering, I'm not trying to learn Java, and I just wasn't interested in spending more time trying to figure it out. The llm was happy to generate examples, but they didn't work.