Friday, August 17, 2012

How much is experience worth?


During the Facebook IPO in May, UBS lost more than $350 million as a results of a glitch in their systems that re-sent buy orders and accumulated 40 million shares that would have to be sold at a loss.

As a software developer, it's not difficult to imagine the type of glitch that might cause such an issue. Something as small as comparing a value to null or improper error handling can cost a company hundreds of millions of dollars, which begs the question, how important are the architects and developers creating these systems?

It's easy to understand the importance of experience when building something as physically monumental as a sky scraper. People's lives depend on the quality of design and workmanship. Unfortunately, many companies don't see their enterprise software in the same light. They balk over the cost of senior talent and begrudge resources for quality control, then end up spending much more in damage control when systems fail.

How can we nurture a corporate culture that recognizes the value of experienced talent and proactive quality control?

Friday, August 10, 2012

You're Interviewing Them

Most of us are raised to believe that a job interview is where a potential employer asks you a bunch of questions to see if you're right for the job, but did you know that the best candidates often spend as much time asking questions as answering them?

Asking questions shows that you're serious about the job and indicates potential employment is as much your decision as it is theirs. Questions about culture and coworkers are a great way to take the focus off money and help the interviewer realize you're looking ahead to what employment with them might look like. A potential long-term employee wants to know if it will be a good fit and somewhere they will be happy working for an extended period of time.

Once an interviewer has established that you have the skills to do a job, the next question on their mind is usually performance. It's one thing to have ability, but quite another to have work ethic and focus. By asking about their top performers you can show your interest in becoming one of them. By keeping the question open ended, such as "What is the most important quality you see in your top employees?", you can gain insight into what's most important to them and provide examples of how you've displayed said quality later in the interview.

Asking the right question isn't just about gathering information and doesn't replace the need for preparatory research. In fact, it's vital to have a basic understanding of the company's business in order to know what questions to ask. One example is the question, "How do you deal with [insert challenge here]?" Addressing a challenge facing the business not only shows you've done your homework, but it also indicates you're a problem solver and interested in being part of the solution.

Some questions depend on the interviewer. When being interviewed by someone from human resources it is probably best to keep questions general with focus on the overall company and position in question. With a hiring manager you're able to delve deeper into how they measure success and what they need most in an employee. The best opportunity for information gathering, however, comes when interviewing with a peer. Asking about their experiences with that company and manager not only provides valuable insight into the position, but shows respect for their opinion which can be very endearing.

Good questions don't take the place of being qualified and informed, but they are a great way to make yourself stand out from the crowd and determine if this specific opportunity is right for you.

Thursday, August 9, 2012

WPF MVVM with WinForms Controls

This is the second part of my series on using MVVM with WPF. In the first article I discussed architecting disconnected applications and how MVVM was a great fit for WPF smart clients as well as Silverlight web clients. Now we move on to the process of refactoring an old Windows Forms application to use this new architecture.

The main concern with changing an underlying technology is the initial investment in rewriting code. To help mitigate this issue, WPF has provided a WindowsFormsHost element that allows us to host WinForms controls inside of a WPF Page. Obviously this limits how effectively we can leverage other features provided by WPF, however with a few workarounds it's a viable solution to avoid having to completely rewrite those old WinForms controls.

How easy is it to implement the WindowsFormsHost?
<WindowsFormsHost><wfh:WinFormsUserControl x:Name="LegacyUserControl" /></WindowsFormsHost>

Okay, it's only slightly more complicated than that. You will need to add add a reference to WindowsFormIntegration and possibly System.Windows.Forms (if it is not already referenced).

Now the question comes to how we interact with this control from our ViewModel since we can't use WPF bindings in our WinForms control. We can bridge this gap by adding events to our WinForms user control.


Then we wire up the events to our DataContext in our WPF Page code-behind.


While I generally prefer to avoid using the code-behind, we also don't want our ViewModel to be aware of the internal workings of our View.

The end result is our Windows Forms control interacts with elements in our WPF Page.

demonstration

Download Demo Source Code