| | |||||
| ||||||||
| Webmaster Tutorials Instructional webmaster-related how-to's and tutorials. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: United States
Posts: 586
![]() ![]() ![]() ![]() | Basic Introduction to Programming - Vocab This is a tutorial that I wrote about a year ago. I remembered I had it, and figured it might be of some help to members here. I have generated a pdf file of this document, so you can download it, print it, etc... Hope it helps! - David ----------------- Introduction to Programming A Guide to Basic Vocab In the process of teaching myself how to program, the most annoying thing I came across (and still come across) is that in all the tutorials I could find, they all used words and vocab that I didnt understand. This tutorial provides very basic definitions to words used in other tutorials. I hope this helps someone, as I have looked far and wide for something as basic as this. In beginning your programming experience, these are some very basic things you need to know, which are terms used in about every programming language tutorial. Compiled from 3 different sources, and edited a good bit, I have tried to put together an easy way to learn programming vocabulary. To begin with, you need to know how to tell the computer to process the code as a certain language, and how to end the code. Remember that every line of code has to end with a semi-colon. To tell the computer to begin processing commands in PHP, and ending it, for example, you would do this: Code: <?PHP This is the first command; Notice how I told the computer to start and stop processing code as PHP; Notice the semi-colon at the end of every command, or code; ?> ????: NamePros.com http://www.namepros.com/webmaster-tutorials/115446-basic-introduction-to-programming-vocab.html Arguments information that gives further clarification to a command. Example: go (argument); Commands instructions that tell what to do, or how to do something. Example: Go Example: Sit Comments notes you as a programmer can place within a certain script that helps explain a certain statement, or provides other general information about a script. Example: Code: /* This is the inside of a PHP comment that is typed on two or more lines
*/ Example: if ($A=1); { More commands go inside brackets like this, only if A is equal to 1. Make sure to close the bracket that comes after a conditional statement, like this: }; Constant data that never changes in a script it has a constant value. Example: You put a constant at the beginning of your script to make a definition. Example: $A=1; Expression segment of code that results in a value. Expressions exist within statements. Example: Code: $A(1*1);
if ($A=1) { See the conditional statement example, and how I am implementing this. I expressed that $A = 1*1, before I set the if conditional statement. We all know that 1*1 is equal to 1. Therefore, the commands inside this set of brackets will be run, because I specified that $A is equal to 1.
}; Example: $A(1*1); Loops the process of continually repeating a section of code, while a certain condition is true, or for a specified number of times. Example: Code: for($A = 0 ; $A < 100; $A++)
{
echo "this message will echo 100 times, because $A starts at 0 and is less than 100";
}; ????: NamePros.com http://www.namepros.com/showthread.php?t=115446 2. It then looks at the middle statement to check if the condition is true. In other words, it looks to see if $A < 100. 3. Finally, it will move to the 3rd argument, which tells the computer to raise the value of $A by 1. 4. Therefore, the above example will be echoed 100 times. Object-Oriented Programming (OOP) A programming approach that groups together data and procedures into a single unit. PHP can be an OOP language. Statement one executable line of code. Dont forget, statements end with a semi-colon. Symbol user-defined constant. In PHP, it always begins with a dollar sign ($). Example: $A Variable holds data that can change while the program is running. Opposite of constant. - A Boolean Variable is a variable which can have only two possible values.
__________________ Smooth Stone Services Affordable Web Hosting Solutions Starting at only $4.95/month, IT Consulting and Technical Support Hunt Sources - Hunting Resources Online |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C, C++, Visual Basic, or Java? | thetzfreak | Programming | 29 | 07-22-2005 08:14 AM |
| BeliefVsReality.com + 29 others $25 | Wolfman | Domains For Sale - Fixed Price | 1 | 06-08-2005 12:20 AM |
| 35 domains for 75np each ALL MUST GO!!! | Wolfman | Domains For Sale - Make Offer | 0 | 05-20-2005 12:10 AM |
| Basic HTML Tutorial | webgear | Webmaster Tutorials | 8 | 04-02-2005 03:20 PM |