Juli 2007 - Einträge
Scott Guthrie's Blog is the one to read if you are interested in the latest informations about Orcas, Ajax and .NET 3.5.
get the latest infos and a lot of useful links about the new stuff on his latest post!
I wonder how this guy( being a general manager and mastermind for most of the new stuff around asp.net) finds time to also write excellent and useful posts.
He really is on a mission...
He has a new prominent disciple: Scott Hanselman.
every project can benefit from good unit testing. Why do so many developers (including me) have problems to accept that UT is a good thing and just do it?
I believe it's just a matter of "getting started". I also don't like the dogmatic approaches that put pressure on me saying: Always do this! Do it this way! This is the only way! Developers are "different", they need a strong inner motivation to change their way of coding. I think most developers cannot be convinced to do UT or even Test Driven Development style programming, they just see the extra work, and not the benefit for themselves. They only way to achieve that would be to learn from experienced people right on the project. After the first time they can tell the project manager: "the bug is not in my code it's all green!" they will start loving it.
i found this nice booklet, just nice to read. It tries to emphasize the Karma and the Zen of unit testing, not the Dogma. 
A new, 196 page document can be downloaded from Microsoft: SOA in the Real World.
the text dicusses basic principles (and myths) and tries to explain how the goals of an Service oriented architecture can be achieved with .NET 3.0 and other MS tools.
Is this the successor to the famous (but a bit aged) "Application Architecture for .NET: Designing Applications and Services" ?
It has better pictures in it, thats for sure:

I will read it, need some lecture for my holidays anyway...
well, that's pretty simple. We found this brilliant javascript (and a piece of flash) module.
Here's a list of supported languages and their aliases:
| Language |
Aliases |
| C++ |
cpp, c, c++ |
| C# |
c#, c-sharp, csharp |
| CSS |
css |
| Delphi |
delphi, pascal |
| Java |
java |
| Java Script |
js, jscript, javascript |
| PHP |
php |
| Python |
py, python |
| Ruby |
rb, ruby, rails, ror |
| Sql |
sql |
| VB |
vb, vb.net |
| XML/HTML |
xml, html, xhtml, xslt |
just change to the HTML editor and use the following syntax:
<pre name="code" class="c-sharp">
... some code here ...
</pre>
beware of opening angled brackets, they should be replaced with <
you can also use a textarea, than you don´t have to care about angled brackets :
<textarea name="code" class="c#" cols="60" rows="10">
... some code here ...
</textarea>
This is how it looks like (some random c# sample). you can copy to clipboard, print and open a texteditor.
using System;
using System.IO;
using System.Text.RegularExpressions;
using System.Xml;
using CommunityServer.Components;
using Sgml;
namespace ScottWater.CS.Modules
{
/// <summary>
/// Attempts to clean up the FormattedBody
/// of any IContent. While this is not 100% valid XHTML
/// it is a very good start (if no exception, it should be
/// valid XML).
/// </summary>
public class XHTML : ICSModule
{
public XHTML(){}
public void Init(CSApplication csa, XmlNode node)
{
csa.PrePostUpdate +=new CSPostEventHandler(csa_PrePostUpdate);
}
private void csa_PrePostUpdate(IContent content, CSPostEventArgs e)
{
SgmlReader reader = null;
StringWriter sw = null;
XmlTextWriter writer = null;
if you want it in your blog on this site, pleas ask your admin, he has to edit a file of the blog theme for you.
Thanks Alex, great job!