tags:

views:

60

answers:

1

I realized, when just asking a question, I don't understand all the components that are part of the coding process.

This seems a silly question, but I can't find a definitive answer on Google, Wiki, nothing.

What exactly are all the parts called, and how do they work and intertwine? I'm talking whatever you type code into, whatever checks that for errors, compiles it, and runs it.

I'd appreciate any links, repeats, etc. I apologize for such a bland, stupid question.

EDIT: Well, I'm trying to start Perl, so anything about Perl would help. Like, how to use Notepad++ and eventually compile Perl.

+2  A: 
  1. Write code
  2. Run code in one of two ways[*]
    1. Compiled languages (C, C++, D, Java, C#)
      1. Compile the code into an executable file with the compiler tool.
      2. Run the executable
    2. Interpreted languages (Perl Python Ruby Lua Haskell Lisp & more)
      1. Run the code in an interpreter, e.g., perl foo.pl
  3. Debug code.

edit: Since the question was refined to be the Perl development cycle...

You will need an editor and a 'shell', which is used to command the system with. In particular, you want a 'command-line interface'. On Windows, you start this with running cmd.exe on the Run dialog (Windows + R is the shortcut).

You see a strange black and white box with a blinking cursor, reminding you of ancient systems redolent of gurus and wizards. You panic and refer to Google, getting a web page. Finding the command to change directory and list files is recommended...

Upon arriving at the directory where you stored your Perl file, you issue the command perl myfilename.pl, where myfile.pl is the file you saved. As is common for programming, you find some errors that appear to be incomprehensible, and you refer to Stackoverflow.com once again...

* I have elided, glossed, and moved past many of the details, as this is an introductory question. A full discussion is known as "senior-level course on compilers".

Paul Nathan
4. Go back to Step 1. :P
applechewer
I'll leave step 4 up to the reader.
Paul Nathan
Step 5: Profit!
RichieHindle
I wish I could upvote this again, because I just learned AND lawled.Thanks for the help!
Befall