Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming Languages

Similar presentations


Presentation on theme: "Programming Languages"— Presentation transcript:

1 Programming Languages
Computer Programming I Programming Languages

2 Types of Languages Programming languages were created to give instruction. They are classified into various categories: High Level Low Level The higher the level the more abstraction from the hardware. If a language has higher abstraction – it is further away from machine language (1’s and 0’s)

3 Low Level Low level languages have almost no abstraction from the hardware. This code is written to specific hardware, and will only operate on the hardware it was written for. It would be helpful to define abstraction for the students here.

4 More Low Level Two types: Machine Code (1GL) Assembly Language (2GL)

5 Machine Code Machine code is understood directly by the CPU. An example is below: 8B FA B C383 FA B C353BB B D FA BD98B C84AEBF1 5BC3 Obviously, it takes specialized knowledge to program in machine code. What numbering system is this?

6 Machine Code 8B FA B C383 FA B C353BB B D FA BD98B C84AEBF1 5BC3 If you said Hex, you are right! Machine code is written in hex. The groups of numbers reference memory addresses in RAM.

7 Assembly Language One level of abstraction from machine code is assembly language. The same program from the last slide is given in MASM an assembly language.

8 High Level Language In contrast a high level language provides strong abstraction from the hardware. This allows a program to be written in a language that can run on multiple types of computers (running the same operating system).

9 More High Level We will code in Visual Basic 2010
Basic is an old language that has been updated over the years and adapted by Microsoft for use for writing Microsoft Windows and Web applications.

10 Evolution of Basic Basic first appeared in 1964 and was designed by John George Kemeny and Thomas Eugene Kurtz at Dartmouth University. The current version of Visual Basic is the 9th version from Microsoft. (Visual Basic 2010) Microsoft first released VB in This moved the BASIC language to an event driven and object-oriented programming (OOP) language.

11 Other High Level Languages
C# C++ J# F# Java D E And the list goes on and on…

12 More about C# It’s language is closely related to CLI
CLI is Common Language Infrastructure CLI is the backbone of the .net framework It’s the first language developed specifically for the .net framework

13 A History Lesson When was the first computer program written and who wrote it? Ada Lovelace Byron- in

14 A History Lesson Modern programming is said to of started in the 1940s. The first “modern” language was Plankalkül which was described in 1943, but not implemented until It was designed by Konrad Zuse. Plankalkül is German for Plan Calculus

15 Languages Used Today The 1950s and 1960s languages still used today:
FORTRAN- John Backus et al. (1955) LISP- John McCarthy et al.(1958) COBOL- Grace Hopper et al. (1959) RPG- IBM (1959) BASIC (as noted previously) FORTRAN- "FORmula TRANslator“ LISP- the "LISt Processor“ and COBOL- COmmon Business Oriented Language

16 Late 1960s and 1970s Most of the languages used today were invented or are derived from one of the languages invented in this time period: 1969- B (forerunner to C) 1970- Pascal (Java borrows from Pascal) 1972- C (C++, Java, C#, and many others are based on C) 1973- ML (F# is based on ML, C++ borrows from ML too) 1978- SQL (databases)

17 The Internet Age 1990s During the early/mid 1990s many Internet languages were developed: 1991-Python 1995- Java 1995- Javascript (not related to Java) 1995- PHP 1995- Delphi (Object Pascal)

18 So what has changed? How have all the languages on the past few slides evolved? The biggest change is more abstraction as described previously. For example a program written in Java on a Windows system can run on a Mac, Windows, Linux, etc. as long a the proper software (a Java complier) is installed. Early programs were bound to specific hardware- current programs are not.

19 OOP (Object Oriented Programming)
The next major evolution is the move to object oriented programming or OOP. OOP as defined by Wikipedia: “Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their interactions – to design applications and computer programs.” OOP is not the end all be all in fact many people particularly in academia widely criticize it.


Download ppt "Programming Languages"

Similar presentations


Ads by Google