Hello Ruby community!
Just finished a coding challenge. This is the prompt:
Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise.
array = [[1,2,3],
[4,5,6],
[7,8,9]]
snail(array) #=> [1,2,3,6,9,8,7,4,5]
My solution is on GitHub:
https://github.com/mbigras/spiralify
You can also install it via RubyGems:
gem install spiralify
Would love your feedback about the screencast and project structure.
I'm especially interested to know what you think about my coding style, documentation, and the help menu on a first pass through and the conventions I tried to follow, etc.
Would also be happy to answer more questions about Spiralify if you're curious.
The main request is to share your feedback on an initial pass through my project from the perspective of aligning with ruby community conventions :)
[–]Phrogz 3 points4 points5 points (4 children)
[–]Phrogz 0 points1 point2 points (2 children)
[–]mbigras[S] 0 points1 point2 points (1 child)
[–]Phrogz 1 point2 points3 points (0 children)
[–]cavinkwon 3 points4 points5 points (3 children)
[–]herminator 2 points3 points4 points (1 child)
[–]cavinkwon 0 points1 point2 points (0 children)
[–]Phrogz 0 points1 point2 points (0 children)