Jun 26
At Vanguard we had really strict Java code formatting conventions. It drove some people nuts but most people came round to the advantages in the end. With a fixed style, all the code in the company is written to a higher standard as people take more pride in their work. It is easy to do code reading and refactoring as there is no need to reformat the code. Arguments about the one true brace layout style or tab indentation size go away because the chosen style, whatever it is, is the law. People who can reliably code to a set format also tend to reliably code to a set specification. At that time, I started use CheckStyle to check my own code and would have liked to have included it in the pre build checks to warn of coding violations. Using a tool to verify the code also helps as you can’t argue with the tool and niggling about badly formatted code becomes less personal.
If you search Google for java code style checker the first site that comes up is the Checkstyle Home Page.
If you search Google for C# code style checker you get links to various Coding Style Guide documents.
I would have thought that someone would have ported CheckStyle to C#. Maybe C# programmers don’t care about their code looks…
Oct 29
One thing I hate about IIS is that it is so hard to find the information you need to script it. Take the Application Mappings dialog that controls which executable runs to handle a file extension when a request comes into the ISS to serve up a page in a virtual directory. How could you guess that you are looking for the “ScriptMaps” value in the metabase? I only managed to find it because I searched for the code fragment GetObject("IIS://LocalHost/W3SVC/1/root") and “Application Mappings” which enabled me to find the linked page.
If you came in from a search I guess that you are reading this because you are trying to do the same thing.
Oct 29
One thing I hate about IIS is that it is so hard to find the information you need to script it. Take the Application Mappings dialog that controls which executable runs to handle a file extension when a request comes into the ISS to serve up a page in a virtual directory. How could you guess that you are looking for the “ScriptMaps” value in the metabase? I only managed to find it because I searched for the code fragment GetObject("IIS://LocalHost/W3SVC/1/root") and “Application Mappings” which enabled me to find the linked page.
If you came in from a search I guess that you are reading this because you are trying to do the same thing.
Jun 24
How to compile C# Hello World on the command line.