Foreword For You Don't Know JS
I had the honour of writing the foreword for the first book, Scope & Closures, of Kyle Simpson's You Don't Know JS series. I urge you to buy the book, it is definitely worth a read no matter your skill or experience, but I've also included the foreword below.
When I was a young child, I would often enjoy taking things apart and putting them back together again. Old mobile phones, Hi-Fi stereos and anything else I could get my hands on. I was too young to really use these devices, but whenever one broke, I would instantly ask if I could figure out how it worked.
I remember once looking at a circuit board for an old radio. It had this weird long tube with copper wire wrapped around it. I couldn't work out its purpose, but I immediately went into research mode. What does it do? Why is it in a radio? It doesn't look like the other parts of the circuit board, why? Why does it have copper wrapped around it? What happens if I remove the copper?! Now I know it was a loop antenna, made by wrapping copper wire around a ferrite rod, which are often used in transistor radios.
Did you ever become addicted to figuring out all of the answers to every 'why' question? Most children do. In fact it is probably my favourite thing about children - their desire to learn.
It is also coming out at the perfect time, ES6 is finally settling down and implementation across browsers is going well. If you've not yet got around to learning the new features (such as let and const), this book will be a great introduction.
So I hope that you enjoy this book, but more so that Kyle's way of critically thinking about how every tiny bit of the language works, will creep into your mindset and general workflow. Instead of just using the antenna, figure out how and why it works.