The secret ingredients to getting code to work are:

0. anger 😠

1. hate 😡

2. coffee ☕

3. lots of music 🎶 in the background.

@nixCraft
Persistence. Being patient and asking "Why?" until you're exhausted.