Is it possible to share a masterpage between MVC and webforms?

You can absolutely share the same master page. Your MVC master page must simply point to the WebForms masterpage via its MasterPageFile attribute. This applies your WebForms MasterPage styles to your MVC MasterPage. I am using this setup in production. The declaration on my MVC Master Page, pointing at the Web Forms Master Page: <%@ … Read more

Legacy Java Syntax

It’s a copy-paste error, I suppose. From JLS 1 (which is really not that easy to find!), the section on local variable declarations states that such a declaration, in essence, is a type followed by an identifier. Note that there is no special reference made about *, but there is special reference made about [] … Read more

How to revert to previous commit in CVS

CVS documentation can be found here, but from this site it tells how to revert a single file: MAKING THE OLD VERSION THE CURRENT VERSION Save the version of “oldfile” to something else and check out the “current” version. Note: you must still to do update -A to get the current version, because even though … Read more

How can I run a Windows GUI application on as a service?

Windows services cannot have GUIs, so you will need to either get rid of the GUI or separate your application into two pieces – a service with no UI, and a “controller” application. If you have the source code, converting the non-GUI code into a service is easy – Visual Studio has a ‘Windows Service’ … Read more

What can you do to a legacy codebase that will have the greatest impact on improving the quality?

Read Michael Feather’s book “Working effectively with Legacy Code” This is a GREAT book. If you don’t like that answer, then the best advice I can give would be: First, stop making new legacy code[1] [1]: Legacy code = code without unit tests and therefore an unknown Changing legacy code without an automated test suite … Read more

DDD, Anti Corruption layer, how-to?

From the DDD book (Domain-Driven Design: Tackling Complexity in the Heart of Software) by Eric Evans: The public interface of the ANTICORRUPTION LAYER usually appears as a set of SERVICES, although occasionally it can take the form of an ENTITY. and a bit later One way of organizing the design of the ANTICORRUPTION LAYER is … Read more