I really learned the most about object oriented programming by playing with Ruby on Rails.
PeepCode rocks! Excellent screencasts for beginners and advanced coders. Here's a handful of good ones. The first two are specifically for beginners.
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<title>Dialoggs Login</title> | |
<style> | |
body { | |
background-color: #dbdcdd; |
<!-- It'd be easy for me to do what you want without changing much --> | |
<%= stylesheet_link_tag 'desktop/desktop' %> | |
<%= stylesheet_link_tag 'tablet/tablet', :media => 'only screen and (min-width: 768px) and (max-width: 991px)' %> | |
<%= stylesheet_link_tag 'mobile/mobile', :media => 'only screen and (max-width: 767px)' %> | |
<!-- Changed This --> | |
<meta name="viewport" content="width=device-width" /> | |
<!-- To This --> |
// SproutCore Modifications to version 2.0.beta.3 Metal and Runtime, | |
// and SproutCore wrappers for several Appcelerator Titanium views | |
// Brian Pattison @brianpattison | |
/////////////////// | |
// sproutcore.js // | |
/////////////////// | |
// Added to the beginning of sproutcore.js | |
var window = {}; |
tell application "iTunes" | |
repeat with s in sources | |
if (kind of s is iPod) then update s | |
end repeat | |
end tell |
SC.defineProperty = function(obj, keyName, desc, val) { | |
var m = meta(obj, false), descs = m.descs, watching = m.watching[keyName]>0; | |
if (val === undefined) { | |
val = hasDesc(descs, keyName) ? descs[keyName].teardown(obj, keyName) : obj[keyName]; | |
} else if (hasDesc(descs, keyName)) { | |
// FIXME: Hack for Android V8? or Kindle Fire? Throws teardown is undefined error | |
if (typeof descs[keyName].teardown === 'function') { | |
descs[keyName].teardown(obj, keyName); | |
} |
var Ember = require('/lib/em_ti/ember-runtime'); | |
Keychain = require('com.obscure.keychain'); | |
/** | |
@class | |
An Appcelerator Cloud Services User. | |
@extends Ember.Object | |
*/ |