Speaking at The Ajax Experience
I’m going to be speaking at The ajax experience conference in Boston on sept 14-16th. The topic, Object Oriented CSS: for Scalable, Fast, and Beautiful Web Application.
I’m going to be speaking at The ajax experience conference in Boston on sept 14-16th. The topic, Object Oriented CSS: for Scalable, Fast, and Beautiful Web Application.
I’ve been working in the past 9 months on the new Yahoo home page. Now the beta version is finally out!:
Ps: I hope you like the first Wizard pop up you see and the flickr application!
I’m happy to announce that the next Bayjax meeting is going to be hosted over at Yahoo on July 27th! We’re gonna have an stelar line up of speakers, including: Douglas Crockford, Nicole Sullivan, Satyen Desai and Jon Leblanc.
Check out the details here:
I’ll be collaborating with Nicole Sullivan as part of her talk on June 22nd at the velocity conference. The topic: building fast and reliable web sites techniques.
I just realized that one of the exercises we did on Juku has been posted on the YUI example library. Juku pride!
My friend Matthew asked me the other day for an example on how to create a namespace in javascript and why is it a good idea to always wrap your code inside a global namespace. There is numerous advantages of having all your properties, methods and classes wrapped in a namespace but the most obvious one is encapsulation and how you can control what to make public and what to make private and have privilege methods to access private properties through closures. Also it avoids confusion in case your code has to co-exist with other pieces of code you don’t have control over. Here is a short example on how to make namespaces in javascript(Ross, thanks for the tip on the factory pattern!):
<script>
var MYCOMPANY = {};
MYCOMPANY.MyProduct = (function (){
// Private members.
function MyClass(){
this.id = "MyClass";
}
MyClass.prototype.getId = function(){
return this.id;
}
var createClass = function (){
var newClass = new MyClass();
return newClass;
}
return { // Public members.
createClass: createClass
};
})();
var myObject = MYCOMPANY.MyProduct.createClass();
</script>
Recent Comments