Browse by Tags

All Tags » Architecture (RSS)

Is String.IsNullOrEmpty Good or Bad?

I started to wonder about that when I was looking for an equivalent method in Ruby. Apparently, Ruby doesn’t come with such a method built-in, but you can add it very easily by using Ruyb’s monkey patching abilities. This is odd, because Ruby is the greatest language and has everything you possibly need (and IronRuby is even better! :) ). So why isn’t there an IsNullOrEmpty-like method? Well, they might just didn’t think it was important enough. And there might be a different answer, maybe the decision...
Posted by shayf | with no comments

How to Increase Code Quality

A while ago we decided on my team that we needed to increase our code quality. We were excited about that and thrilled to get it started with. Then we looked at each other eyes, saw the passion to write better code but… something was missing! When you think about it – how do you write better code? how do you increase your code quality? With the help of the great people on StackOverflow , I managed to gather a list of principles that can take your code to the next level: Testing Learn how and write...
Posted by shayf | with no comments

When The Whole is Greater Than The Sum of Its Parts

I did a lecture earlier this week about the design behind VSTO 3.0 Ribbon. This is the follow-up post with detailed information and a complete demo. Presentation: download Demo project: download In order to run the demo, open it in VS2008, build the setup project and install it, then run Word 2007. How to extend the Office 2007 Ribbon? In order to define a custom ribbon, you should construct an xml file that describes the controls you want to present there. For example, a ribbon xml file can be like...

Optimizing Software using a Brain-like Mechanism

While I was studying to a test in a Cognitive Psychology class, I figured out that our brain has performance features that we might want to import to our applications. In short, our brain has this mechanism - "Inhibition of Return" (AKA, IOR). This mechanism refers to the observation that the speed and accuracy with which an object is detected are first briefly enhanced after the object is attended, and then detection speed and accuracy are impaired. This means that when you attend new...
Posted by shayf | with no comments
תגים:,