Tag: refactoring

Problems when you don’t Refactor Rails: Lower Participation

Another problem unfactored code causes with open source Rails projects, is lower participation. Before getting into that, why do we even care about project participation? Why participation matters Lower participation in open source projects can kill it. Developers care about code quality and will leave if the quality gets too low. Users don’t care about …

Read more

Redmine Refactor #98: Extract method from IssuesController#bulk_edit

After thinking about how IssuesController#bulk_edit works, I decided to leave it in IssuesController. It doesn’t match Rail’s REST conventions but it does match the REST principles for resource representations. IssuesController returns representations of issue collections and issue objects. Since #bulk_edit works on an issue collection, keeping it in the IssuesController makes sense. There still is …

Read more