Software developer with experience in C#, a fling with Python, and a one night stand with Ruby. Also gazing at afar at functional languages. I also like Science Fiction (anything by Iain M. Banks), history, and PC gaming.
Yep Nope js is a conditional asycronious javascript loader from Alex Sexton and Ralph Holzmann.
I love projects that have usage examples on the home page! Fair enough that people ask you to read the documentation, but why not have the documentation right in the user’s face? Why hide is away in another link to a wiki when you can pick and choice bits to show people, bits that you think are awesome?
Take this for instance:
yepnope([{
load: 'http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js',
complete: function () {
if (!window.jQuery) {
yepnope('local/jquery.min.js');
}
}
}, {
load: 'jquery.plugin.js',
complete: function () {
jQuery(function () {
jQuery('div').plugin();
});
}
}]);Now looking at the name of this project we can take a stab at the first “load” being a conditional that if it’s true, super!, if not then do another load with the location of the local copy of jQuery. And within this we have a cool way of having a hosted version of jQuery on Google’s CDN, but if they go down to revert back to the local copy. There’s some other examples on the page that make me want to build a site to try them out, which is always a good reflection on the project!
Lua seems to be coming up in the world, here's a nice tutorial site
The only problem I have with it is the amount of flash for titles. Looks broken when you've flash block installed!
Also the lua for windows package has a really nice tutorial in the cmd window.
Basically a zero pain way to start doing some lua. Even bundles SciTE with it. (F5 to see the output of your program)
Objectives:- What is the difference between using $.myfunction and $.fn.myfunction?
- What does the dollar sign mean?
- What does the jQuery function jQuery.extend do and how to use it?
- How to initialize my jQuery plugin and pass it function parameters?
- How to provide default values for and how to override initialization parameters? If you are curious about in depth implementation of jQuery interface for adding your own code into existing framework, this tutorial is for you!
There's another set called "War" about Digg vs Reddit. (http://www.flickr.com/photos/25036088@N06/sets/72157615924666317/) I'm still wanting for the finale!
Idea time. Brb hacking.
Really nice series of the core basics of python.
Part of Google’s code university.
EDIT: First link is dead *sad face*
New Microsoft ad out. Much funnier then the first. Still you have the na-sayers. But I don't think it's an ad-campaign and more like an attempt to go viral.
Here's the first one.