John Sequeira

Amped::Technology

Monday, March 21, 2005
C-omega vs. TT

rows = select * from DB.Employees where City == city;             
      foreach( row in rows ) {
        string name = row.LastName.Value;
        int id = row.EmployeeID.Value;
        Console.WriteLine( id.ToString() + ": " + name);
      }

.NET forces you to write a lot of code to wrap around data sources with impedance mismatches. It would be great if they could address this sooner rather than later.

Until then, fortunately, there is the amazing Template Toolkit + DBI

q = DBI.prepare("select * from DB.Employees where City =?");
o.id + ":" + o.name FOREACH o = q.execute(city);

via Steve Eichert
2:34:29 PM      comment []  trackback []


© Copyright 2005 John Sequeira.
 
March 2005
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Feb   Apr



Click here to visit the Radio UserLand website.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
Yahoo: johnseq2
MSN: [email protected]
AIM: amped02139
Skype: johnjulian