• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Date Once
 

Date Once

on

  • 1,543 views

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

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

Statistics

Views

Total Views
1,543
Views on SlideShare
1,539
Embed Views
4

Actions

Likes
2
Downloads
21
Comments
0

2 Embeds 4

http://www.slideshare.net 2
http://www.linkedin.com 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Date Once Date Once Presentation Transcript

    • 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 Want to keep the code clean and uncluttered with caching related code