Skip to content

Freelancing Digest

Menu
  • Past Issues
  • Articles
  • About Me
    • Hire Me
    • Contact Me

Redmine Refactor #140: Extract Method WikiController#edit to #update

Digging into the next method in WikiController, I found that the #edit method is doing way too much. render a form for new wiki page render a form for editing an existing wiki page render a form for rolling back a wiki page creating a new wiki page updating an existing wiki page updating an …

Read more

  • extract-method
  • redmine
  • refactoring
  • ruby

Interested in seeing how I fix bugs and add features in Redmine?

I’ve been doing a lot of posts on Refactoring Redmine lately (and even wrote the book on it), but I’ve been wondering… Would anyone be interested in seeing how I fix bugs and add features to Redmine? Just add a comment below or reply to me on Twitter @edavis10. Eric Davis

Read more

  • meta

Redmine Refactor #139: Rename WikiController#index method to WikiController#show

Today’s refactoring is a pretty simple code change but it has some far reaching impact. While reviewing WikiController‘s refactoring to a REST resource, I noticed that the #index action is being used to show a single WikiPage. So using a simple rename method, I changed this to the standard #show. Before 1 2 3 4 …

Read more

  • redmine
  • refactoring
  • rename-method
  • ruby

Redmine Refactor #138: Unify Interfaces

Today’s refactoring is a bit different. I’ve noticed a code smell in WikiController that I wanted to fix before I got into it’s other actions. WikiController is working with the WikiPage model pretty intimately. The naming mismatch isn’t the problem though, the problem is with the parameter names that are passed around. :id – the …

Read more

  • redmine
  • refactoring
  • ruby
  • unify-interfaces

Redmine Refactor #137: Remove Method WikiController#special

After several refactorings to WikiController, finally the #special method isn’t pretending to be a traffic cop anymore (routing to other methods). Since it doesn’t have any other purpose now, I’m going to use remove method to toss it into the bit bucket. Before 1 2 3 4 5 6 7 8 9 10 class WikiController …

Read more

  • redmine
  • refactoring
  • remove-method
  • ruby
Posts navigation
Newer posts
Older posts

About Eric | Twitter | Google Plus
Best of Eric Davis | Best of Freelancing | Best of Product Business | Best of Ruby and Rails Programming
Privacy Policy | Terms of Use | A Little Stream Software website

Want to transition from coder to consultant? Learn more: