Source code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Monolux
    New Member
    • Dec 2006
    • 7

    Source code

    There's something till today that I don't understand. Source code is a denomination to a program. Or can just a simple "2+2" in a shell window, be considerd a source code?
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by Monolux
    There's something till today that I don't understand. Source code is a denomination to a program. Or can just a simple "2+2" in a shell window, be considerd a source code?
    "2+2" in a shell window is "interactiv e" files store source code. Many languages do not have interactive interpreters. This is one bonus of python.

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      The key to the phrase "source code" is the word "source."
      One source for the number 4 printing on the screen is 2+2 in an interactive shell.
      The source of a program is code, hence, you have source code.

      Comment

      • Monolux
        New Member
        • Dec 2006
        • 7

        #4
        I believe my question was miss guided. I'll simplify what I whanted to sey earlier. Explain to me what is source code?


        but txs for the replies guys

        Comment

        • bartonc
          Recognized Expert Expert
          • Sep 2006
          • 6478

          #5
          Originally posted by Monolux
          I believe my question was miss guided. I'll simplify what I whanted to sey earlier. Explain to me what is source code?


          but txs for the replies guys
          I say source code is lines in files (i.e. script1.py).
          Motoma says "anything" that the interpreter reads no matter where it comes from.

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by bartonc
            I say source code is lines in files (i.e. script1.py).
            Motoma says "anything" that the interpreter reads no matter where it comes from.
            As long as that "anything" is code that goes to "something" then yes.
            Code that is the source of something could be called source code.

            Comment

            • Monolux
              New Member
              • Dec 2006
              • 7

              #7
              txs for the tips!!

              Comment

              • Motoma
                Recognized Expert Specialist
                • Jan 2007
                • 3236

                #8
                Originally posted by Monolux
                txs for the tips!!
                No problem, and welcome to The Scripts!

                Comment

                Working...