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 8 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.
  • B Offline
    B Offline
    BoneSoft
    wrote on last edited by
    #1

    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 J P C S 22 Replies 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
      Chris Losinger
      wrote on last edited by
      #2

      i try to ignore MS programming tech until it's been out in a commercially-available product for at least two years. i'll take a look at LINQ when LINQ-2010 comes out . it'll be nice and usable, then.

      image processing toolkits | batch image processing

      C 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.

        J Offline
        J Offline
        Jorgen Sigvardsson
        wrote on last edited by
        #3

        Because some brainiac at microsoft thought it was a "sweet" idea?

        -- Kein Mitleid Für Die Mehrheit

        1 Reply Last reply
        0
        • C Chris Losinger

          i try to ignore MS programming tech until it's been out in a commercially-available product for at least two years. i'll take a look at LINQ when LINQ-2010 comes out . it'll be nice and usable, then.

          image processing toolkits | batch image processing

          C Offline
          C Offline
          Clickok
          wrote on last edited by
          #4

          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:

          P M C B 4 Replies 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.

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            It doesn't worry me in the slightest. I won't be using it, so I don't really care about it one way or another. I'm a bit of a grumpy old git about "cutting edge" technologies. The problem with cutting edge is that they end up making you bleed.

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

            C 1 Reply Last reply
            0
            • 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:

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Clickok wrote:

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

              Booo. I'd have to disagree here. It's reached a point (in the 2005 implementation) where I'm happy and comfortable with it. Now they just want to go and spoil it.

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

              1 Reply Last reply
              0
              • 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:

                M Offline
                M Offline
                Mircea Grelus
                wrote on last edited by
                #7

                duck!

                Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy

                D 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
                  Colin Angus Mackay
                  wrote on last edited by
                  #8

                  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

                  P B S M K 5 Replies Last reply
                  0
                  • M Mircea Grelus

                    duck!

                    Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy

                    D Offline
                    D Offline
                    Douglas Troy
                    wrote on last edited by
                    #9

                    *QUACK*


                    :..::. Douglas H. Troy ::..
                    Bad Astronomy |VCF|wxWidgets|WTL

                    1 Reply Last reply
                    0
                    • 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:

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

                      Clickok wrote:

                      .Net Framework is here since 2002 and it isn't neither nice or usable...

                      I'd have to disagree with that. I'm very happy with it. And I'm looking forward to the enhancements in 2008.


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

                      L 1 Reply Last reply
                      0
                      • P Pete OHanlon

                        It doesn't worry me in the slightest. I won't be using it, so I don't really care about it one way or another. I'm a bit of a grumpy old git about "cutting edge" technologies. The problem with cutting edge is that they end up making you bleed.

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

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

                        Pete O`Hanlon wrote:

                        The problem with cutting edge is that they end up making you bleed.

                        That's why they are also called "bleeding edge" ;)


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

                        P 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

                          P Offline
                          P Offline
                          Pete OHanlon
                          wrote on last edited by
                          #12

                          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.

                          C S 2 Replies Last reply
                          0
                          • C Colin Angus Mackay

                            Pete O`Hanlon wrote:

                            The problem with cutting edge is that they end up making you bleed.

                            That's why they are also called "bleeding edge" ;)


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

                            P Offline
                            P Offline
                            Pete OHanlon
                            wrote on last edited by
                            #13

                            Colin Angus Mackay wrote:

                            That's why they are also called "bleeding edge"

                            Ouch.

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

                            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.

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

                              Pete O`Hanlon wrote:

                              So no change there then.

                              None whatsoever. :-D


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

                              1 Reply Last reply
                              0
                              • 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
                                          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