RSS
 

Archive for September, 2013

Intel’s Original Business plan

14 Sep

Intel’s original one page double-spaced business plan for investors, as typed by Robert Noyce:
intel original business paln

Sources:
Something Ventured
http://fromabctoxyz.blogspot.com/2005/11/intel-business-plan-july-1968.html
– Intel Museum and Darius Mahdjoubi, October 2005

 
No Comments

Posted in Business

 

Ruby Class Variables in the main context

05 Sep

Since ruby class variables belong to the class hierarchy, all objects in that class hierarchy all the way up to ruby’s main object, share the same class variable. This could lead to unexpected behavior, especially since the class variable can be modified in the main context. See below modifying @@name in the main context changes its value on all objects.

class Cat
end
 
class Tiger < Cat
  def me
    @@name = 'tiger'
  end
 
  def show
    @@name
  end
end
 
tiger = Tiger.new
 
tiger.me
#=> "tiger"
 
tiger.show
#=> "tiger" 
 
class Cat
  def me
    @@name = 'cat'
  end
 
  def show
    @@name
  end 
end
 
cat = Cat.new
 
cat.me
#=> "cat" 
 
cat.show
#=> "cat"
 
tiger.show
#=> "cat"
 
@@name = 'animal'
#=> "animal" 
 
cat.show
#=> "animal"
 
tiger.show
#=> "animal"
 
 

Coffeescript Cheatsheet for JQuery

02 Sep


Corrections and suggestions are welcome.

 
 
 
Premium Wordpress Plugin