Archive for the 'Tutorials' Category

Update to “Inheritance in JavaScript”

Sunday, March 26th, 2006

Surprisingly, I’m seeing more and more traffic to my “Inheritance in JavaScript” tutorial. As that traffic has increased, there have been a number of legitimate complaints about my use of an “init” method to initialize base classes and child classes. I found a way around that last October, so I thought it was high time to incorporate that approach into the tutorial. So, if you find C#/Java-style OOP in JavaScript interesting (or at least not offensive), then you may enjoy my latest updated tutorial.

http://www.kevlindev.com/tutorials/javascript/inheritance/index.htm

Special thanks go to Robin Debreuil - aka. The Prototype Master - for suggesting how to get around the use of “init”. Also, special thanks to Peter Michaux (and many others) for gently prodding me to update my tutorial.

Simplifying Hand-Drawn Curves

Saturday, November 22nd, 2003

I have just published a new tutorial on KevLinDev that discusses a method for simplifying hand-drawn curves. The algorithm allows you to specify a tolerance so you can control the quality of the final curve as visually compared to the original curve. The tutorial ends with an example showing the algorithm in action. I hope you’ll enjoy the tutorial and gain something useful from it.

JavaScript OOP Tutorial

Saturday, April 13th, 2002

I’m using a “hand-rolled” OOP technique in my JavaScript throughout my site. I’ve been asked to explain that code a few times, so I decided to write up a short tutorial explaining how I implement OO in JavaScript. You can read that here.