Refactor and Review

Review.And.Refactor

I’ve started to bring this “spike” to a close since I’ve set out to figure out the stuff I needed to using a few Azure services and got to a point of refactoring.   When I get to this point with a spike, I set out to do the following things listed in the task list you see here.  I’ll step through the why for each of them.

  1. Refactoring for Interfaces – I tend to build up a few concrete types which don’t need to be added to an IoC container for injection, I try not to abuse Unity even though it’s pretty awesome.  Until I find out that maybe a member needs to be injected to reduce a bit of coupling across the solution.  So, I’ll look for these opportunities across the solution and extract an interface and either add it to the container or do some poor man’s injection w/o the container – it just depends on the context of the type’s usage.  I agree, more interfaces are better, even marker interfaces serve a purpose but I try not to go crazy with anything, interfaces included.
  2. Logging – At this point, I know more than I did a few weeks ago and I’ve got a clearer idea of what I want to log.  This time I just need to build up the event source class for the app based on what I learned.  That’s it.  No more, no less.
  3. Magic Strings and Numbers – This one is special. I litter the application with strings and sometimes numbers and this is the best time to go back over the entire solution to pull them out and into something like constants, that’s what worked for this exercise.  I’m walking through all of the code to see if it makes sense, especially the bits that I’ve not seen in a few weeks.  I forget sometimes what I was thinking, and clarifying with a better member or method name is always better than adding comments.  And yes, I’ve got a small battery of tests to fire off after each changeset gets checked in.
  4. Plumbing for cross-cutting stuff – Now that the logging events are done, I need to plant them in the classes that are doing the work.

Not much here, just some habits I’ve been using over the years to keep solutions clean, readable, and hopefully maintainable.

HTH / oFc

Advertisements

Chickenfoot III

Chickenfoot III – If any of my peers are reading this they are probably cringing at this moment, but I liked most of their debut disc, this one is better and I think a bit better writing went into this.  I’ve read a few reviews about this disc and I agree with their comments, all is good if you can just bear Sammy, I’m not sure he’s the “Red Rocker” any more.  He’s still a screamer and the harmonies are still there from time to time, but the juice from this album is definitely coming from the rhythm and strings sections.

“Up Next” starts off with a rock groove that just, well, it rocks.  Follows the same groove until the solo, the Joe just comes unglued – it’s awesome.

Michael Anthony’s playing is subtle but very solid.  On this and the first discs he’s killin’ with Chad, and harmonizes guitars with Joe so well, all the while still staying locked with Chad – yeah, I know he’s had a lot of practice and played with some great players, but he’s definitely not letting anything slip.

The experience might be totally different in concert, but I think these guys will be a great studio band until they decide to stop wanted to make music, right now it doesn’t sound like that at all.

I’m With You (RHCP)

Red Hot Chili Peppers – I’m With You – Picked this up last week based on some reviews of the bass work going on by Flea recently.  This disc did not disappoint in the least.  Too much action and at the usual speed of sound.

He leads the track Ethiopia off with “We’re rollin’ everybody time for some bass.”  He lays into this piece with his foot on the floor (you can stream the track off my home page if you like), then Chad falls in behind, then it just becomes awesome.

Not being a routine listener except for ‘Higher Ground’, ‘Can’t Stop’ the other chart toppers we hear on the radio ( I know there are dozens of others ) I had no affinity for their music.  Flea started showing up in Bass Player Magazine over the last year and the style he’s put together fuses a few bass players I do listen to, so his (unimitatable) style make sense, keeping up is the hard part, but fun to try!