كتب Renwar:
This was an annoying thing 4 me 2 read :
spoofy
Nice name though,
Java JUNQ
كتب Renwar:
so : i just want to hear some of ur thoughts abt .Net LINQ. what develope can this thing bring?
It's one of those things that make you think "Why didn't anyone think of this before?"
Of course I'm not talking about LINQ to objects (Querying memory arrays) which is not useful (although it will be when PLINQ (Parallel LINQ) is released)
I'm talking about LINQ to SQL (and the like), but then you realize, developers actually have been implementing and using similar techniques for years (even at the small company that I work for we've implemented a tool to generate wrapper classes for database objects) but all of these techniques weren't very successful because they weren't part of the language itself.
كتب Renwar:
do u really need sth like LINQ in ur code?
Not everybody need it but if you do access data in a database then you need it (or a similar technique)
hard coding SQL statements in your code (as strings) is just not good practice, you shouldn't even hard code column names or stored procedure names, actually you shouldn't hard code anything!
LINQ provides you with an easy and useful tool to eliminate the need of hard coding SQL statements, it has other useful qualities too, but IMHO the most important thing is that it greatly increase the quality of the code (more maintainable and less prone to errors).