Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
darkxanthos
on April 23, 2011
|
parent
|
context
|
favorite
| on:
Find/Replace on a JSON Object Graph
Any thoughts on how to do this better are most welcome! :)
RodgerTheGreat
on April 23, 2011
[–]
Speaking as a non-rubyist, I notice that the last code sample features some pretty serious "pyramid building". Is the "opt out" approach not idiomatic? For comparison, I'd probably write it like this:
http://pastebin.com/4P03Uqrq
darkxanthos
on April 23, 2011
|
parent
[–]
My approach is definitely not idiomatic ruby so I think your point is completely valid.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: