Best solution is asking the answer from God, I will always pray in front of my computer and next thing I know Holy Spirit fills me and code just appears to the monitor.
When you realize that you don't "learn" anything but it's just Lord's spirit inside a hollow vessel it makes sense.