Friday, April 27, 2007

Meet Joel on Software - Sat 19 May...

see: http://support.fogcreek.com/default.asp?pg=pgWiki&ixWikiPage=326

Unfortunately, i am away that weekend but may have been interesting...

Richard

4/27/2007 10:27:06 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Wednesday, April 25, 2007

this has taken me a lttle while to work out today so this might save time for you guys....

The most likely use of precision sql data types is in the use of "Money".... This is not a valid .Net/C# datatype but maps to a "Decimal(19,4)".  Use the Decimal as the property datatype for moeny fields because it iis more precise, this can then be mapped using the following in NHibernate:

 

<property name="[Property Name]" type="Decimal(19,4)">

      <column name="[Column Name]" sql-type="Money" />

</property>

4/25/2007 11:35:40 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Tuesday, April 24, 2007

Avoid use of Console.WriteLine in Nunit tests.  Instead debug the test with breakpoints to get runtime values.

Debug.Write can be used in TestSetup and TestFixtureSetUp to help trace errors (as nunit catches exceptions in these methods and it my not be easy to debug).

If Console.WriteLine or Debug.Write (or similar) is used in Nunit tests then they should only fire when an exception occurs or a test fails (this is to simplify the command line and cruise control build outputs) OR to provide helpful info on teh status of the test (eg database script being run) NOT to help with debugging.

Thanks,
Barry

4/24/2007 10:30:11 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Monday, April 23, 2007

Use:
   !String.IsNullOrEmpty(str)

Instead of:
   str!= null && str != String.Empty

c#
4/23/2007 5:18:13 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Thursday, April 19, 2007

Eric Schmidt (CEO Google) discussion at Web 2.0 Expo yesterday.

http://videos.webpronews.com/2007/04/18/web-20-expo-live-interview-with-google-ceo-eric-schmidt/

4/19/2007 12:20:48 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Wednesday, April 11, 2007

This is a seven part tutorial I have found on NHibernate that looks promising and is very much focussed on Domain Driven Design which is very interesting:

http://www.flux88.com/2006/07/05/A+Journey+With+NHibernate++Part+1.aspx

4/11/2007 2:16:44 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Tuesday, April 10, 2007

This fortnights useit column talks about the usability of the Breadcrumb in site navigation.

Is site usability, accessibility, web standards etc.. something we should consider when doing demo templates for partners?

4/10/2007 4:17:46 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback

www.opendns.com - I have come across this free service that I found really interesting and useful.  A DNS server that highlights known phishing sites or black listed sites and corrects typos on the fly!

4/10/2007 10:32:47 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Wednesday, April 04, 2007

http://www.ayende.com/ is a site maintained by a contributor to NHibernate - some of his blog entries handle things like .Net 2.0 Nullable types (DateTime? or Nullable<DateTime> in c#) with NHibernate.  Without these a DBNull would be set up as 01/01/0001 an invalid sql server date.  It would also look at 01/01/0001 != null therefore it has changed and try and update the date, throwing and exception because of the above.

There is also a couple of NHibernate dnrtv episodes, the first one is interesting because the Carl Franklin doesn't understand hibernate and asks the questions I ahve been asking myself in looking at NHibernate.

4/4/2007 3:16:39 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Monday, April 02, 2007