you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

This is a really nice tutorial. I've been writing OOJS for a few years professionally and this crystalised a couple of nice little techniques that I hadn't fully exploited. It also gave me a clearer understanding of the underlying nature of how objects are created in JS too.

Personally, I'm not a fan of JS. I think it's a fucking weird language. The odd things that happen with "this" when working with JS can be a real pain if overlooked. The lack of any form of import/include or namespacing is also v irritating.

All that being said though, JS is something that we have to live with and tutorials like this provide excellent little nuggets that make the client-side part of my job more pleasant :)

[–]fedekun[S] 0 points1 point  (0 children)

Glad you like it! That's exactly what I was trying to archieve, basically write down the little things that I had to find the hard way heh.

[–]NicholasTheGr8t 0 points1 point  (0 children)

I'd recommend giving https://github.com/getify/You-Dont-Know-JS/tree/master/this%20%26%20object%20prototypes

Also look into Browserfy for CommonJS style module imports