Refactoring and self speaking code: a real life example

Here is a real life example by Stefano Masini;
this post is about refactoring/rewriting code in order to get self explaining code.
The example talk about dichotomic search on dynamic resizing of ui frame.

If we could make the code so speaking that understanding is made trivial, maybe we would stop rewriting the algorithm, thus saving time and brain power. We might even get some code that can actually be extended to handle further corner cases, where each extending implementation would have a natural place to go.

You’d better read it! 😉

source: Code: speak to me!

Technorati Tags:, , 
Advertisements

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: