how i got started in javascript

51
How I got started in JavaScript.

Upload: chee-aun-lim

Post on 09-May-2015

1.668 views

Category:

Technology


0 download

DESCRIPTION

A little overview on how I got started in JavaScript, presented at beermatesjs ( http://www.beermatesjs.com/ ), a local JavaScript user group meetup in Singapore (4 Nov 2010)

TRANSCRIPT

Page 1: How I got started in JavaScript

How I got started in JavaScript.

Page 2: How I got started in JavaScript

http://ajaxian.com/archives/bacon-a-sizzling-new-yui-utility

Page 3: How I got started in JavaScript

Hello, I’m @cheeaun.I do lots of awesome web stuff.

Page 4: How I got started in JavaScript

In the old days, JavaScript is (sort of) known as DHTML.

Or at least, that’s how I know it.

Page 5: How I got started in JavaScript
Page 6: How I got started in JavaScript

But, I wasn’t really that interested in it.

Page 7: How I got started in JavaScript

Later I was inspired by this guy.Shaun Inman.

Page 8: How I got started in JavaScript

http://si8.shauninman.com/plete/

Page 9: How I got started in JavaScript

http://si8.shauninman.com/plete/

Page 10: How I got started in JavaScript

It was so cool,I just got to view source.

Page 11: How I got started in JavaScript
Page 12: How I got started in JavaScript

I had totally no idea what it does. Still I try to learn

JavaScript anyway.

Page 13: How I got started in JavaScript

My first attempt is to fix a small, simple problem on my

own web site.

Page 14: How I got started in JavaScript

The scenario.

Page 15: How I got started in JavaScript

I have a float-ed image here with variable width.

Page 16: How I got started in JavaScript

I don’t want this to happen.

Page 17: How I got started in JavaScript

The solution.

Page 18: How I got started in JavaScript

Display image this way if its width is roughly 90% of the container width.

Page 19: How I got started in JavaScript

The code.Please pardon my noobness.

Page 20: How I got started in JavaScript

http://gist.github.com/655217#file_floatimages1.js

Page 21: How I got started in JavaScript

The code evolves.

Page 22: How I got started in JavaScript

http://gist.github.com/655217#file_floatimages2.js

Page 23: How I got started in JavaScript

The code may look simple(?) but it took me weeks to figure it

out. I didn’t touch JavaScript for a period of time since then.

Page 24: How I got started in JavaScript

Until I got inspired, again.

Page 25: How I got started in JavaScript

One day, I saw this.

http://wiki.github.com/madrobby/scriptaculous/effect-fade

Page 26: How I got started in JavaScript

I realize the existence of JavaScript frameworks and

decided to learn one of them.

Page 27: How I got started in JavaScript

I end up learning MooTools.

http://mootools.net/

Page 28: How I got started in JavaScript

Why MooTools?

Page 29: How I got started in JavaScript

Because I like the MooTools code, syntax style, and

documentation.

Page 30: How I got started in JavaScript

http://mootools.net/docs/

Page 31: How I got started in JavaScript

http://keetology.com/blog/2009/07/00-up-the-moo-herd-mootools-tips-and-tricks

Page 32: How I got started in JavaScript

Also, MooTools developers are seriously awesome.

Page 33: How I got started in JavaScript

http://twitter.com/cpojer/status/26416392120

Page 34: How I got started in JavaScript

http://twitter.com/davidwalshblog/status/26109921796

Page 35: How I got started in JavaScript

http://engineering.twitter.com/2010/09/tool-legit.html

Page 36: How I got started in JavaScript

The best part is the more I learn about MooTools, the more I learn about JavaScript itself.

Page 37: How I got started in JavaScript

Remember my imageFloat() function? It evolves, again.

Not the prettiest code in the world but oh well.

Page 38: How I got started in JavaScript

http://gist.github.com/655217#file_floatimages3.js

Page 39: How I got started in JavaScript

I dive in deeper. I’ve coded some JavaScript-intensive apps

and MooTools plugins.

Page 40: How I got started in JavaScript

One of the most interesting is Mooj, which provides jQuery-

like syntax for MooTools.

http://github.com/cheeaun/mooj

Page 41: How I got started in JavaScript

Though the most exciting of all is MooEditable, a simple web-

based WYSIWYG editor.

http://github.com/cheeaun/mooeditable

Page 42: How I got started in JavaScript

http://twitter.com/kamicane/status/1773451438

Page 43: How I got started in JavaScript

But then, here’s my advice; Don’t even think of writing your

own WYSIWYG editor. It’s a living hell.

Page 44: How I got started in JavaScript

After all this, I’m still learning. One step at a time.

Page 45: How I got started in JavaScript

http://twitter.com/cheeaun/status/9908162471

Page 46: How I got started in JavaScript

http://twitter.com/cheeaun/status/5010791853

Page 47: How I got started in JavaScript

So does everyone else.Even you.

Page 48: How I got started in JavaScript

http://twitter.com/izs/status/9716361341

Page 49: How I got started in JavaScript

http://twitter.com/cowboy/status/20381852737

Page 50: How I got started in JavaScript

http://shouldilearnjavascript.com/

Page 51: How I got started in JavaScript

That’s all, folks. Thanks!

Tools used during the production of these slides:http://pastie.org/ http://placehold.it/ http://jsfiddle.net/ http://jsconsole.com/