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. Physics in OOP?

Physics in OOP?

Scheduled Pinned Locked Moved The Lounge
questiongame-dev
38 Posts 25 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.
  • M Monin D

    Let's look to the world as to a big Application. I am an instance of type Man, I extend class Human, and Human somehow extends abstract class Mammal...which was well tested before on other classes like Monkey, Tiger, Lion and many others...and Mammal derives from type Object (p.s. biological model is simplified :) ) But what is then Physics and Mathematics? Is it an Operating System? But where are every day updates? Where are viruses? And what are molecules and atoms? Is it what you see in ildasm.exe?

    U Offline
    U Offline
    User 3401432
    wrote on last edited by
    #24

    Interesting... Every response here demands intelligent design... Physics and Mathematics simply become the principles of management, put into place by the Developer. An OS, uses the principles of management to accomplish tasks. In this case, to provide an environment for apps and objects to thrive. According to physicists, even the lifeless planets are mandatory for Earth to operate properly. Thus: no moon, no tides, no apps. They also say that there are parameters for stable solar systems. So: no other planets in the Sol system, no apps running on Earth, etc. A well designed OS wouldn't need updates, because updates imply that the principles of management change. This one even has garbage collection! Viruses also imply that the principles of management can be altered. This is not possible though many objects within apps might wish to. Wouldn't atoms and molecules also be objects, at a granular level, working according to the principles of management, within the environment provided by the OS? Then there's the concept of fuzzy logic... :-D

    T 1 Reply Last reply
    0
    • A Anton Afanasyev

      I would assume that would have been in the Man class...

      "impossible" is just an opinion.

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

      Actually, that should be in the SexualAnimal class, girls just have an added cloaking mechanism. The NonAsexualAnimal class would have to have something similar though, nan.Split(), nan.DevideAndConquer() etc...


      Visit BoneSoft.com for code generation tools (XML & XSD -> C#, VB, etc...) and some free developer tools as well.

      1 Reply Last reply
      0
      • P Pete OHanlon

        snorkie wrote:

        what browser version are you coding for?

        I don't want to think I'm running inside Netscape.

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

        My blog | My articles

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

        No kidding, though that would explain a few things...


        Visit BoneSoft.com for code generation tools (XML & XSD -> C#, VB, etc...) and some free developer tools as well.

        1 Reply Last reply
        0
        • K kirwani

          Surely molecules and atoms are below the OOP language level. Are they not the machine language; where molecules are complete instructions including operands. If you are seriously trying to understand such objects in terms of their class relationship to say living things then they are interacting constituents. For instance nothing is actually derived from an atom. A molecule isn't an extended class of atom, it does however contain atoms.

          Happy Hacking Ian

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

          Particles are primatives, everything above that (atoms up) are at least structs. The bigger question is what holds the universe' memory? Where can I find the heap to retro-actively remedy the big steaming pile of crap I just stepped into? And that hair cut last week? And what are life's cheat code anyway?


          Visit BoneSoft.com for code generation tools (XML & XSD -> C#, VB, etc...) and some free developer tools as well.

          1 Reply Last reply
          0
          • S Single Step Debugger

            Thats me:

            #define ETERNITY 99999999999

            static long haveSex = 0;

            class DeyanGeorgiev : public Man, public virtual Mammal
            {
            public:

            virtual void WantSex()
            {
            	While(!(true == HaveSex()))
            	{
            		Man::WantSex();
            	}
            } 
            
            private:
            
            virtual bool  HaveSex()
            {
            	Man:: HaveSex()
            	
            	return  ++haveSex > ETERNITY;
            }
            

            }

            The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

            T Offline
            T Offline
            Trevortni
            wrote on last edited by
            #28

            You both want and have infinitely recursive sex?

            L 1 Reply Last reply
            0
            • K kirwani

              Surely molecules and atoms are below the OOP language level. Are they not the machine language; where molecules are complete instructions including operands. If you are seriously trying to understand such objects in terms of their class relationship to say living things then they are interacting constituents. For instance nothing is actually derived from an atom. A molecule isn't an extended class of atom, it does however contain atoms.

              Happy Hacking Ian

              T Offline
              T Offline
              Trevortni
              wrote on last edited by
              #29

              No, atoms are in the "Has a" category, rather than the "Is a" category. Humans (like all other mammals, animals, and lifeforms, from which the Human class derives) Have cells, which is a class that Has molecules, which in turn Have atoms (which of course Have elementary particles like electrons, protons, and neutrons, some of which Have quarks and the like). Photons, gluons, and other particles that carry forces are classes that are only used as arguments to interface functions (or are they the interface functions themselves?). I don't know, I got off track somewhere and forgot what my original point was. I think one of the messages between neurons (derived from the cell class) in my brain got some data corruption or something.

              1 Reply Last reply
              0
              • U User 3401432

                Interesting... Every response here demands intelligent design... Physics and Mathematics simply become the principles of management, put into place by the Developer. An OS, uses the principles of management to accomplish tasks. In this case, to provide an environment for apps and objects to thrive. According to physicists, even the lifeless planets are mandatory for Earth to operate properly. Thus: no moon, no tides, no apps. They also say that there are parameters for stable solar systems. So: no other planets in the Sol system, no apps running on Earth, etc. A well designed OS wouldn't need updates, because updates imply that the principles of management change. This one even has garbage collection! Viruses also imply that the principles of management can be altered. This is not possible though many objects within apps might wish to. Wouldn't atoms and molecules also be objects, at a granular level, working according to the principles of management, within the environment provided by the OS? Then there's the concept of fuzzy logic... :-D

                T Offline
                T Offline
                Trevortni
                wrote on last edited by
                #30

                Member 3404088 wrote:

                Viruses also imply that the principles of management can be altered.

                Magic!

                1 Reply Last reply
                0
                • M Monin D

                  Let's look to the world as to a big Application. I am an instance of type Man, I extend class Human, and Human somehow extends abstract class Mammal...which was well tested before on other classes like Monkey, Tiger, Lion and many others...and Mammal derives from type Object (p.s. biological model is simplified :) ) But what is then Physics and Mathematics? Is it an Operating System? But where are every day updates? Where are viruses? And what are molecules and atoms? Is it what you see in ildasm.exe?

                  J Offline
                  J Offline
                  James M Hood
                  wrote on last edited by
                  #31

                  So, pretty soon the big bang theory will be proved wrong?

                  U 1 Reply Last reply
                  0
                  • M Monin D

                    Let's look to the world as to a big Application. I am an instance of type Man, I extend class Human, and Human somehow extends abstract class Mammal...which was well tested before on other classes like Monkey, Tiger, Lion and many others...and Mammal derives from type Object (p.s. biological model is simplified :) ) But what is then Physics and Mathematics? Is it an Operating System? But where are every day updates? Where are viruses? And what are molecules and atoms? Is it what you see in ildasm.exe?

                    L Offline
                    L Offline
                    LapatuaZ
                    wrote on last edited by
                    #32

                    I recently watched a television show (before I went to work) about Biological Engineering from MIT I believe, they compaired the similarities between Computer Science and Electrical Engineering to BE. The ways they are trying to break down BE into different abstraction layers was cool. Anyways, just a random thought, check it out on Wikipedia for more info...or Google it or something.

                    1 Reply Last reply
                    0
                    • J James M Hood

                      So, pretty soon the big bang theory will be proved wrong?

                      U Offline
                      U Offline
                      User 3401432
                      wrote on last edited by
                      #33

                      You're right, the bbt is just a theory. Doesn't the bbt still demand an explanation as to the source of the very first Object.Hydrogen.Proton.Muon.CharmedQuark? There must be a first one. It had to come from somewhere. Once that is explained, everything else falls into place. Then there is the concept of time... :-D

                      J 1 Reply Last reply
                      0
                      • M Monin D

                        Let's look to the world as to a big Application. I am an instance of type Man, I extend class Human, and Human somehow extends abstract class Mammal...which was well tested before on other classes like Monkey, Tiger, Lion and many others...and Mammal derives from type Object (p.s. biological model is simplified :) ) But what is then Physics and Mathematics? Is it an Operating System? But where are every day updates? Where are viruses? And what are molecules and atoms? Is it what you see in ildasm.exe?

                        V Offline
                        V Offline
                        VE2
                        wrote on last edited by
                        #34

                        It was confirmed that Physics IS OOP when the idea of entanglement was proven... :wtf:

                        73

                        1 Reply Last reply
                        0
                        • M Monin D

                          Let's look to the world as to a big Application. I am an instance of type Man, I extend class Human, and Human somehow extends abstract class Mammal...which was well tested before on other classes like Monkey, Tiger, Lion and many others...and Mammal derives from type Object (p.s. biological model is simplified :) ) But what is then Physics and Mathematics? Is it an Operating System? But where are every day updates? Where are viruses? And what are molecules and atoms? Is it what you see in ildasm.exe?

                          A Offline
                          A Offline
                          Arterion
                          wrote on last edited by
                          #35

                          I actually tell people that "Computer Science" is really "Information Science", and that everything that exists is data. What we do in ComSci really reflects a microcosm of how the universe works as a whole. It's true science -- not just how to do stuff with computers. A lot of people don't get that, but you question really gets right to the heart of it. I think the end result of CompSci will be that one day we'll have quantum "computer" devices that can manipulate reality in any way we see fit. Replicators from Star Trek and all the crazy things in the Sci-fi of today will look rudimentary. Once we figure out how to process quantum particles as data, we've become gods. Looking at how far we've come in the past century, I don't think we'll have to wait too long as a species for that to happen.

                          1 Reply Last reply
                          0
                          • M Monin D

                            Let's look to the world as to a big Application. I am an instance of type Man, I extend class Human, and Human somehow extends abstract class Mammal...which was well tested before on other classes like Monkey, Tiger, Lion and many others...and Mammal derives from type Object (p.s. biological model is simplified :) ) But what is then Physics and Mathematics? Is it an Operating System? But where are every day updates? Where are viruses? And what are molecules and atoms? Is it what you see in ildasm.exe?

                            A Offline
                            A Offline
                            Abydosgater
                            wrote on last edited by
                            #36

                            Personally, I think it would all have to depend on how much RAM you have and what your Graphic Cards Specs are.

                            1 Reply Last reply
                            0
                            • T Trevortni

                              You both want and have infinitely recursive sex?

                              L Offline
                              L Offline
                              LetMeFinclOut
                              wrote on last edited by
                              #37

                              Careful. You might get a stack overflow exception. :^)

                              1 Reply Last reply
                              0
                              • U User 3401432

                                You're right, the bbt is just a theory. Doesn't the bbt still demand an explanation as to the source of the very first Object.Hydrogen.Proton.Muon.CharmedQuark? There must be a first one. It had to come from somewhere. Once that is explained, everything else falls into place. Then there is the concept of time... :-D

                                J Offline
                                J Offline
                                James M Hood
                                wrote on last edited by
                                #38

                                How about this? Everything has always existed. Is there something about the concept of no beginning that short circuits some peoples brains or what? The main proof of the big bang theory is the red shift is greater the farther away something is which the believers say is because objects farther away are moving faster. The real reason though is probably just that the sheer distance attenuates the energy which by itself would red shift it. The objects could just as well be moving toward us as away from us. Isn't physics fun? Hood

                                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