01 Jul '13, 2am

I probably would have used an encryptor *instance*, but otherwise some good ideas here:

During refactoring, private methods are created in order to: Eliminate duplication within the class Clarify confusing and/or complex fragments of related code (Extract Method ) These are both great refactorings, but be cautious of classes with an excessive amount of private class or instance methods. This is a smell that often indicates a class is doing too much work. Help maintain cohesion by refactoring private methods into separate objects. In this post, we’ll look at a way of writing private methods that encourages future extraction. Iceberg Classes and Hidden Abstractions An iceberg class is a class that has more private methods (3? 5? 10?) than public methods. Private methods are often an indication of additional, hidden responsibilities. By adopting a functional style, private methods can be easily extracted into separate objects. A private function is a private met...

Full article: http://pivotallabs.com/write-private-functions-not-privat...

Tweets

The world's fastest private jet

The world's fastest private jet

aluxurytravelblog.com 30 Jun '13, 8pm

Ever wondered what the world’s fastest private jet is? Or how fast it goes? That title is held by the new Cessna Citation ...

Barefoot luxury on a tiny private Indian Ocean island

Barefoot luxury on a tiny private Indian Ocean ...

aluxurytravelblog.com 29 Jun '13, 8pm

Fanjove Private Island opened its doors on 1st June 2013, and I was privileged to be one of their first visitors. From the...

10th July: Private super-single bedroom in cent...

rentinsingapore.com 30 Jun '13, 6am

private super-single bedroom, in central east / aljunied $750/month (1 pax), $900 (2 pax). minimal 6 months lease. rent in...

5 Methods to Put the Guest Back into Guest Blog...

searchenginejournal.com 29 Jun '13, 1pm

, content relevancy will play a huge factor in guest blogging SEO after the Penguin 2.0 update. The most condemnable offen...

10th July: BIG Private room + Balcony at lavend...

rentinsingapore.com 30 Jun '13, 6am

big private room + balcony at lavender near bugis city. 250-300 sqft, spacious! $1100/mth (1 pax), $1200 (2 pax), $1300 (3...

Object Oriented Rails – Writing better controllers

pivotallabs.com 30 Jun '13, 1am

I have been doing a lot of mobile development lately, using Objective-C on iOS, and Java on Android. Since I’m also a Ruby...