Friends of Mine
The Sitting Tree
 
Toggle Ad
 
 
 
Should You Really Be Optimizing Right Now?
posted: May 10th, 2009
 

C# is the language that is keeping the lights on right now. I had a conversation with a fellow programmer about refactoring and optimizing code. C# is compiled by a very refined compiler. I am hugely generalizing the process here, but the compiler can determine your intent and provide output based on that. This means you could write a method ten different ways and still produce the same output from the compiler. What does this mean? Let's say I originally wrote a method and was happy, then I learn about generics. I rewrite the method to use generics. Rinse and repeat and eight times later, the compiler still produces the same output. Maybe my code is more readible after the ten refactors, or maybe not.

I wanted to illustrate the unecessary effort we sometimes fall victim to. A more wholestic approach would be this. Compose a solution to a problem, run your solution under some sort of load test, and analyze the results. Your analysis should show the inefficiencies. Then you target those areas for improvement.

 

Give Feedback
 
Aim this Facebook this Reddit Stumble it
 
Tech News on CNN
The top 10 geek anthems of all time
Pentagon trains workers to hack Defense computers
AT&T tries to avoid outages at SXSW conference
Google adds bike routes to online maps
Anti-candidate Web site asks public for dirt
Environmentalist: It's becoming a plastic world
Driver: My Prius took me for a scary ride
Residents use social media to fight crime in Mexico
Social media at work -- ban or boon?
Police: Couple raised virtual child, ignored real one
 
Loading...
 
 
Powered
by EP