I try to help novices by explaining the process of breaking down a problem into smaller steps. Usually that process is what they're actually hung up on: their underlying question is about that process, not about programming. It can be very difficult for a novice (or a non-novice) to take a big goal and break it down into its constituent parts. It can be equally hard to take an existing codebase (even if they wrote it) and try to add a new feature to it. So I try to help break things down into smaller chunks, because that's what they're actually struggling with.
Here is my template, applied to this meta question:
Break their problem down into smaller steps.
Step 1: Be honest. Tell them that they might have better luck if they start with a blank project and only add one small thing at a time.
Step 2: Try suggesting some small steps that they might break their problem down into. Keep these as small as possible. Smaller than they think is interesting. Explain that by keeping things small, they'll get more done.
Step 3: Tell them to keep these steps in isolation. If their end goal is to create a program that does ABCXYZ, then first they need to create two small example programs: one that does ABC, and a separate one that just does XYZ. They might even need to break it down further into a separate program that does A, another one that does B, etc.
Step 4: Tell them that if they have a problem with one of these small steps, then they'll already have an MCVE that they can include in a new question along with a specific question.
Step 5: Then when they have each example program working independently, then they can start thinking about combining them. As always, take one small piece at a time.
That's what I do. Many people are very responsive to this, as what they really needed was somebody to help outline the process of breaking down a problem into smaller parts. That's a huge part of programming, but it's one of the hardest to teach (and learn). Some people are frustrated by this approach, but those people are usually the "gimme teh codes" variety, and there isn't much we can do for them anyway.