Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
awj
on Jan 6, 2013
|
parent
|
context
|
favorite
| on:
Dependency injection is not a virtue
Because Time.now is a
global
method whose behavior you've just (temporarily) modified. Any tests or code that
do
depend on Time.now returning the actual current time won't work correctly.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: