Jul 29, 2011

The Only Fix I Would Like on the Programmers Keyboard

Quiz: How to align "=" symbols?

This is kind of a question that was sitting in my head for a while. Suppose you have this:

I too good.

int i = 29;
var myString = "somestring";
object context = new Context();

I would really like to see something like this:

... = 29;
... = "somestring";
... = new Context();

Of course, you can use some boring tool for this. But we have a winner, and it is so great so I decided to share it with you, my dear reader.

The following example describes completely winner's approach:

int _iiiiiiiii = 29;
var _myStrngSt = "somestring";
object context = new Context();

Jul 27, 2011

Skype - You know you are wrong!

Today it gave me this error: "Can't open Skype. You are already signed in on this computer. Please sign out and try again.".


It knows it is wrong. I know it is wrong. How did that appear in this mature product?

Jul 18, 2011

RegExr: A Tool That Saved My Day

I am am obviously not a pro in regular expressions. However, I would like to write bug-free (to some extent) regular expressions fast.

I found this tool: http://gskinner.com/RegExr/

It has two advantages for me:
1. No need to install
2. Shows whether regular expression works immediately


PS: I am not familiar with any other similar tools but I like this one for sure :)

Mar 25, 2011

VS2010 Trick: Alignment of "=" symbol

If you need to align variables and equality symbols as follows:

var1     = 1;
varvar2  = 2;
varvarr2 = 3;

Just install VS2010 Power Tools.

Here is a short cut to use: CTRL + ]

Have a good day!

Dec 8, 2010

UI Spy Replacement: UI Verify

Here it is: http://uiautomationverify.codeplex.com/
So far, I like it very much!

Take care!

WPF: In the search of automation Id for Popup

In case you are doing WPF development, and for some reason you are using Popup control (primitive), and it has no AutomationId (no matter what!!!) here is a cure:
 - How to set AutomationID and Name for Popup

Happy coding!

Dec 5, 2010

10 Pancakes #3

Enjoy good links:
 - Best code comments on StackOverflow 
 - Programmers jargon (good guidelines) on StackOverflow
 - Ultimate dev cheet sheet collection and more
 - Book: Software for your head (free PDF)
 - Go distributed .net with DryadLINQ
 - Visual Studio CTP with async pattern (C#5?)
 - Package management for .net
 - Rx Guidelines
 - Skills Matter - Yes, they are! 

Thanks!

Nov 29, 2010

Unity Interception (AOP)

Recently, I have been working on adding Unity Interception and found out that it is extremely poorly documented. Here is the list of links one may find useful:
 - The bare bones of Unity interceptions
 - Order Property and Firing of Handlers
 - Unity interception performance
 - INotifyPropertyChanged With Unity Interception AOP
 - Implementing INotifyProperyChanged with Unity Interception

Also, there are always opened questions here: unity-interception

Sep 13, 2010

10 Pancakes #2

This is yet another links list, enjoy.


 - WPF Triggers, Actions, Behaviors
 - Firedrill best practices for money saving
 - Patterns for Parallel Programming for .NET 4.0 book / guidelines
 - Code Contracts
 - Rx Extensions
 - Rx for Javascript
 - Free agile trainings
 - In fact, I see none people who do "agile" and familiar with agile principles and manifesto at the same time. I wonder why...
 - And dynamic languages are driving me crazy these days, I should learn a couple:
   * http://blog.wekeroad.com/2010/08/09/csharps-new-clothes
   * http://blog.wekeroad.com/2007/08/29/the-c-makeover