Skip to main content
12 events
when toggle format what by license comment
Feb 13, 2014 at 23:41 history bounty ended wchargin
Feb 10, 2014 at 19:15 history edited Cary Swoveland CC BY-SA 3.0
added 6 characters in body
Feb 10, 2014 at 19:08 history edited Cary Swoveland CC BY-SA 3.0
added 2 characters in body
Feb 10, 2014 at 6:13 history edited Cary Swoveland CC BY-SA 3.0
deleted 1 characters in body
Feb 10, 2014 at 6:05 history edited Cary Swoveland CC BY-SA 3.0
deleted 1 characters in body
Feb 9, 2014 at 22:23 history edited Cary Swoveland CC BY-SA 3.0
added 518 characters in body
Feb 9, 2014 at 6:33 comment added Cary Swoveland W, I've tried to address the questions in your comment by adding some discussion at the end of my answer. Feel free to ask more follow-ups.
Feb 9, 2014 at 6:31 history edited Cary Swoveland CC BY-SA 3.0
Added disussion of concise versus descriptive code at the end.
Feb 9, 2014 at 5:34 vote accept wchargin
Feb 9, 2014 at 5:25 comment added wchargin Thanks very much for your help and in-depth explanation. This is the kind of answer I was looking for. That said, I have a few questions. Looking at your code immediately brought to mind the Zen of Python's "complex is better" than complicated - does that apply here? I've read that Ruby is supposed to read like English, or is that just for simpler programs? Finally, is it generally better practice to separate methods (find_empties and find_empties_sorted) or have just one?
Feb 9, 2014 at 0:34 history edited Cary Swoveland CC BY-SA 3.0
deleted 3 characters in body
Feb 9, 2014 at 0:29 history answered Cary Swoveland CC BY-SA 3.0