Closed machikoyasuda closed 8 years ago
example: http://exercism.io/submissions/e3b4a0a869af4c25af828bdb12d631d2
Whenever you are looping through a collection and find yourself writing a conditional (if or unless) nested inside of the loop, take a moment to look through the available enumerable methods.
There are some very handy ones that might let you simplify.
Here are all of Rikki's automated comments: https://github.com/exercism/rikki/tree/master/comments/analyzer/ruby
-- Style: https://github.com/thoughtbot/guides
@kennethlee sorry to switch things up but can you make this as a file in the repo instead? https://github.com/fullstackla/pairing-meetup/wiki/Code-Smells
@kennethlee this is a nice list to incorporate too: http://lasoftwarecraftsmanship.com/clean-code-checklist/
maybe we can have 2 lists:
they are kind of inverses of each other. heh
@machikoyasuda That clean code checklist is helpful. It's also worded plainly enough so as to be pretty easy for newbies to grasp/understand so instead of reinventing the wheel by paraphrasing it, I emailed the author asking if we could add it to our repo as-is. I'll come back with his reply.
@machikoyasuda Michael Rice (the organizer for LA Software Craftsmanship meetup) got back to me over the weekend and graciously gave us permission to use their Clean Code Checklist. See PR #23
I'll get started on this.
I'm going to try to keep it as light and approachable as possible so as to be beginner-friendly.