• Engraver3825@piefed.social
    link
    fedilink
    English
    arrow-up
    75
    ·
    4 days ago

    True story:

    AI: 42, ]

    Vibe coder: oh no, a syntax error, programming is too difficult, software engineers are gatekeeping with their black magic.

    • towerful@programming.dev
      link
      fedilink
      arrow-up
      43
      ·
      4 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