Mongoose and types, you got me

I have been using NodeJS for a while now and once in a while I hit this random bug where I could not add any properties to a javascript object. I managed to tinker my way around it -- but today while working on something else I finally figured out my issue and it was so stupid it made me angry -- well not really but angry enough to write this post.

This all comes back to Javascript and it type checking or lack thereof.


Using Handlebars on both the server and client side

While building an application for a friend, I ran into a snag. I wanted to use Handlebars on both the client side (Javascript) and on the server side (NodeJs)

But it turns out thats not easily done, while both work on thier own when a Handlebar tag "{{" is processed on the server side if Handlebars cant find the data for that template it just removes it from the template. Not shocking so either.



10,000 hours and the search for mastery of craft

There is a theme from a book “Outliers” by Malcom Gladwell [] which implies you need to practice a craft for 10,000 hours to achieve mastery of a field. I was wondering if I felt that was true about my chosen field, web development or if it was even greater.

The thought is that the speed to which web development and the internet changes seems to be so cripplingly fast that I don't know if there is anyway to ever truly master it.

Just because you have not played with the latest framework, language or weren't exposed to the latest fetish -- does that mean you have not mastered this craft?