670
submitted 5 days ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 43 points 5 days ago
let data = null
do {
    const response = await openai.prompt(prompt)
    if (response.error !== null) continue;
    try {
        data = JSON.parse(response.text)
    } catch {
        data = null // just in case
    }
} while (data === null)
return data

Meh, not my money

this post was submitted on 02 Jun 2025
670 points (98.8% liked)

Programmer Humor

23899 readers
703 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS