Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Missing LINQ?

Missing LINQ?

Scheduled Pinned Locked Moved The Lounge
databasecsharplinqcomtools
78 Posts 33 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Clickok

    Chris Losinger wrote:

    i'll take a look at LINQ when LINQ-2010 comes out . it'll be nice and usable, then.

    How optimist! .Net Framework is here since 2002 and it isn't neither nice or usable... :doh:


    For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.(John 3:16) :badger:

    B Offline
    B Offline
    BoneSoft
    wrote on last edited by
    #15

    I'm not sure I'd agree with that. Even 1.0 was far more complete and polished than Java 1.2 at the time.


    Try code model generation tools at BoneSoft.com.

    1 Reply Last reply
    0
    • B BoneSoft

      Is anybody else more than just a little uneasy about LINQ? The few examples I've seen make no sense to me. And I can't see what drove them to this solution either. I picture somebody at MS saying "ya know, let's take this well known standardized perfectly good query language that everybody is used to, chuck it out the window, and make a cryptic bizzare syntax built into the language itsef..." Ok, I can see some advantages to having it built it to the languages, not least of all avoiding the need for string storage and manipulation. But could it not have been more... SQL-like? Am I alone here or does anybody else have reservations about LINQ? And I know there are some people out there that are really excited about it, I'd like to hear what they have to say too.


      Try code model generation tools at BoneSoft.com.

      S Offline
      S Offline
      Scott Dorman
      wrote on last edited by
      #16

      BoneSoft wrote:

      Is anybody else more than just a little uneasy about LINQ?

      Not in the slightest. The only thing I'm worried about is that the concepts will be misunderstood and abused.

      BoneSoft wrote:

      I can't see what drove them to this solution either.

      There is a good overview of LINQ on MSDN[^] that provides some of the historical reasons that drove the implementation. In looking at the current and next generation of technologies, it has become apparent that the next big challenge in programming technology is to reduce the complexity of accessing and integrating information that is not natively defined using OO technology. The two most common sources of non-OO information are relational databases and XML. Rather than add relational or XML-specific features to our programming languages and runtime, with the LINQ project we have taken a more general approach and are adding general-purpose query facilities to the .NET Framework that apply to all sources of information, not just relational or XML data. This facility is called .NET Language-Integrated Query (LINQ).

      BoneSoft wrote:

      it not have been more... SQL-like?

      That's exactly what they were trying to avoid in the first place. Going beyond that, the SQL syntax is inheritantly different than C# and one of the goals was to allow programmers who do not know SQL to more easily work with data access. The thought behind this is that as a programmer, I should not be required to understand the nuances of the SQL language but I should still be able to interact with the data in a way that is natural to me (hence the C# syntax). LINQ is really just a structured mechanism of interacting with new functions and classes that have been added to the .NET Framework. Everything in a LINQ query is really nothing more than a function call. The way you interact and program a LINQ query is due to more basic additions to the language, such as extension methods, lambda expressions, and implicit typing. These concepts are not LINQ specific in that they can be used outside of LINQ, but without them LINQ wouldn't exist.

      Scott.

      B 1 Reply Last reply
      0
      • C Colin Angus Mackay

        BoneSoft wrote:

        I picture somebody at MS saying "ya know, let's take this well known standardized perfectly good query language that everybody is used to, chuck it out the window, and make a cryptic bizzare syntax built into the language itsef..."

        I would very much doubt that. LINQ is just syntactic sugar for a number of new classes that were added to the .NET Framework. You can perform the same thing but without using LINQ by just calling the appropriate methods. In fact that should be taught because it will show people how it is actually put together.

        BoneSoft wrote:

        But could it not have been more... SQL-like?

        No. The basis of C# and SQL are different. SQL is mostly a declarative set based language, while C# is procedural. (i.e. In SQL you say what you want and the query optimiser figures out how to get it. In C# you specify HOW you want it to function.) You can view LINQ as a hybrid of the two.

        BoneSoft wrote:

        Am I alone here or does anybody else have reservations about LINQ?

        My only reservation about LINQ is that I can see how newbies will be able to abuse it without fully understanding what is going on under the hood.


        Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

        S Offline
        S Offline
        Scott Dorman
        wrote on last edited by
        #17

        Colin Angus Mackay wrote:

        My only reservation about LINQ is that I can see how newbies will be able to abuse it without fully understanding what is going on under the hood.

        Absolutely, but we have that problem now so it will just be more of the same.

        Scott.


        —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

        1 Reply Last reply
        0
        • C Colin Angus Mackay

          BoneSoft wrote:

          I picture somebody at MS saying "ya know, let's take this well known standardized perfectly good query language that everybody is used to, chuck it out the window, and make a cryptic bizzare syntax built into the language itsef..."

          I would very much doubt that. LINQ is just syntactic sugar for a number of new classes that were added to the .NET Framework. You can perform the same thing but without using LINQ by just calling the appropriate methods. In fact that should be taught because it will show people how it is actually put together.

          BoneSoft wrote:

          But could it not have been more... SQL-like?

          No. The basis of C# and SQL are different. SQL is mostly a declarative set based language, while C# is procedural. (i.e. In SQL you say what you want and the query optimiser figures out how to get it. In C# you specify HOW you want it to function.) You can view LINQ as a hybrid of the two.

          BoneSoft wrote:

          Am I alone here or does anybody else have reservations about LINQ?

          My only reservation about LINQ is that I can see how newbies will be able to abuse it without fully understanding what is going on under the hood.


          Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

          B Offline
          B Offline
          BoneSoft
          wrote on last edited by
          #18

          Maybe that's where most of my apprehension comes from, I don't like jumping into something I don't know how to use properly. And as a programmer, I don't like working with something I don't fully understand. But thanks for the info, now that I know there is an underlying model, I have something to go on, the examples I've seen seem to be complete giberish.


          Try code model generation tools at BoneSoft.com.

          S 1 Reply Last reply
          0
          • P Pete OHanlon

            Colin Angus Mackay wrote:

            My only reservation about LINQ is that I can see how newbies will be able to abuse it without fully understanding what is going on under the hood.

            So no change there then. God forbid that the unwashed masses should actually get off their a*ses and take the time to actually learn how to do something.

            Deja View - the feeling that you've seen this post before.

            S Offline
            S Offline
            Scott Dorman
            wrote on last edited by
            #19

            Pete O`Hanlon wrote:

            the unwashed masses should actually get off their a*ses and take the time to actually learn how to do something.

            But then we'd all have to find real work to do instead of answering questions about how to create an array, telling people to do their own homework and what forums to post in. It would be a travesty! :)

            Scott.


            —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

            1 Reply Last reply
            0
            • B BoneSoft

              Maybe that's where most of my apprehension comes from, I don't like jumping into something I don't know how to use properly. And as a programmer, I don't like working with something I don't fully understand. But thanks for the info, now that I know there is an underlying model, I have something to go on, the examples I've seen seem to be complete giberish.


              Try code model generation tools at BoneSoft.com.

              S Offline
              S Offline
              Scott Dorman
              wrote on last edited by
              #20

              BoneSoft wrote:

              the examples I've seen seem to be complete giberish

              Right now there isn't anyone at Microsoft focused specifically on LINQ and getting the word out about it. A lot of the examples try to show the "power" of LINQ, but don't do a good job at it because they are either hard to read/understand, incomplete, or don't show it in the context of a real-world scenario.

              Scott.


              —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

              B C 2 Replies Last reply
              0
              • S Scott Dorman

                BoneSoft wrote:

                Is anybody else more than just a little uneasy about LINQ?

                Not in the slightest. The only thing I'm worried about is that the concepts will be misunderstood and abused.

                BoneSoft wrote:

                I can't see what drove them to this solution either.

                There is a good overview of LINQ on MSDN[^] that provides some of the historical reasons that drove the implementation. In looking at the current and next generation of technologies, it has become apparent that the next big challenge in programming technology is to reduce the complexity of accessing and integrating information that is not natively defined using OO technology. The two most common sources of non-OO information are relational databases and XML. Rather than add relational or XML-specific features to our programming languages and runtime, with the LINQ project we have taken a more general approach and are adding general-purpose query facilities to the .NET Framework that apply to all sources of information, not just relational or XML data. This facility is called .NET Language-Integrated Query (LINQ).

                BoneSoft wrote:

                it not have been more... SQL-like?

                That's exactly what they were trying to avoid in the first place. Going beyond that, the SQL syntax is inheritantly different than C# and one of the goals was to allow programmers who do not know SQL to more easily work with data access. The thought behind this is that as a programmer, I should not be required to understand the nuances of the SQL language but I should still be able to interact with the data in a way that is natural to me (hence the C# syntax). LINQ is really just a structured mechanism of interacting with new functions and classes that have been added to the .NET Framework. Everything in a LINQ query is really nothing more than a function call. The way you interact and program a LINQ query is due to more basic additions to the language, such as extension methods, lambda expressions, and implicit typing. These concepts are not LINQ specific in that they can be used outside of LINQ, but without them LINQ wouldn't exist.

                Scott.

                B Offline
                B Offline
                BoneSoft
                wrote on last edited by
                #21

                Scott Dorman wrote:

                to reduce the complexity of accessing and integrating information that is not natively defined using OO technology

                Yeah, that's always been one of the biggest problems. Xml serialization has bridged the XML gap somewhat, but database has always been a problem. And I'm not sure I like most current and past approaches to addressing that. I wasn't a huge EJB fan, but then again, I didn't do a lot of work with them. I suppose LINQ may be a step forward, but the syntax just looks so bizzare to me.


                Try code model generation tools at BoneSoft.com.

                S T 2 Replies Last reply
                0
                • B BoneSoft

                  Scott Dorman wrote:

                  to reduce the complexity of accessing and integrating information that is not natively defined using OO technology

                  Yeah, that's always been one of the biggest problems. Xml serialization has bridged the XML gap somewhat, but database has always been a problem. And I'm not sure I like most current and past approaches to addressing that. I wasn't a huge EJB fan, but then again, I didn't do a lot of work with them. I suppose LINQ may be a step forward, but the syntax just looks so bizzare to me.


                  Try code model generation tools at BoneSoft.com.

                  S Offline
                  S Offline
                  Scott Dorman
                  wrote on last edited by
                  #22

                  BoneSoft wrote:

                  I suppose LINQ may be a step forward, but the syntax just looks so bizzare to me.

                  It's definately a step forward. I think we'll see a lot more improvements in the next release of the Framework (after 3.5). The syntax does take some getting used to, but I think once you do it will feel more natural than trying to write embedded SQL or dealing with SqlCommand objects.

                  Scott.


                  —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

                  1 Reply Last reply
                  0
                  • S Scott Dorman

                    BoneSoft wrote:

                    the examples I've seen seem to be complete giberish

                    Right now there isn't anyone at Microsoft focused specifically on LINQ and getting the word out about it. A lot of the examples try to show the "power" of LINQ, but don't do a good job at it because they are either hard to read/understand, incomplete, or don't show it in the context of a real-world scenario.

                    Scott.


                    —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

                    B Offline
                    B Offline
                    BoneSoft
                    wrote on last edited by
                    #23

                    I guess that makes sense. I suppose I should be content to do my thing for the time being and learn it when it's more main-stream. But lately I've been feeling like I'm falling behind. WPF is completely foreign to me still, as are most of the C# enhancements scheduled for 2008. Most of the enhancements in C# 2.0 made sense and were welcome changes. Most of what I've seen for 3.5 don't have the same appeal to me. It's like getting your new 2005 boss that does some great things for the department, then after a year brings in your new supervisor 2008 who likes to call you at 3 in the morning to make sure you're answering on-call pages. Just seems like something's wrong under the surface. Maybe I'm just getting old and set in may ways, which is something to guard against in this business. In any event, I guess it's comming. I'll have to deal with it when it releases anyway.


                    Try code model generation tools at BoneSoft.com.

                    S 1 Reply Last reply
                    0
                    • S Scott Dorman

                      BoneSoft wrote:

                      the examples I've seen seem to be complete giberish

                      Right now there isn't anyone at Microsoft focused specifically on LINQ and getting the word out about it. A lot of the examples try to show the "power" of LINQ, but don't do a good job at it because they are either hard to read/understand, incomplete, or don't show it in the context of a real-world scenario.

                      Scott.


                      —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

                      C Offline
                      C Offline
                      Colin Angus Mackay
                      wrote on last edited by
                      #24

                      Scott Dorman wrote:

                      Right now there isn't anyone at Microsoft focused specifically on LINQ and getting the word out about it.

                      I don't know... Daniel Moth, one of the UK's DPEs, has done quite a good job in some of his presentations. http://www.danielmoth.com/Blog/2007/02/decomposing-linq.html[^] Skip to the last code sample to see what it looks like without LINQ. Daniel has got quite a good series of blog posts on LINQ. I've also got some information on LINQ and some of the new language constructs in C# 3.0: * Anonymous Types[^] * Method Extensions[^] * Automatic Properties[^] * A start on LINQ[^] * Object Initialisers I[^] * Object Initialisers II[^] * Object Initialisers III[^]


                      Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

                      S C 2 Replies Last reply
                      0
                      • B BoneSoft

                        I guess that makes sense. I suppose I should be content to do my thing for the time being and learn it when it's more main-stream. But lately I've been feeling like I'm falling behind. WPF is completely foreign to me still, as are most of the C# enhancements scheduled for 2008. Most of the enhancements in C# 2.0 made sense and were welcome changes. Most of what I've seen for 3.5 don't have the same appeal to me. It's like getting your new 2005 boss that does some great things for the department, then after a year brings in your new supervisor 2008 who likes to call you at 3 in the morning to make sure you're answering on-call pages. Just seems like something's wrong under the surface. Maybe I'm just getting old and set in may ways, which is something to guard against in this business. In any event, I guess it's comming. I'll have to deal with it when it releases anyway.


                        Try code model generation tools at BoneSoft.com.

                        S Offline
                        S Offline
                        Scott Dorman
                        wrote on last edited by
                        #25

                        BoneSoft wrote:

                        lately I've been feeling like I'm falling behind

                        I know that feeling. The Framework (and other associated technologies) are changing too fast for almost anyone to keep up.

                        BoneSoft wrote:

                        WPF is completely foreign to me still, as are most of the C# enhancements scheduled for 2008.

                        WPF will eventually be a great thing, but it is still too raw to be really useful. Fortunately, most of the C# enhancements for 2008 are simple once you are able to break them down and look at them outside of the "bigger" technology they are in place to support. A good example are extension methods. Check out this blog post[^] to get an idea of how they work.

                        BoneSoft wrote:

                        Most of the enhancements in C# 2.0 made sense and were welcome changes. Most of what I've seen for 3.5 don't have the same appeal to me.

                        I agree with you on that. The biggest problem is that most of the new stuff in 3.5 is couched in the context of the "bigger" items. Once you start to break them apart and look at the underlying pieces separately, things start to make more sense and have a greater appeal.

                        BoneSoft wrote:

                        Maybe I'm just getting old and set in may ways, which is something to guard against in this business.

                        I'll reserve comment on that one. :-D

                        BoneSoft wrote:

                        In any event, I guess it's comming. I'll have to deal with it when it releases anyway.

                        Well...only if you want to make use of the new features. Just because it's been released in the language doesn't mean you have to use it.

                        Scott.


                        —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

                        1 Reply Last reply
                        0
                        • C Colin Angus Mackay

                          Scott Dorman wrote:

                          Right now there isn't anyone at Microsoft focused specifically on LINQ and getting the word out about it.

                          I don't know... Daniel Moth, one of the UK's DPEs, has done quite a good job in some of his presentations. http://www.danielmoth.com/Blog/2007/02/decomposing-linq.html[^] Skip to the last code sample to see what it looks like without LINQ. Daniel has got quite a good series of blog posts on LINQ. I've also got some information on LINQ and some of the new language constructs in C# 3.0: * Anonymous Types[^] * Method Extensions[^] * Automatic Properties[^] * A start on LINQ[^] * Object Initialisers I[^] * Object Initialisers II[^] * Object Initialisers III[^]


                          Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

                          S Offline
                          S Offline
                          Scott Dorman
                          wrote on last edited by
                          #26

                          Colin Angus Mackay wrote:

                          I don't know... Daniel Moth, one of the UK's DPEs, has done quite a good job in some of his presentations.

                          Absolutely. Daniel has done an excellent job, but as far as I know he's not focused on the .NET Framework as a whole, but rather specific pieces. (I'm not actually sure what Daniels focus is since he does tend to have a rather ecclectic set of topics. :)) That's more what I was referring to. There currently isn't anyone in DPE that is focused specifically on tying together the pieces and covering the Framework and Visual Studio changes from a "big picture" viewpoint.

                          Scott.


                          —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

                          1 Reply Last reply
                          0
                          • B BoneSoft

                            Is anybody else more than just a little uneasy about LINQ? The few examples I've seen make no sense to me. And I can't see what drove them to this solution either. I picture somebody at MS saying "ya know, let's take this well known standardized perfectly good query language that everybody is used to, chuck it out the window, and make a cryptic bizzare syntax built into the language itsef..." Ok, I can see some advantages to having it built it to the languages, not least of all avoiding the need for string storage and manipulation. But could it not have been more... SQL-like? Am I alone here or does anybody else have reservations about LINQ? And I know there are some people out there that are really excited about it, I'd like to hear what they have to say too.


                            Try code model generation tools at BoneSoft.com.

                            C Offline
                            C Offline
                            Christian Graus
                            wrote on last edited by
                            #27

                            LINQ is more syntactic sugar, but it can be powerful. My only fear is how badly it will perform in the hands of the ignorant. But that's a good thing, having features that are powerful in the right hands, instead of worrying about what they can do in the wrong hands, is a step towards the C++ approach to language design. I applaud that. Now they just need to make switch statements more useful, and provide a meaningful const keyword.

                            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                            B T 2 Replies Last reply
                            0
                            • C Christian Graus

                              LINQ is more syntactic sugar, but it can be powerful. My only fear is how badly it will perform in the hands of the ignorant. But that's a good thing, having features that are powerful in the right hands, instead of worrying about what they can do in the wrong hands, is a step towards the C++ approach to language design. I applaud that. Now they just need to make switch statements more useful, and provide a meaningful const keyword.

                              Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                              B Offline
                              B Offline
                              BoneSoft
                              wrote on last edited by
                              #28

                              True, MS has done enough to pander to the hard of thinking. I'd say VB.Net was plenty enough. :laugh:


                              Try code model generation tools at BoneSoft.com.

                              1 Reply Last reply
                              0
                              • B BoneSoft

                                Scott Dorman wrote:

                                to reduce the complexity of accessing and integrating information that is not natively defined using OO technology

                                Yeah, that's always been one of the biggest problems. Xml serialization has bridged the XML gap somewhat, but database has always been a problem. And I'm not sure I like most current and past approaches to addressing that. I wasn't a huge EJB fan, but then again, I didn't do a lot of work with them. I suppose LINQ may be a step forward, but the syntax just looks so bizzare to me.


                                Try code model generation tools at BoneSoft.com.

                                T Offline
                                T Offline
                                Todd Smith
                                wrote on last edited by
                                #29

                                It's really no worse than learning the regular expression syntax is it?

                                Todd Smith

                                B 1 Reply Last reply
                                0
                                • B BoneSoft

                                  Is anybody else more than just a little uneasy about LINQ? The few examples I've seen make no sense to me. And I can't see what drove them to this solution either. I picture somebody at MS saying "ya know, let's take this well known standardized perfectly good query language that everybody is used to, chuck it out the window, and make a cryptic bizzare syntax built into the language itsef..." Ok, I can see some advantages to having it built it to the languages, not least of all avoiding the need for string storage and manipulation. But could it not have been more... SQL-like? Am I alone here or does anybody else have reservations about LINQ? And I know there are some people out there that are really excited about it, I'd like to hear what they have to say too.


                                  Try code model generation tools at BoneSoft.com.

                                  M Offline
                                  M Offline
                                  Member 96
                                  wrote on last edited by
                                  #30

                                  I'm with you 100%. It looks cryptic, bizarre and no one here has yet been able to give me any compelling reasons why I should care about it or use it for anything in my day to day work. If it's somehow related to querying then why in the world the weird syntax? Many of us programmers are intimately familiar with sql syntax, something that was close would have made for easier adoption. I'll wait until 2010 as others have said or until it's damn near impossible not to use it then have a look at it. If I really cared I could learn it quickly I'm sure but without a good reason behind it I fail to see the point of wasting brain space on something so mundane and clearly obtuse.


                                  Modo vincis, modo vinceris.

                                  B 1 Reply Last reply
                                  0
                                  • B BoneSoft

                                    Is anybody else more than just a little uneasy about LINQ? The few examples I've seen make no sense to me. And I can't see what drove them to this solution either. I picture somebody at MS saying "ya know, let's take this well known standardized perfectly good query language that everybody is used to, chuck it out the window, and make a cryptic bizzare syntax built into the language itsef..." Ok, I can see some advantages to having it built it to the languages, not least of all avoiding the need for string storage and manipulation. But could it not have been more... SQL-like? Am I alone here or does anybody else have reservations about LINQ? And I know there are some people out there that are really excited about it, I'd like to hear what they have to say too.


                                    Try code model generation tools at BoneSoft.com.

                                    R Offline
                                    R Offline
                                    Rama Krishna Vavilala
                                    wrote on last edited by
                                    #31

                                    I have to deal with collections a lot in my code. LINQ to Objects has been especially useful in this regard. LINQ offers several common functions that work for custom collections and standard collections alike. (Granted you can always write the functions but with LINQ you don't have to anymore). Sorting, Filtering and grouping data for all collections is now far more easier. Again it si for my specific case as I use collections a lot. Another beautiful thing is that LINQ unifies querying over SQL and that over objects. Your code need not bother whether it is querying over objects or databases (or even XML). For database (SQL Server mainly) the code is automatically transformed to SQL and is run on the database server and for objects it automatically uses the built-in LINQ to objects. The LINQ to XML stuff is far simpler than XML DOM or even using XML Reader directly.

                                    Co-Author ASP.NET AJAX in Action

                                    B 1 Reply Last reply
                                    0
                                    • T Todd Smith

                                      It's really no worse than learning the regular expression syntax is it?

                                      Todd Smith

                                      B Offline
                                      B Offline
                                      BoneSoft
                                      wrote on last edited by
                                      #32

                                      I dunno, Regex wasn't that foreign and I could immediately see the point and the benefit. But purely with respect to learning curve, the jury's still out until I actually learn LINQ. (If I actually learn LINQ)


                                      Try code model generation tools at BoneSoft.com.

                                      1 Reply Last reply
                                      0
                                      • M Member 96

                                        I'm with you 100%. It looks cryptic, bizarre and no one here has yet been able to give me any compelling reasons why I should care about it or use it for anything in my day to day work. If it's somehow related to querying then why in the world the weird syntax? Many of us programmers are intimately familiar with sql syntax, something that was close would have made for easier adoption. I'll wait until 2010 as others have said or until it's damn near impossible not to use it then have a look at it. If I really cared I could learn it quickly I'm sure but without a good reason behind it I fail to see the point of wasting brain space on something so mundane and clearly obtuse.


                                        Modo vincis, modo vinceris.

                                        B Offline
                                        B Offline
                                        BoneSoft
                                        wrote on last edited by
                                        #33

                                        It's good to know I'm not alone. I rarely get to talk shop and don't really know where the majority stands on this stuff. With LINQ specifically, it looks like it will always be an optional tool. But with all the new stuff, I feel like I need to learn enough to decide if it's worth my while to delve into full throttle.


                                        Try code model generation tools at BoneSoft.com.

                                        1 Reply Last reply
                                        0
                                        • R Rama Krishna Vavilala

                                          I have to deal with collections a lot in my code. LINQ to Objects has been especially useful in this regard. LINQ offers several common functions that work for custom collections and standard collections alike. (Granted you can always write the functions but with LINQ you don't have to anymore). Sorting, Filtering and grouping data for all collections is now far more easier. Again it si for my specific case as I use collections a lot. Another beautiful thing is that LINQ unifies querying over SQL and that over objects. Your code need not bother whether it is querying over objects or databases (or even XML). For database (SQL Server mainly) the code is automatically transformed to SQL and is run on the database server and for objects it automatically uses the built-in LINQ to objects. The LINQ to XML stuff is far simpler than XML DOM or even using XML Reader directly.

                                          Co-Author ASP.NET AJAX in Action

                                          B Offline
                                          B Offline
                                          BoneSoft
                                          wrote on last edited by
                                          #34

                                          That brings up another problem with data access that's been around as long as data access has... The framework has gone a long way toward making it easier to access different engines, but it only abstracts to a certain degree. Data access may never have a single interface between different platforms. But that comes down more to standards than anything. But for XML, I refuse to worry about the DOM or XmlReader. I love XML seriliazation. And I can't imagine LINQ or anything else improving on that. All you need is a nice tool (like mine ;P) and you instantly have an XML serializable model that can be used for that and any other purpose. It's one of the many reasons I may never look back at Java again, I hated dealing with their DOM or SAX or basically any of their XML models.


                                          Try code model generation tools at BoneSoft.com.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups