Earlier quoted context omitted.
People attribute almost everything to luck to feel better about their own lack of success. Luck plays a minor role. Intelligence and tenacity are much more important. If luck was the main factor nearly all successful programmers would come from China or India since they have the most entrants in the "lottery" for successful programmers.
Successful people attribute almost everything to their own intelligence, willpower or hard work to feel better about themselves. Luck is extremely important for any individual trial - once you get up to a large sample size, sure, your traits will win out - but many people will never reach such a sample size in their entire life. When I see "fail fast", what I really think is: "increase your sample size".
But you can't directly control luck. You can directly influence the other factors, and while luck does play an important role, so do other factors. To borrow a quote, "The harder I work, the luckier I get."