Re:Ruby's Date/DateTime classes rewritten in C.. 20-200x per...
by _pius on Monday August 23, 2010 @12:12PM
(#1627145)
Have you submitted that as a patch?
[ Parent
| on HN ]
Re:Ruby's Date/DateTime classes rewritten in C.. 20-200x per...
by j-g-faustus on Monday August 23, 2010 @12:48PM
(#1627241)
No, I implemented only the subset of the Date API I needed for the application. A fully-fledged Ruby Date would be a larger project.
+1 for duck typing, a custom non-Date object can look like a date for operations that only use a subset of the methods.
Re:Ruby's Date/DateTime classes rewritten in C.. 20-200x per...
by jrockway on Monday August 23, 2010 @04:10PM
(#1627882)
How many other people have half-started implementations of the same thing? That's why it's important to publish your code somewhere, even if it's "not good enough". Someone else can make it good enough.