Your SlideShare is downloading. ×
0
Inside Date.once
Understanding some of the more interesting
          code in the Ruby core
The Problem
The Problem

Instances of Date are immutable
The Problem

Instances of Date are immutable

Many methods involve complex calculations
The Problem

Instances of Date are immutable

Many methods involve complex calculations

Caching of results is desirable
The Problem

Instances of Date are immutable

Many methods involve complex calculations

Caching of results is desirable

...
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Date Once
Upcoming SlideShare
Loading in...5
×

Date Once

890

Published on

Explanation of the method Date::once in the ruby core classes. This talk was originally given at the TSOT Ruby on Rails Project Night

Published in: Technology, Education
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
890
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
22
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "Date Once"

  1. 1. Inside Date.once Understanding some of the more interesting code in the Ruby core
  2. 2. The Problem
  3. 3. The Problem Instances of Date are immutable
  4. 4. The Problem Instances of Date are immutable Many methods involve complex calculations
  5. 5. The Problem Instances of Date are immutable Many methods involve complex calculations Caching of results is desirable
  6. 6. The Problem Instances of Date are immutable Many methods involve complex calculations Caching of results is desirable Want to keep the code clean and uncluttered with caching related code
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×