title: How do Javascript getters work?
body: <p>i'v been using javascript getters for a long time in my applications, and always thought</p>
  
  <p>that they work like this:</p>
  
  <pre><code>myobject.prototype.__defineGetter__('something', function () {
     return DoSomeHeavyComputation() // this will be executed only once and will be saved
  })
  
  new myobject()
  myobject.something // the computation will be done here
  myobject.something // no computation will be done here.
  </code></pre>
  
  <p>i just found out the computation is done each time...</p>
  
  <p>is there a resource or something that shows how do they actually work ?</p>