Jump to content

Welcome to Pure Warfare - The #1 Community for Pures

Welcome to Pure Warfare - The #1 Community for Pures, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of Pure Warfare - The #1 Community for Pures by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Programming - Where To Start


Recommended Posts

What Is 'Programming'?

 

You'll hear it everywhere. Your friends telling you that they coded some ******** hacking tool in C++ using Notepad, but what exactly is Programming? You can think of Programming as telling a computer or web browser what to do. You may not realise it, but you could even class using BB Code as 'programming'. Although you are only making text bold or a different colour, you are still telling your computer what to do with the text.

 

Many people take one look at programming and think wow, this is way too confusing, I'll never be able to understand this. If you actually sit down and look at programming in detail, you will realise how easy it is to understand. Programming isn't putting 0's and 1's in the right order after each other, programming is actually telling a computer what to do, like you are speaking to it. Let's take a look at some samples of displaying a 'Message Box' to alert the user.

 

Javascript

alert('Hey you, I can use browser scripting!');

Visual Basic

MessageBox.Show("Hey you, I can program an application!")

 

Pretty easy to understand, right? All you are doing is displaying a message box to a computer. Now that we know what programming is, I will move on to some key terms that you should go over before you begin any sort of 'Programming'.

 

 

 

 

 

Key Terms

 

You are going to be bombarded with key words that you may not understand, so I will try and explain them to you first. All of these terms apply to all programming languages. By the way, don't let my examples put you off. All of my examples may be based around a Message Box but that is because it makes it easier to understand. Programming goes much deeper than just displaying message boxes.

 

Syntax - Although all programming languages are similar, they all have a different syntax. A good example is BBCode and HTML. In BBCode, you use the "[" and "]" keys to declare code. In HTML, you use the "<" and ">" keys to declare code.

 

Variable - A variable is a way of storing a value but making it smaller. For example, you could store your name in a variable called $Name and then instead of sending a message with your name typed out, you could just send a message with $Name as the text.

 

Array - An array is like a variable, but with multiple values. Let's say you want to store the names of three people, you could store three names in a Variable called $Name as arrays. Those arrays will have numbers allocated to them in the order they were declared. For example, $Name[0] would be the first Name, $Name[1] would be the second Name etc. In most programming languages, Arrays will begin with the number 0.

 

If Statement - The 'If Statement' will allow you to make a decision. Let's say you would like to message yourself with good morning or good night. You could have an If Statement saying that If the current time is less than 12PM then send a message displaying Good Morning, and the same for Good Night.

 

Comment - Comments can be made in the middle of a huge section of code to allow the user to understand the code more. Leaving a comment could be a reminder to yourself saying like "Okay, the code below this comment will show a message box".

 

Loop - Loops can be created to execute a section of code however many times you want. Let's say you want to send a message box three times, you would just create a Loop for it to send a message three times.

 

Function - A function is similar to a variable, but a function does not store a text string. A function will be given a name just like a variable but will contain code that you would like to execute. For example, you could create a function named sendMessage() and that could contain the code to send a message box to the user.

 

Compile - To be able to use your application and share it with others, you need to compile your code. Programming Languages have different compilers and it will transform your code written in the editor into binary form.

 

 

 

 

 

Where Do I Start?

 

This is probably the most frequently asked question in Programming, where to start. Many people will tell you to start with older languages such as Python in order to understand programming, I say different. My first experience of programming was with Javascript and PHP, but I moved onto C++ and understood it perfectly. However, if you are just starting programming, you are best learning the well known programming language Visual Basic .NET. Why? There is a lot of documentation on Visual Basic .NET and it is a pretty easy language to understand. Although you may develop bad habbits and it may be hard to move onto new languages, Visual Basic .NET will keep you interested because of the Visual aspect. If you are creating a Console calculator in C++, you are likely to get bored and give up. In Visual Basic .NET, creating a GUI(Graphical User Interface) is very easy and really enjoyable.

 

 

 

If you have any questions regarding programming, just leave a reply. I will probably create some short tutorials in this section to help new programmers. Start programming today, you will never regret it.


Joined the Pure Community March 2006
ripwy.jpg
Link to comment
Share on other sites

Visual Basic is one of the easiest to learn, so I'd probably suggest learning that first (mSL is a breeze as well).

 

 

On topic, though, I'm not even going to begin criticizing that glossary you made >.<

emmawatsonjay.png

34rfuk5.png

(+`Obsession) jay is a legend

Link to comment
Share on other sites

  • 1 month later...

When I started programming, I started by signing myself up for an online course. The programming langauge I started out with was Java. I found no problems starting with that although I don't know how much the course helped me learn it.

wolfinal.gif
Link to comment
Share on other sites

lol @ u recommending VB.NET

Smite.gif

Attack Evoking (level-81) / 4 more options

Attack-icon.png60/60|Strength-icon.png99/99|Defence-icon.png1/1|Hitpoints-icon.png92/99|Ranged-icon.png99/99|Magic-icon.png95/99|Prayer-icon.png52/52

intenseredemptions.png

strengthcapet.gif [X]Fire_cape.PNG [ ] rangingcapet.gif [X] magiccapet.png [ ] Hitpoints-cape-(t)-inv.png [ ] Team_cape_26.png[X]


P.S. If you're not 52 prayer or higher, you are an 09/10 Pker.
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...