Too Much Testing

Too Much Testing Published: Mar 22, 2008 Source: https://khebbie.dk/too-much-testing/ OK, so in this post I decided to put on display my total ignorance toward unit testing. I just read Chris Tavares article on ASP.NET MVC. It is by the way, a good introduction to ASP.NET MVC. However one thing i stumbled upon was the unit testing part. For example the “HelloController” is less than 20 lines of code, and the unit testing is more than 20 lines of code. ...

March 22, 2008 · Klaus Hebsgaard

PowerGUI

PowerGUI Published: Feb 12, 2008 Source: https://khebbie.dk/powergui/ I Just discovered PowerGui an application, where you can host your most used powershell scripts. It can off course be used by IT Pros, but developers can leverage on it as well. For instance a testing framework has been made. I have for instance made two small scripts that searches the Eventlog to find when the computer was started and stopped during the last month. I use this when I have to register how much time was used on a project - well i have to since I am always behind here :-(

February 12, 2008 · Klaus Hebsgaard

Good cop - Bad cop

Published: Jan 31, 2008 There is a danish movie called “hannibal & Jerry”. It’s a story about a little boy who buys a dog - the dog later is discovered to be able to speak (it’s a kids movie). So the boy takes the dog for a walk and is having a conversation with his dog. During this conversation he walks out in front of a police car and is nearly run over. ...

January 31, 2008 · Klaus Hebsgaard

[DK]Svcutil

[DK]Svcutil Published: Nov 5, 2007 Source: https://khebbie.dk/dksvcutil/ Vi bruger SVCUTIL til to ting i øjeblikket: Til at generere datacontracts udfra vores kanoniske datamodel At generere proxies udfra vores datacontract dll’er add 1: Vi opbevarer vores kanoniske datamodel i xsd og kan generere datacontracts udfra en xsd således: svcutil /dconly cdm.xsd På den måde stemmer datakontrakterne altid overens med den kanoniske datamodel add 2: Når man gerne vil have WCF til at generere proxies udfra en service laver den en ny proxy hver gang, men vi vil gerne have den til at genbruge datacontracts, her kan svcutil hjælpe. ...

November 5, 2007 · Klaus Hebsgaard

[DK]Easy Refactorings to Improve the Readability of Your Code

[DK]Easy Refactorings to Improve the Readability of Your Code Published: Aug 15, 2007 Source: https://khebbie.dk/easy-refactorings-to-improve-the-readability-of-your-code/ I dette blog indlæg lægges op til løsning på nogle dagligdagsproblemer: Easy Refactorings to Improve the Readability of Your Code Problemet som behandles i inidlægget går på readability, og handler om følgende kode: adapter.OpenConnection(@“C:\data\records.mdb”, true, false); Det som forfatteren har imod koden er at det kan være svært at huske hvad parametrene betyder, når der kun kaldes med true og false. Så løsningen der bliver fremsat i indlægget er som følger: ...

August 15, 2007 · Klaus Hebsgaard

Logparser

Logparser Published: Sep 6, 2006 Source: https://khebbie.dk/logparser/ I just discovered a tool from Microsoft called LogParser, I don’t have a lot of experience with it. The point with the tool is that you can use sql to query your logs, and you can query different logtypes (Windows EventLog, csv, xml, sql server and more). At http://www.logparser.com you find a forum regarding LogParser. Here is a small example of a logparser query: LogParser -i:EVT -o:NAT “SELECT * FROM System” ...

September 6, 2006 · Klaus Hebsgaard

[DK]Generisk programmering

[DK]Generisk programmering Published: May 12, 2006 Source: https://khebbie.dk/generisk-programmering/ Jeg har lavet tre artikler om generisk programmering: http://www.hebsgaard.dk/programmering/genericprog1.html http://www.hebsgaard.dk/programmering/genericprog2.html http://www.hebsgaard.dk/programmering/genericprog3.html

May 12, 2006 · Klaus Hebsgaard