Re:Find/Replace on a JSON Object Graph
by darkxanthos on Saturday April 23, 2011 @11:34AM
(#2476975)
Any thoughts on how to do this better are most welcome! :)
[ Parent
| on HN ]
Re:Find/Replace on a JSON Object Graph
by RodgerTheGreat on Saturday April 23, 2011 @11:45AM
(#2477002)
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
Re:Find/Replace on a JSON Object Graph
by darkxanthos on Saturday April 23, 2011 @11:56AM
(#2477026)
My approach is definitely not idiomatic ruby so I think your point is completely valid.