This could have been down to a fresh brain but the speed at which I would solve the problem in the morning and pretty much just know the solution I’m convinced I was solving the problem in my sleep and then basically just writing it down when I woke.
I wrote the story about Rust where the programming concepts were hard to grasp and most just give up the first time trying to learn Rust. Normally months or years later, it clicked the 2nd time around for whatever reason.
It's the part of the mind which is always operating.. A sure-fire tactic is to ask yourself a question right before bed, and allow it to do it's thing
It is possible to communicate with the subconscious. In fact, it is always communicating with us. Our society is so focused on the conscious mind that we tend to not notice. This is what anxiety is. The subconscious is trying to express an unmet need. The medical field tries to suppress and numb the symptoms instead of listening to your body.
Source: Nobody told me this. I discovered this while dealing with massive personal problems over many years. Operating under this assumption is how I overcame serious addiction, anxiety and depression. Meditation is a good way to calm to conscious mind so you can "hear" your subconscious and body.
Even if you design the whole thing today, wait at least till tomorrow: you'll have a much better solution.
I have narcolepsy. The daytime drowsiness started when I was 19 and got progressively worse during the later years of my university study. I pretty much abandoned attending class by my 3rd year.
What you describe as 'lucid dreaming' sounds similar to what I used to call my 'party trick': I would sleep soundly through the compulsory PhD seminars or a few years later my MBA classes, then wake up as the speaker asked for questions. Straight away I would ask a relevant and insightful question! People around me would look stunned: "How could you do that? You were asleep!"
So somehow while sleeping, my subconscious mind was still absorbing the talk. When I woke up, I had no idea what the talk was about, but bizarrely I usually knew what question to ask. Even today, 20-25 years later, my MBA and uni friends remark on it.
In my case, I've learned to stop at all controlling the dreams, despite being aware of whether or not I am dreaming, and that seems to have helped.
However, both of us are simply relating anecdotes; we may both have had significant sleep issues arise even without the lucid dreaming (albeit in a slightly different form).
I can't say I've gotten anywhere near the state of attaining lucid dreaming on a regular basis by applying them but there's been some interesting moments in my on-and-off attempts.
I accidentally discovered it when taking Methylcobalamin B12 supplements. For the first week or so I'd lucid dream every morning for a few hours before fully waking up. It was quite interesting, but would cease happening if I continued taking the MB12. Only after stopping for a few weeks would they recur upon reintroducing the MB12.
There are more reliable supplements for stimulating lucid dreaming in particular, I'm pretty sure my MB12 experience is just a minor side effect. I've read it affects melatonin production, and I did find myself growing sleepy earlier and more consistently when taking it. I don't know if that's related to the lucid dreaming though.
Unfortunately, I was unable to replicate that "mind awake, body asleep" effect since then. I suspect it is because I was never as tired as I was back then.
In your case, you probably were under pressure. But if it continues, it might cause damage to your brain.
I'm fairly sure you're the one misinformed. Do you have any source on that? I recently read Matthew Walker's Why We Sleep and why it didn't feel comprehensive, the book did NOT mention anything about dreaming while sleeping being a negative.