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. ok what are the rules

ok what are the rules

Scheduled Pinned Locked Moved The Lounge
tutorial
238 Posts 34 Posters 364 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.
  • 1 123 0

    Indeed. I think it's the term "utility function" that gives the lie to the object approach.

    S Offline
    S Offline
    Shog9 0
    wrote on last edited by
    #106

    The Grand Negus wrote:

    I think it's the term "utility function" that gives the lie to the object approach.

    At the end of the day, you still need something to get the work done. It's at the point where it stops being a useful organizing technique and starts to intrude upon my efforts to actually accomplish anything that i abandon OO.

    ---- I just want you to be happy; That's my only little wish...

    1 1 Reply Last reply
    0
    • 1 123 0

      But think a moment. English can be used to write anything from a love letter, to a post on CodeProject, to a native-code generating compiler. Why bother with anything else?

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #107

      The Grand Negus wrote:

      But think a moment. English can be used to write anything from a love letter, to a post on CodeProject, to a native-code generating compiler. Why bother with anything else?

      For the same reason mathematicians don't: for some purposes English is either too verbose, too vague (open to many interpretation), too hard to manipulate or all three. In a mathematical proof for example there’ll be both English and formal symbolic notation. It’s not a matter of one being better then the other: just that they both have their strengths and weaknesses and you have to know when to use which. It’s similar to the multi-padagram discussion we were having before; when all you've got is a hammer, everything looks like a nail.

      Steve

      1 1 Reply Last reply
      0
      • A Amar Chaudhary

        yes you are true that i didn't read or not see as many things as you did but i don't blindly believe what is been said and don't just stick to one thing i am open for changes and not rigid for what i believe i can see things from different perspective and changes my self with time

        The Grand Negus wrote:

        when General Motors was the clear winner in the evolution of the automobile industry, and the thought of a Japanese car on American highways was nothing but a joke. More to the point, however, I remember when the hierarchical/network approach to database was almost universally accepted as the best. In the "process of evolution", as you call it, this approach was not only winning, but had virtually won; it was backed by IBM and every other major player at the time and no one else stood a chance. But then along came Dr. Codd with a five-page paper describing the "spartan simplicity" of his relational approach, and things changed.

        yes that happened but you see a fact that some thing more flexible and some thing new has taken over procedural coding had its own golden but it gets a fair competitor in designing and users got a net tool to work with few user just denied to use the new tool and stick to the older one saying that it will not work ( oop is whatever you say) and some people used them both the difference can be seen it the market the simply procedural languages changes ( implement the concepts of oop ) to survive now dinosaurs do you believe few floods killed them all or it was there inability to change as you are more experienced than me have you heard of ice age humans survived from it any many more disasters by the way we were talking about oop and procedural ok this time my point is the price difference between the two (supporting languages) :)

        it is good to be important but it is more important to be good

        1 Offline
        1 Offline
        123 0
        wrote on last edited by
        #108

        Amar Chaudhary wrote:

        now dinosaurs do you believe few floods killed them all or it was there inability to change as you are more experienced than me have you heard of ice age humans survived from it any many more disasters

        There's a lot of evidence that the dinosaurs were unable to recover after a watery cataclysm. But it's hard to get good data from so far back. The problem with cataclysms is that organisms perfectly adapted to one environment are often not at all suited to another - like the environment that emerges following a cataclysm. It's like training yourself to be a chess champion and then having to deal with a bully in the park who kicks the board over. As Solomon said, "I have seen under the sun that the race is not always to the swift, nor the battle to the strong, nor bread to the wise, nor riches to men of understanding... but time and chance happens to them all".

        Amar Chaudhary wrote:

        ok this time my point is the price difference between the two (supporting languages)

        I'm not sure what you're asking here. But if you're asking if we can write a program better, faster and cheaper in Plain English than in any other language, the answer is a definite "yes".

        P 1 Reply Last reply
        0
        • S Shog9 0

          The Grand Negus wrote:

          Because, I thought, we were talking about the guy was implementing the function as well as the guy who uses it. It's easy to make a case for something if you leave out one whole side of the story.

          If we can accept that the conversion be made implicit based on context, then it doesn't matter what the guy implementing it does. He might put the conversion under a class or namespace hierarchy, standalone, or even build it into the compiler as a block of anonymous machine code spit out wherever such a conversion is required. It shouldn't make a bit of difference to the user.

          The Grand Negus wrote:

          In a true object-oriented language

          Ah, well - i've no use for a pure OO language. I'm sure such things are of academic interest, but such constraints do little for me. OO is great in certain areas, for certain tasks... but i've no interest in trying to make everything an object.

          ---- I just want you to be happy; That's my only little wish...

          1 Offline
          1 Offline
          123 0
          wrote on last edited by
          #109

          Shog9 wrote:

          but i've no interest in trying to make everything an object.

          Good. But how about making everything Plain English? It's the language millions use every day to program their dogs!

          S S 2 Replies Last reply
          0
          • S Shog9 0

            The Grand Negus wrote:

            I think it's the term "utility function" that gives the lie to the object approach.

            At the end of the day, you still need something to get the work done. It's at the point where it stops being a useful organizing technique and starts to intrude upon my efforts to actually accomplish anything that i abandon OO.

            ---- I just want you to be happy; That's my only little wish...

            1 Offline
            1 Offline
            123 0
            wrote on last edited by
            #110

            ...and thinking about the inspiring prose you used to describe your proposed wall between the VB and C# forums: Were you home schooled? Or did you just play Zork a lot?

            S 1 Reply Last reply
            0
            • 1 123 0

              Shog9 wrote:

              but i've no interest in trying to make everything an object.

              Good. But how about making everything Plain English? It's the language millions use every day to program their dogs!

              S Offline
              S Offline
              Stephen Hewitt
              wrote on last edited by
              #111

              But dogs have intelligence whereas computers don't. If you tell a computer to do something stupid it will go off and do the wrong thing at 3 GHz and possibly make a hell of a mess before you can stop it. A dog on the other hand will use his intelligence to read between the lines of your incomplete description (a dog probably wouldn’t understand a more rigid description anyway) and figure out what you actually want as opposed to what you said.

              Steve

              1 1 Reply Last reply
              0
              • 1 123 0

                Amar Chaudhary wrote:

                now dinosaurs do you believe few floods killed them all or it was there inability to change as you are more experienced than me have you heard of ice age humans survived from it any many more disasters

                There's a lot of evidence that the dinosaurs were unable to recover after a watery cataclysm. But it's hard to get good data from so far back. The problem with cataclysms is that organisms perfectly adapted to one environment are often not at all suited to another - like the environment that emerges following a cataclysm. It's like training yourself to be a chess champion and then having to deal with a bully in the park who kicks the board over. As Solomon said, "I have seen under the sun that the race is not always to the swift, nor the battle to the strong, nor bread to the wise, nor riches to men of understanding... but time and chance happens to them all".

                Amar Chaudhary wrote:

                ok this time my point is the price difference between the two (supporting languages)

                I'm not sure what you're asking here. But if you're asking if we can write a program better, faster and cheaper in Plain English than in any other language, the answer is a definite "yes".

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #112

                The Grand Negus wrote:

                we can write a program better, faster and cheaper in Plain English than in any other language, the answer is a definite "yes"

                Uh huh, sure :rolleyes:


                If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa

                1 1 Reply Last reply
                0
                • S Stephen Hewitt

                  The Grand Negus wrote:

                  But think a moment. English can be used to write anything from a love letter, to a post on CodeProject, to a native-code generating compiler. Why bother with anything else?

                  For the same reason mathematicians don't: for some purposes English is either too verbose, too vague (open to many interpretation), too hard to manipulate or all three. In a mathematical proof for example there’ll be both English and formal symbolic notation. It’s not a matter of one being better then the other: just that they both have their strengths and weaknesses and you have to know when to use which. It’s similar to the multi-padagram discussion we were having before; when all you've got is a hammer, everything looks like a nail.

                  Steve

                  1 Offline
                  1 Offline
                  123 0
                  wrote on last edited by
                  #113

                  Stephen Hewitt wrote:

                  In a mathematical proof for example there’ll be both English and formal symbolic notation. It’s not a matter of one being better then the other: just that they both have their strengths and weaknesses and you have to know when to use which.

                  Agreed. But note something important here. The framework of such a proof is almost always a natural language, like English. The formulae are written in a specialized sub-language of the natural language. In other words, English is "bigger" than mathematical notation. Not better, bigger. It's easy, for example, to think of American English including the way Americans typically write numbers or simple equations - it's hard to imagine the reverse. And that's what we're proposing regarding Plain English (and which we've spelled out in other places). Our Plain English Machine, the PAL 3000, will understand not only English, but various forms of formulae and other programming languages as well. But the machine's native tongue will be English. And we're emphasizing this part of the problem because, frankly, the other parts (how to parse equations and compile C#) have already been solved.

                  S 1 Reply Last reply
                  0
                  • S Stephen Hewitt

                    But dogs have intelligence whereas computers don't. If you tell a computer to do something stupid it will go off and do the wrong thing at 3 GHz and possibly make a hell of a mess before you can stop it. A dog on the other hand will use his intelligence to read between the lines of your incomplete description (a dog probably wouldn’t understand a more rigid description anyway) and figure out what you actually want as opposed to what you said.

                    Steve

                    1 Offline
                    1 Offline
                    123 0
                    wrote on last edited by
                    #114

                    Stephen Hewitt wrote:

                    If you tell a computer to do something stupid it will go off and do the wrong thing at 3 GHz and possibly make a hell of a mess before you can stop it. A dog on the other hand will use his intelligence to read between the lines of your incomplete description (a dog probably wouldn’t understand a more rigid description anyway) and figure out what you actually want as opposed to what you said.

                    Not always. When I was a kid, the drummer in our band liked to put a speaker at one end of a room, grab a microphone, and stand at the other end of the room: then call his dog. The poor beast would run in circles (at 3 Hz) in the middle of the room until one of the other band members would take pity and turn off the amplifier. What you say is a matter of degree, not kind. Our compiler, in many situations, can figure out what you actually want as opposed to what you said even in its current incarnation. For example, if you say "Draw a circle at the screen" instead of "on the screen", it will figure it out. If you tell it to draw a "frame", it will reduce "frame" to "rectangle" and call the appropriate routine. If you fail to specify a color, it will pick its favorite - not unlike a kid.

                    1 Reply Last reply
                    0
                    • 1 123 0

                      ...and thinking about the inspiring prose you used to describe your proposed wall between the VB and C# forums: Were you home schooled? Or did you just play Zork a lot?

                      S Offline
                      S Offline
                      Shog9 0
                      wrote on last edited by
                      #115

                      The Grand Negus wrote:

                      Were you home schooled? Or did you just play Zork a lot?

                      Can't it be both? ;) Yeah, i was homeschooled, and as a result of this spent a lot of time reading pretty much everything i could get my hands on, which gives me a fairly large amount of source material to draw on when i'm in the mood to goof off a bit. I don't consider myself a particularly good writer, of course - it takes me far, far too long to put my thoughts down, and a lot of editing before i'm ever happy with it. Still, i can put out some entertaining documentation on occasion...

                      ---- I just want you to be happy; That's my only little wish...

                      1 Reply Last reply
                      0
                      • 1 123 0

                        Stephen Hewitt wrote:

                        In a mathematical proof for example there’ll be both English and formal symbolic notation. It’s not a matter of one being better then the other: just that they both have their strengths and weaknesses and you have to know when to use which.

                        Agreed. But note something important here. The framework of such a proof is almost always a natural language, like English. The formulae are written in a specialized sub-language of the natural language. In other words, English is "bigger" than mathematical notation. Not better, bigger. It's easy, for example, to think of American English including the way Americans typically write numbers or simple equations - it's hard to imagine the reverse. And that's what we're proposing regarding Plain English (and which we've spelled out in other places). Our Plain English Machine, the PAL 3000, will understand not only English, but various forms of formulae and other programming languages as well. But the machine's native tongue will be English. And we're emphasizing this part of the problem because, frankly, the other parts (how to parse equations and compile C#) have already been solved.

                        S Offline
                        S Offline
                        Stephen Hewitt
                        wrote on last edited by
                        #116

                        The Grand Negus wrote:

                        The framework of such a proof is almost always a natural language, like English.

                        In my experience (some maths at University before I switched to computers) this isn't the case: the English spells out a vague high level description of the problem and highlights points of interest, cites references and such. The actual body of the proof is in symbolic notation. In mathematics this is almost always the case.

                        Steve

                        1 1 Reply Last reply
                        0
                        • P Paul Conrad

                          The Grand Negus wrote:

                          we can write a program better, faster and cheaper in Plain English than in any other language, the answer is a definite "yes"

                          Uh huh, sure :rolleyes:


                          If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa

                          1 Offline
                          1 Offline
                          123 0
                          wrote on last edited by
                          #117

                          PaulC1972 wrote:

                          The Grand Negus wrote: we can write a program better, faster and cheaper in Plain English than in any other language, the answer is a definite "yes" Uh huh, sure

                          Well, we should know since we've written major programs in various assembler languages, in Fortran, COBOL, Pascal, Prolog, LISP, C, C++, C#, a number of our own languages, and Plain English. And Plain English is our language of choice. Not because we invented it, but because of all the languages we've used, it works the best. Think a minute - if it didn't work the best, we wouldn't have released it, like we didn't release the other five languages we developed over the years. When those languages proved to be only marginally better (or sometimes even worse), we went back to the drawing board.

                          P 1 Reply Last reply
                          0
                          • 1 123 0

                            Shog9 wrote:

                            but i've no interest in trying to make everything an object.

                            Good. But how about making everything Plain English? It's the language millions use every day to program their dogs!

                            S Offline
                            S Offline
                            Shog9 0
                            wrote on last edited by
                            #118

                            The Grand Negus wrote:

                            But how about making everything Plain English?

                            To be honest, I wouldn't mind taking a look. But then, there are at least two other languages on my "idle time todo list" already, and they've both taking a back seat to other things lately (i'm baking bread right now; somehow, that's more satisfying today ;) ).

                            ---- I just want you to be happy; That's my only little wish...

                            1 1 Reply Last reply
                            0
                            • 1 123 0

                              PaulC1972 wrote:

                              The Grand Negus wrote: we can write a program better, faster and cheaper in Plain English than in any other language, the answer is a definite "yes" Uh huh, sure

                              Well, we should know since we've written major programs in various assembler languages, in Fortran, COBOL, Pascal, Prolog, LISP, C, C++, C#, a number of our own languages, and Plain English. And Plain English is our language of choice. Not because we invented it, but because of all the languages we've used, it works the best. Think a minute - if it didn't work the best, we wouldn't have released it, like we didn't release the other five languages we developed over the years. When those languages proved to be only marginally better (or sometimes even worse), we went back to the drawing board.

                              P Offline
                              P Offline
                              Paul Conrad
                              wrote on last edited by
                              #119

                              The Grand Negus wrote:

                              of all the languages we've used, it works the best

                              Can it solve a problem like the Traveling Salesman Problem in the worst case scenario, in linear time complexity?


                              If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa

                              1 1 Reply Last reply
                              0
                              • S Stephen Hewitt

                                The Grand Negus wrote:

                                The framework of such a proof is almost always a natural language, like English.

                                In my experience (some maths at University before I switched to computers) this isn't the case: the English spells out a vague high level description of the problem and highlights points of interest, cites references and such. The actual body of the proof is in symbolic notation. In mathematics this is almost always the case.

                                Steve

                                1 Offline
                                1 Offline
                                123 0
                                wrote on last edited by
                                #120

                                Stephen Hewitt wrote:

                                In my experience (some maths at University before I switched to computers) this isn't the case: the English spells out a vague high level description of the problem and highlights points of interest, cites references and such. The actual body of the proof is in symbolic notation. In mathematics this is almost always the case.

                                You've got to be misunderstanding what I mean by framework. Let's try a different example. In what language are all the articles on this site written? C? C++? C#? VB? No! They're all written in English with examples written in these sub-languages. Back to the other example. My calculus book is written in English. It is not a German calculus book, it is an English calculus book, though it probably contains the same or similar formulae. The "framework" is English: the title, the preface, the chapter headings, the introductions, the explanations of the formulae, the problem statements, etc.

                                S C 2 Replies Last reply
                                0
                                • S Shog9 0

                                  The Grand Negus wrote:

                                  But how about making everything Plain English?

                                  To be honest, I wouldn't mind taking a look. But then, there are at least two other languages on my "idle time todo list" already, and they've both taking a back seat to other things lately (i'm baking bread right now; somehow, that's more satisfying today ;) ).

                                  ---- I just want you to be happy; That's my only little wish...

                                  1 Offline
                                  1 Offline
                                  123 0
                                  wrote on last edited by
                                  #121

                                  Shog9 wrote:

                                  i'm baking bread right now; somehow, that's more satisfying today ).

                                  Well, at least the bread isn't baking itself! But how about that dog analogy? Why don't people use, say, C# to program their dogs? Why do they always just go for the thing they know best?

                                  S 1 Reply Last reply
                                  0
                                  • P Paul Conrad

                                    The Grand Negus wrote:

                                    of all the languages we've used, it works the best

                                    Can it solve a problem like the Traveling Salesman Problem in the worst case scenario, in linear time complexity?


                                    If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa

                                    1 Offline
                                    1 Offline
                                    123 0
                                    wrote on last edited by
                                    #122

                                    PaulC1972 wrote:

                                    Can it solve a problem like the Traveling Salesman Problem in the worst case scenario, in linear time complexity?

                                    As far as I know, that's an unsolved problem in any language. But a Plain English solution to the problem will be as good as any other - and definitely easier to read (even without comments!).

                                    P 1 Reply Last reply
                                    0
                                    • 1 123 0

                                      PaulC1972 wrote:

                                      Can it solve a problem like the Traveling Salesman Problem in the worst case scenario, in linear time complexity?

                                      As far as I know, that's an unsolved problem in any language. But a Plain English solution to the problem will be as good as any other - and definitely easier to read (even without comments!).

                                      P Offline
                                      P Offline
                                      Paul Conrad
                                      wrote on last edited by
                                      #123

                                      The Grand Negus wrote:

                                      a Plain English solution to the problem will be as good as any other - and definitely easier to read

                                      Let's see it then.


                                      If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa

                                      1 C 2 Replies Last reply
                                      0
                                      • P Paul Conrad

                                        The Grand Negus wrote:

                                        a Plain English solution to the problem will be as good as any other - and definitely easier to read

                                        Let's see it then.


                                        If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa

                                        1 Offline
                                        1 Offline
                                        123 0
                                        wrote on last edited by
                                        #124

                                        Okay. Send me a version in some other language that you think is good - and hopefully short - and we'll get you the Plain English equivalent.

                                        M E 2 Replies Last reply
                                        0
                                        • 1 123 0

                                          Shog9 wrote:

                                          i'm baking bread right now; somehow, that's more satisfying today ).

                                          Well, at least the bread isn't baking itself! But how about that dog analogy? Why don't people use, say, C# to program their dogs? Why do they always just go for the thing they know best?

                                          S Offline
                                          S Offline
                                          Shog9 0
                                          wrote on last edited by
                                          #125

                                          The Grand Negus wrote:

                                          Why don't people use, say, C# to program their dogs? Why do they always just go for the thing they know best?

                                          Most people i know don't really bother programming their dogs at all. As a result, their dogs are not particularly well-behaved. The few i know whose dogs actually listen to them appear to know quite a lot about dogs in general, and their dogs in particular, and spoken commands make up only a small portion of how they communicate (posture, eye contact, etc. make up the rest. As an aside, i've been told that my hat is offensive to dogs... hides my eyes or something).

                                          ---- I just want you to be happy; That's my only little wish...

                                          1 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