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. Short LINQ syntax

Short LINQ syntax

Scheduled Pinned Locked Moved The Lounge
csharplinqcomquestion
53 Posts 13 Posters 0 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.
  • U User 10246491

    Anyone know this new short syntax method of LINQ queries ? http://bwqs.codeplex.com

    D Offline
    D Offline
    dan sh
    wrote on last edited by
    #8

    I suspect if something like that will get approved as article here at CP. I did not even felt like reading it considering how difficult it was to read unformatted code. Yes, I am that lazy.

    U 1 Reply Last reply
    0
    • U User 10246491

      Yes, your first ideia is correct ! I created myself and try to disseminate and get feedback from the community on this new concept. Your guess is that is not correct. I never would post spam in such a prestigious community like CodeProject. Regards.

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #9

      OK. BTW there is an error in your code, a semi-colon is missing on line 35, so the copy&paste does not compile.

      ~RaGE();

      I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

      U 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        The bloke who wrote the article probably does. Me? I think there is enough confusion available in LINQ without needing extra compact stuff that looks like a regex - i.e. unreadable without a good long look.

        You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)

        U Offline
        U Offline
        User 10246491
        wrote on last edited by
        #10

        Hi, First thank you for the comment. But, you read the summary of the entire project ? Download the console for training and testing the new concept ? See it in action: http://www.youtube.com/watch?v=kLdIS809wBA Do this! Then comment again. Regards

        1 Reply Last reply
        0
        • U User 10246491

          Anyone know this new short syntax method of LINQ queries ? http://bwqs.codeplex.com

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

          My eyes. They burn. That looks like the coding equivalent of the Bieber-beast Seriously, why? The whole point about LINQ is that it's a natural looking syntax. This takes terse to the nth degree. While it might be clever, I have to ask what problem domain you're attempting to solve here. Why should I invest my time learning this?

          U 1 Reply Last reply
          0
          • D dan sh

            I suspect if something like that will get approved as article here at CP. I did not even felt like reading it considering how difficult it was to read unformatted code. Yes, I am that lazy.

            U Offline
            U Offline
            User 10246491
            wrote on last edited by
            #12

            Hi, A version with a more detailed content more examples was posted and is awaiting approval for publication of the article. Meanwhile you can get an idea of the concept in action: http://www.youtube.com/watch?v=kLdIS809wBA http://youtu.be/BeFFYMJL9e4 Tks for reading ! Regards ;-)

            1 Reply Last reply
            0
            • M Marc Clifton

              Yuck. Marc

              Automating Semantic Mapping of a Document With Natural Language Processing

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #13

              :thumbsup:

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

              1 Reply Last reply
              0
              • R Rage

                OK. BTW there is an error in your code, a semi-colon is missing on line 35, so the copy&paste does not compile.

                ~RaGE();

                I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                U Offline
                U Offline
                User 10246491
                wrote on last edited by
                #14

                Hi Rage, Tks for your reply. The Project Portal on CodePlex contains an Test Package functional, check-it : http://bwqs.codeplex.com/releases/view/127212 Regards ;-)

                1 Reply Last reply
                0
                • U User 10246491

                  Yes, your first ideia is correct ! I created myself and try to disseminate and get feedback from the community on this new concept. Your guess is that is not correct. I never would post spam in such a prestigious community like CodeProject. Regards.

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #15

                  Member 10277067 wrote:

                  I never would post spam in such a prestigious community like CodeProject.

                  And yet you did. QED.

                  U R 2 Replies Last reply
                  0
                  • P Pete OHanlon

                    My eyes. They burn. That looks like the coding equivalent of the Bieber-beast Seriously, why? The whole point about LINQ is that it's a natural looking syntax. This takes terse to the nth degree. While it might be clever, I have to ask what problem domain you're attempting to solve here. Why should I invest my time learning this?

                    U Offline
                    U Offline
                    User 10246491
                    wrote on last edited by
                    #16

                    Hi, Tks for your reply. Why community currently uses JQuery in large scale ? THINK MORE. WRITE LESS ! ;-) Regards

                    P P 2 Replies Last reply
                    0
                    • P PIEBALDconsult

                      Member 10277067 wrote:

                      I never would post spam in such a prestigious community like CodeProject.

                      And yet you did. QED.

                      U Offline
                      U Offline
                      User 10246491
                      wrote on last edited by
                      #17

                      It's a discussion in The Lounge, not SPAM. Regards

                      P 1 Reply Last reply
                      0
                      • P PIEBALDconsult

                        Member 10277067 wrote:

                        I never would post spam in such a prestigious community like CodeProject.

                        And yet you did. QED.

                        R Offline
                        R Offline
                        Rage
                        wrote on last edited by
                        #18

                        Some people do not understand sarcasm[^]. :rolleyes:

                        ~RaGE();

                        I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                        OriginalGriffO 1 Reply Last reply
                        0
                        • U User 10246491

                          It's a discussion in The Lounge, not SPAM. Regards

                          P Offline
                          P Offline
                          PIEBALDconsult
                          wrote on last edited by
                          #19

                          Spam is in the eye of the beholder. Otherwise there would be no such term.

                          1 Reply Last reply
                          0
                          • U User 10246491

                            Hi, Tks for your reply. Why community currently uses JQuery in large scale ? THINK MORE. WRITE LESS ! ;-) Regards

                            P Offline
                            P Offline
                            PIEBALDconsult
                            wrote on last edited by
                            #20

                            No; a developer must write as clearly as possible so that the next developer can think less. Effort "saved" up front often leads to greater effort later.

                            M OriginalGriffO U F 4 Replies Last reply
                            0
                            • OriginalGriffO OriginalGriff

                              The bloke who wrote the article probably does. Me? I think there is enough confusion available in LINQ without needing extra compact stuff that looks like a regex - i.e. unreadable without a good long look.

                              You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)

                              M Offline
                              M Offline
                              Mark_Wallace
                              wrote on last edited by
                              #21

                              OriginalGriff wrote:

                              Me? I think there is enough confusion available in LINQ without needing extra compact stuff that looks like a regex - i.e. unreadable without a good long look.

                              It's like the rule 34 of coding: Within two years of its creation, a programming language that is easily usable will have been turned into a writhing mess of ridiculous complications. [edit] I typoed "writhing", fer cryin' out loud!

                              I wanna be a eunuchs developer! Pass me a bread knife!

                              1 Reply Last reply
                              0
                              • U User 10246491

                                This approach refers to a Bitwise combinations syntax, precisely the opposite way of Natural Language. Regards

                                M Offline
                                M Offline
                                Marc Clifton
                                wrote on last edited by
                                #22

                                Member 10277067 wrote:

                                This approach refers to a Bitwise combinations syntax,
                                precisely the opposite way of Natural Language.

                                I understand that, but the point of a natural language syntax is that it is readable, more or less, without an internal translation layer on the part of the reader. Like any syntax, it probably could become second nature (like how | is a bitwise OR and || is a logical OR), but I completely fail to see the advantage of using the syntax in your short LINQ examples. Marc

                                Automating Semantic Mapping of a Document With Natural Language Processing

                                1 Reply Last reply
                                0
                                • R Rage

                                  Some people do not understand sarcasm[^]. :rolleyes:

                                  ~RaGE();

                                  I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                                  OriginalGriffO Offline
                                  OriginalGriffO Offline
                                  OriginalGriff
                                  wrote on last edited by
                                  #23

                                  And then you get a sarchasm[^]

                                  You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)

                                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                  1 Reply Last reply
                                  0
                                  • P PIEBALDconsult

                                    No; a developer must write as clearly as possible so that the next developer can think less. Effort "saved" up front often leads to greater effort later.

                                    M Offline
                                    M Offline
                                    Marc Clifton
                                    wrote on last edited by
                                    #24

                                    PIEBALDconsult wrote:

                                    No; a developer must write as clearly as possible so that the next developer can think less.

                                    Very well said! Marc

                                    Automating Semantic Mapping of a Document With Natural Language Processing

                                    1 Reply Last reply
                                    0
                                    • U User 10246491

                                      Hi, Tks for your reply. Why community currently uses JQuery in large scale ? THINK MORE. WRITE LESS ! ;-) Regards

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

                                      You aren't comparing like with like. jQuery serves a purpose - making DOM manipulation consistent across browsers. You might want to think more before you pick your analogies.

                                      U 1 Reply Last reply
                                      0
                                      • P PIEBALDconsult

                                        No; a developer must write as clearly as possible so that the next developer can think less. Effort "saved" up front often leads to greater effort later.

                                        OriginalGriffO Offline
                                        OriginalGriffO Offline
                                        OriginalGriff
                                        wrote on last edited by
                                        #26

                                        :thumbsup: At times like this, I wish I could hit the upvote button a couple of dozen times...

                                        You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)

                                        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                        U 1 Reply Last reply
                                        0
                                        • P PIEBALDconsult

                                          No; a developer must write as clearly as possible so that the next developer can think less. Effort "saved" up front often leads to greater effort later.

                                          U Offline
                                          U Offline
                                          User 10246491
                                          wrote on last edited by
                                          #27

                                          PIEBALDconsult Please, The issue here is the discussion of a new possible concept, we can discuss about best practices of coding in another post. :zzz: Read the things before show yourself to the readers ! Regards.

                                          P 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