Better to have asked, "what's it like outside?" or, "what's the weather right now?"
and nobody is going to say it’s not raining when it’s hailing outside… but I understand if that was just a metaphor. You’re probably asking that question to figure out what kind of clothes to wear, and they would probably infer that. It’s so contextual though.
That also depends on the person. With some people open ended questions are great, with others yes/no are better.
I'll also add that yes/no questions are often faster if you get the response you expect.
Is it raining or something else outdoors?
Do you like Vi or Emacs or something else?
Do you want to hang out for a coffee or something else?
For the "Is it raining outside", I honestly don't know anyone that would just tell me "no" when there's hail outside. For the "Do you like Vi or Emacs or something else?", it would be "What text editor/IDE do you use? Why?". "Do you like Vi or Emacs" by itself is not a yes/no question, it's a "what box are you in" question. For "Do you want to hang out for a coffee or something else?", that would be something like "Do you want to hang out at <TIME>?".
An important part for me is that in yes/no questions, no are supposed to be the exception. In my mind, when I ask them, it's not a 50/50 chance. It's more of a 80/20. If it was a 50/50 chance, that means my mental model is not precise enough.
Yes/no questions are the worst. But even questions like "What did you do?" aren't great because the answers can often be rather short.
A better question is often posed like "Tell me about X" or "Describe how you did Y".
Of course this isn't universally true, there is value in binary answers.
But often you may find yourself, let's say in a sales context, asking something like "What tool are you using for project management?"
The answer will then be something like, "I'm using Jira".
Instead, if you ask, "Tell me about what you're doing for project management on your team", the answer may be much more detailed.
"We follow the agile methodology and use Jira for our task management. We've got a dedicated project manager on the team who..."
Getting good at asking the right questions is worth the effort.