Event driven
Event driven programming means an event needs to happen before the code will run. It could be classed as a domino effect as in the first domino has to fall before the domino in front will fall.
Button
Some of these events can be found on other objects but some events may only be for one object.
Double click- When an object is clicked twice with the mouse wheel that is the event which will run the code that is set to the event.
Enter- If the enter button on the keyboard is pressed it will run the code set to the event.
DragDrop- when an item is dragged and dropped in to the object it will run the code.
Click- Click means when you click the button it will run the code behind the button like an exit button when clicked the code “exit()” will run
Textbox
Textbox are used for the user to type in to on the application.
MouseHover- Mousehover means when the user hovers the mouse over the textbox which will cause it to run the code behind it for example if the maker of the game wants when the textbox is hovered over it will change colour of the textbox.
Text change- Text change means when the user enters text into the textbox it will run the code for example if the maker of the game wants it to check if the answer is correct he would use this event to check if its the right answer.
Label
Labels are used as titles,headings and a lot more.
Enter- Enter means when you press the enter key on the keyboard it will activate the code behind it.
Mousewheel- Mousewheel means when the user moves the mouse wheel up or down it will activate the code.
Object Oriented
Object oriented is programming code which holds data fields for example the code could hold the age, gender and qualifications of a student in a college which then the code has data behind it. It builds a table of the data fields like this…
Age
Gender
qualifications
17
m
A,B
16
f
C,F
17
f
D,B
All this data would be held in the code each data field that is there. The information which the code holds can be used in different functions for example if the maker of the application wanted a random age, gender and qualification to show they would have all that information randomly picked with another piece of code. Object oriented lets programmers create modules that can be inherited from other objects and it does not need to be changed to work on the new object. A programmer can make a new object and use most of the features from other objects.
Procedural
Procedural programming is a set of code and it goes in order one line after another going down till it finishes like html code will be procedural programming because it will run each line of code after one another. You can have multiple blocks of code that run one after the other. It is like step by step instructions for a computer to carry out and can also have loops and branch off to other code.
Programming languages
There are over 100’s and 100’s of programming languages because there are so many different platforms and different applications so this means we can’t have just one programming language. Some of the programming languages are rarely used at all but these are the top 5 mostly used programming languages are…
C
Java
Objective-C
C++
C#
C Is used the most out of all the Programming languages most programming languages borrow off this programming languages in someway. C is the programming language that Unix operating system is mostly written in. The programming language C has been used in just about every category of software imaginable.
Java was release in 1995 by sun microsystem which changed the world of programming. Oracle then bought out sun microsystems. james gosling who designed java wanted a programming language where he could write his program once and run it anywhere on any hardware platform. He was able to do this by having java run on a virtual machine.
Objective-C and is mainly used for the iphone. It is the primary language for the apple iOS operating system which is on iPads, iPhones and some iPods. Although just recently rising in popularity due to the devices and Apple’s backing most people do not realize the language has been around since 1983.
C++ was created by bjarne stroustrup in 1979. it was made to be a superset of the C programming language, adding specific features that C lacked including object-oriented support and easier memory management. It is typically the language of choice of high performance applications including entertainment software, video games, device drivers, embedded software and scientific computing.
C# was released in 2000 and has quickly become one of the most popular programming languages in the world. it is often compared with java and is considered one of the best viable alternatives to java. it is a very popular language for designing large distributer services. It is also good for applications meant to run in embedded devices.
No comments:
Post a Comment