DamienG


Comments:

Is It Possible? .NET Applications for iPhone?

posted by DamienGDamienG(1405) 4 years, 1 month ago 0

Only JailBroken/hacked iPhones - forget everything else unless Apple changes the terms and conditions of the SDK to allow interpreted/extendable code which any runtime would need (which is why no Java or Flash).

[)amien

Reply

Is the ADO.NET Team Abandoning LINQ to SQL?

posted by DamienGDamienG(1405) 4 years ago 0

Short answer: No.

Reply

A good coding font makes a difference. Envy Code R, better than ever!

posted by DamienGDamienG(1405) 3 years, 11 months ago 0

Monaco looks great on the Mac but it's patchy on Windows... an let's not get into the dubious grey area of installing an Apple copyrighted font on Windows.

[)amien

Reply

A good coding font makes a difference. Envy Code R, better than ever!

posted by DamienGDamienG(1405) 3 years, 11 months ago 0

Oh and the fact Monaco doesn't give you bold or italics.

[)amien

Reply

A good coding font makes a difference. Envy Code R, better than ever!

posted by DamienGDamienG(1405) 3 years, 11 months ago 0

There is no bold or italic version of Monaco. If you are using it on Windows what you are seeing is Windows coming up with it's own faux bold and italic versions - neither of which will honour the original metrics of the regular font and thus ruin the monospaced nature preventing you from mixing regular and bold in your IDE.

As an example open Wordpad and type ABCDEFG| on one line then copy and paste it to two more, change the font to Monaco and make the second line bold and the third line "italic". You will see they no longer line up.

[)amien

Reply

iPod Ad Generator

posted by DamienGDamienG(1405) 3 years, 11 months ago 0

And this is of internet to .NET programmers how?

[)amien

Reply

iPod Ad Generator

posted by DamienGDamienG(1405) 3 years, 11 months ago 0

Or interest even ;-)

Reply

Visual Studio 2008 SP1 Br0ke my LINQ-to-SQL

posted by DamienGDamienG(1405) 3 years, 11 months ago 0

Any particular reason why the word "beta" was removed from the title and summary posted here?

[)amien

Reply

List of countries, cities, languages

posted by DamienGDamienG(1405) 3 years, 8 months ago 0

The country list there is out of date - it doesn't even include the Channel Islands that were added in 2006.

Just go to the master source for this information and bypass all the adverts on this site - http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm

[)amien

Reply

LINQ To SQL is Dead - Read Between the Lines

posted by DamienGDamienG(1405) 3 years, 6 months ago 0

The reality, albeit less sensational, is at http://damieng.com/blog/2008/10/31/linq-to-sql-next-steps

[)amien

Reply

C# Structs

posted by DamienGDamienG(1405) 3 years, 6 months ago 0

Be aware of the overheads and semantics of passing structs into methods, e.g.

public void SetDetails(Employee a)
{
a.Name = "Bob";
a.Age = 30;
}

Will work fine where Employee is a class but will appear to do nothing if it is a struct as they are passed by value not reference so the original object will not be changed. It also means the entire struct will be pushed onto the stack value by value not just the memory pointer which may have performance overheads especially in recursive code.

If you are going to use structs you may want to consider making the objects immutable, i.e. they never change value once instantiated but instead create new versions. This is what many of the value types (structs) in .NET already do, e.g. DateTime.Now.AddDays(1) doesn't modify Now, it creates a new instance from it.

[)amien

Reply

C# Design Patterns - An Overview

posted by DamienGDamienG(1405) 3 years, 5 months ago 0

While the articles coming might be useful and worth DNK'ing this announcement isn't...

Reply

Comparison of Linq to Sql and Orasis Generated Data Access Code

posted by DamienGDamienG(1405) 3 years ago 0

There is nothing here about performance - there isn't even a show as to what TSQL LINQ to SQL is generating. Poor summary.

[)amien

Reply

Comparison of Linq to Sql and Orasis Generated Data Access Code

posted by DamienGDamienG(1405) 3 years ago 0

Hmm. Amusingly many of the Orasis API calls take lists of objects to insert/delete rather than a single instance so there is an overhead of creating a new list for every call even when you only want to send one item.

[)amien

Reply

How to create 3 tire application using LINQ

posted by DamienGDamienG(1405) 2 years, 8 months ago 0

Typo's aside this application doesn't have three tiers, it's just an extra class library on the client tier. It also mixes data access methods with the class (REGISTER has both properties and an insert method), the stored proc is storing the password in clear text and is completely unnecessary as LINQ to SQL is capable of doing exactly what the SP does already.

In short, do not follow these practices if you want a good LINQ to SQL based app. There are much better samples available.

[)amien
LINQ to SQL team

Reply

How to improve your LINQ query performance by 5 X times ?

posted by DamienGDamienG(1405) 2 years, 8 months ago 0

This is not a great explanation - the author assumes that the compiled queries are stored statically ('In compiled LINQ queries the plan is cached in a static class.') This is not the case.

CompiledQuery.Compile simply returns you the complete compiled delegate ready to go - you store the compiled result in whatever scope you want - the CompiledQuery doesn't touch any static 'global cache' although you can store this result somewhere statically if you like.

The other part of the performance story is the object reader & materializer. These we build and execute as required and we hold the most recently used 10 on thread storage - again not in a static class - and there is no facility right now for you to tweak or change this caching mechanism.

[)amien

Reply