Last Updated: February 25, 2016
·
1.058K
· fernandoperigolo

How to make good tutorials

Stop using foo, bar and baz variables!

I'm now studying techniques to work with Objects and Methods in Javascript. Im interested to work with Mixins and Composition over 'Classic Inheritance'.

Check it out this page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript#Prototype-based_programming, look how the idea flows, very easy to understand.

Now, check it out this page, http://blog.buymeasoda.com/advanced-javascript-fundamentals/, i think the author make a big joke 'A ha! It is not bar, is baz!'.

In other words, lets the content and idea flows, dont let your reader go crazy making jokes about variables.

2 Responses
Add your response

Hey Luiz let me know if you find any other OOP tutorials in Javascript, I found this one http://www.objectplayground.com/ but I haven't started yet on it.
Thanks

over 1 year ago ·

I watched the http://www.objectplayground.com/ video some 38 times hahahha Every time i read a new article about OOP or Patterns in Javascript i watch this video again.

The best resources i found is:
http://addyosmani.com/resources/essentialjsdesignpatterns/book/
https://alexsexton.com/blog/2013/04/understanding-javascript-inheritance/
http://net.tutsplus.com/tutorials/javascript-ajax/digging-into-design-patterns-in-javascript/

Here a classical example from a friend:
https://gist.github.com/gufranco/5897760

Here, my Mixin like version of previous example:
https://github.com/fernandoperigolo/javascript-mixin

And here my favorite aproach:
https://gist.github.com/fernandoperigolo/7789866

over 1 year ago ·