Ask HN: What is the best programming language for "vibe coding"?

  • I asked Copilot this exact question and it says Python and JavaScript are the most popular for vibe programming. Take that with a grain of salt.

    Taking the conversation further, basically languages in the TIOBE top 10 are your best bet. Copilot claimed that it's generally better at generating solutions in those languages than languages not in the TIOBE top 10. Don't know whether that's true or not, but it makes sense, and it was straight from the horse's mouth!

    FWIW, I've had a lot of success vibe coding with Python and JavaScript.

  • For writing tests https://en.wikipedia.org/wiki/Behavior-driven_development#St... can be helpful. In my experience the parsing (e.g. Python behave library) is still regular expressions but maybe an AI can magically parse the sentences better.

  • Maybe Haskell, for its strong static typing (catches hallucinations faster), succinctness (uses less LLM tokens), and relative absence of side-effects (again should help with hallucinations).

    Another factor, however, is abundance in the training data. In that light, Java may be a good candidate among statically typed languages.

  • > without even looking into the generated code

    I don’t think we’re even close to this.