SlideShare ist ein Scribd-Unternehmen logo
1 von 33
 What is a programming language?
 Why are there so many programming languages?
 What are the types of programming languages?
 Does the world need new languages?
 A programming language is a set of rules that
  provides a way of telling a computer what
  operations to perform.
 A programming language is a set of rules for

  communicating an algorithm
 It provides a linguistic framework for

  describing computations
PS — Introduction




        A programming language is a notational system for
        describing computation in a machine-readable and
        human-readable form.



          A programming language is a tool for developing
          executable models for a class of problem domains.
 English is a natural language. It has words,
  symbols and grammatical rules.
 A programming language also has words,

  symbols and rules of grammar.
 The grammatical rules are called syntax.
 Each programming language has a different set

  of syntax rules.
 Why does some people speak French?
 Programming languages have evolved over time as

  better ways have been developed to design them.
    ◦ First programming languages were developed in the
      1950s
    ◦ Since then thousands of languages have been developed
   Different programming languages are designed for
    different types of programs.
High-level program   class Triangle {
                     class Triangle {
                       ...
                       ...
                       float surface()
                       float surface()
                         return b*h/2;
                         return b*h/2;
                       }
                       }
Low-level program    LOAD r1,b
                     LOAD r1,b
                     LOAD r2,h
                     LOAD r2,h
                     MUL r1,r2
                     MUL r1,r2
                     DIV r1,#2
                     DIV r1,#2
                     RET
                     RET
Executable Machine code 0001001001000101
                        0001001001000101
                        0010010011101100
                        0010010011101100
                        10101101001...
                        10101101001...
 First Generation Languages
 Second Generation Languages
 Third Generation Languages
 Fourth Generation Languages
 Fifth Generation Languages
   Machine language
    ◦ Operation code – such as addition or subtraction.
    ◦ Operands – that identify the data to be processed.
    ◦ Machine language is machine dependent as it is the
      only language the computer can understand.
    ◦ Very efficient code but very difficult to write.
   Assembly languages
    ◦ Symbolic operation codes replaced binary operation
      codes.
    ◦ Assembly language programs needed to be “assembled”
      for execution by the computer. Each assembly language
      instruction is translated into one machine language
      instruction.
    ◦ Very efficient code and easier to write.
   Closer to English but included simple
    mathematical notation.
    ◦ Programs written in source code which must be
      translated into machine language programs called object
      code.
    ◦ The translation of source code to object code is
      accomplished by a machine language system program
      called a compiler.
 Alternative to compilation is interpretation which is
  accomplished by a system program called an
  interpreter.
 Common third generation languages

    ◦   FORTRAN
    ◦   COBOL
    ◦   C and C++
    ◦   Visual Basic
 A high level language (4GL) that requires fewer
  instructions to accomplish a task than a third
  generation language.
 Used with databases

    ◦   Query languages
    ◦   Report generators
    ◦   Forms designers
    ◦   Application generators
 Declarative languages
 Functional(?): Lisp, Scheme, SML

    ◦ Also called applicative
    ◦ Everything is a function
   Logic: Prolog
    ◦ Based on mathematical logic
    ◦ Rule- or Constraint-based
 Though no clear definition at present, natural
  language programs generally can be interpreted
  and executed by the computer with no other
  action by the user than stating their question.
 Limited capabilities at present.
 Imperative Programming (C)
 Object-Oriented Programming (C++)

 Logic/Declarative Programming (Prolog)

 Functional/Applicative Programming (Lisp)
   Two broad groups
    ◦ Traditional programming languages
      Sequences of instructions
      First, second and some third generation languages
    ◦ Object-oriented languages
      Objects are created rather than sequences of instructions
      Some third generation, and fourth and fifth generation
       languages
   FORTRAN
    ◦ FORmula TRANslation.
    ◦ Developed at IBM in the mid-1950s.
    ◦ Designed for scientific and mathematical applications by
      scientists and engineers.
   COBOL
    ◦   COmmon Business Oriented Language.
    ◦   Developed in 1959.
    ◦   Designed to be common to many different computers.
    ◦   Typically used for business applications.
   BASIC
    ◦ Beginner’s All-purpose Symbolic Instruction Code.
    ◦ Developed at Dartmouth College in mid 1960s.
    ◦ Developed as a simple language for students to write
      programs with which they could interact through
      terminals.
   C
    ◦ Developed by Bell Laboratories in the early 1970s.
    ◦ Provides control and efficiency of assembly language
      while having third generation language features.
    ◦ Often used for system programs.
    ◦ UNIX is written in C.
   Simula
    ◦ First object-oriented language
    ◦ Developed by Ole Johan Dahl in the 1960s.
   Smalltalk
    ◦ First purely object-oriented language.
    ◦ Developed by Xerox in mid-1970s.
    ◦ Still in use on some computers.
   C++
    ◦ It is C language with additional features.
    ◦ Widely used for developing system and application
      software.
    ◦ Graphical user interfaces can be developed easily with
      visual programming tools.
   JAVA
    ◦ An object-oriented language similar to C++ that
      eliminates lots of C++’s problematic features
    ◦ Allows a web page developer to create programs for
      applications, called applets that can be used through a
      browser.
    ◦ Objective of JAVA developers is that it be machine,
      platform and operating system independent.
   Scripting Languages
    ◦ JavaScript and VBScript
    ◦ Php and ASP
    ◦ Perl and Python
   Command Languages
    ◦ sh, csh, bash
   Text processing Languages
    ◦ LaTex, PostScript
   HTML
    ◦ HyperText Markup Language.
    ◦ Used on the Internet and the World Wide Web (WWW).
    ◦ Web page developer puts brief codes called tags in the
      page to indicate how the page should be formatted.
   XML
    ◦ Extensible Markup Language.
    ◦ A language for defining other languages.
 Programming languages are languages
 When it comes to mechanics of the task,
  learning to speak and use a programming
  language is in many ways like learning to speak
  a human language
 In both kind of languages you have to learn new
  vocabulary, syntax and semantics (new words,
  sentence structure and meaning)
 And both kind of language require considerable
  practice to make perfect.
 Computer languages lack ambiguity and
  vagueness
 In English sentences such as I saw the man with a

  telescope (Who had the telescope?) or Take a
  pinch of salt (How much is a pinch?)
 In a programming language a sentence either

  means one thing or it means nothing
   Formerly: Run-time performance
    ◦ (Computers were more expensive than programmers)
   Now: Life cycle (human) cost is more important
    ◦   Ease of designing, coding
    ◦   Debugging
    ◦   Maintenance
    ◦   Reusability
   FADS
   Writability: The quality of a language that enables a
    programmer to use it to express a computation clearly,
    correctly, concisely, and quickly.
   Readability: The quality of a language that enables a
    programmer to understand and comprehend the nature of a
    computation easily and accurately.
   Orthogonality: The quality of a language that features
    provided have as few restrictions as possible and be
    combinable in any meaningful way.
   Reliability: The quality of a language that assures a program
    will not behave in unexpected or disastrous ways during
    execution.
   Maintainability: The quality of a language that eases errors
    can be found and corrected and new features added.
   Generality: The quality of a language that avoids
    special cases in the availability or use of constructs and
    by combining closely related constructs into a single more
    general one.
   Uniformity: The quality of a language that similar
    features should look similar and behave similar.
   Extensibility: The quality of a language that provides
    some general mechanism for the user to add new
    constructs to a language.
   Standardability: The quality of a language that allows
    programs written to be transported from one computer to
    another without significant change in language structure.
   Implementability: The quality of a language that
    provides a translator or interpreter can be written. This
    can address to complexity of the language definition.

Weitere ähnliche Inhalte

Was ist angesagt?

Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...SHUBHAM PATIDAR FISHERIES ADDAA
 
Computer Languages....ppt
Computer Languages....pptComputer Languages....ppt
Computer Languages....ppthashgeneration
 
Presentation on generation of languages
Presentation on generation of languagesPresentation on generation of languages
Presentation on generation of languagesRicha Pant
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNSU-Biliran Campus
 
Programming language
Programming languageProgramming language
Programming languageRajThakuri
 
Chapter 1 introduction to computers
Chapter 1   introduction to computersChapter 1   introduction to computers
Chapter 1 introduction to computershaider ali
 
4 evolution-of-programming-languages
4 evolution-of-programming-languages4 evolution-of-programming-languages
4 evolution-of-programming-languagesRohit Shrivastava
 
Types of software
Types of softwareTypes of software
Types of softwarelatifah2001
 
High level languages representation
High level languages representationHigh level languages representation
High level languages representationgaurav jain
 
structured programming
structured programmingstructured programming
structured programmingAhmad54321
 

Was ist angesagt? (20)

System software
System softwareSystem software
System software
 
Operating system
Operating system Operating system
Operating system
 
Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 
Computer Languages....ppt
Computer Languages....pptComputer Languages....ppt
Computer Languages....ppt
 
Introduction to programming languages
Introduction to programming languagesIntroduction to programming languages
Introduction to programming languages
 
Presentation on generation of languages
Presentation on generation of languagesPresentation on generation of languages
Presentation on generation of languages
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Programming language
Programming languageProgramming language
Programming language
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Chapter 1 introduction to computers
Chapter 1   introduction to computersChapter 1   introduction to computers
Chapter 1 introduction to computers
 
4 evolution-of-programming-languages
4 evolution-of-programming-languages4 evolution-of-programming-languages
4 evolution-of-programming-languages
 
Types of software
Types of softwareTypes of software
Types of software
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Computer Software & its Types
Computer Software & its Types Computer Software & its Types
Computer Software & its Types
 
Translators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreterTranslators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreter
 
High level languages representation
High level languages representationHigh level languages representation
High level languages representation
 
structured programming
structured programmingstructured programming
structured programming
 

Andere mochten auch

FP 201 Unit 2 - Part 2
FP 201 Unit 2 - Part 2FP 201 Unit 2 - Part 2
FP 201 Unit 2 - Part 2rohassanie
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchartJordan Delacruz
 
Programming languages
Programming languagesProgramming languages
Programming languagesAsmasum
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginnersClement Levallois
 
Classification of Programming Languages
Classification of Programming LanguagesClassification of Programming Languages
Classification of Programming LanguagesProject Student
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming ConceptsJussi Pohjolainen
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1Motaz Saad
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming LanguagesTarun Sharma
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languagessebrown
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languagespy7rjs
 
Unit 3 principles of programming language
Unit 3 principles of programming languageUnit 3 principles of programming language
Unit 3 principles of programming languageVasavi College of Engg
 
Principles of programming languages. Detail notes
Principles of programming languages. Detail notesPrinciples of programming languages. Detail notes
Principles of programming languages. Detail notesVIKAS SINGH BHADOURIA
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming Languagesjocleph
 
Presentation on computer language
Presentation on computer languagePresentation on computer language
Presentation on computer languageSwarnima Tiwari
 
Powerpoint on Software Concept (ClassXI)
Powerpoint on Software Concept (ClassXI)Powerpoint on Software Concept (ClassXI)
Powerpoint on Software Concept (ClassXI)Fernando Torres
 
Class Presentation on WhatsApp
Class Presentation on WhatsAppClass Presentation on WhatsApp
Class Presentation on WhatsAppShadman Chowdhury
 
Whatsapp PPT Presentation
Whatsapp PPT PresentationWhatsapp PPT Presentation
Whatsapp PPT PresentationVOCCE ICT
 

Andere mochten auch (20)

FP 201 Unit 2 - Part 2
FP 201 Unit 2 - Part 2FP 201 Unit 2 - Part 2
FP 201 Unit 2 - Part 2
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginners
 
Computer Languages.
Computer Languages.Computer Languages.
Computer Languages.
 
Classification of Programming Languages
Classification of Programming LanguagesClassification of Programming Languages
Classification of Programming Languages
 
Intro To Programming Concepts
Intro To Programming ConceptsIntro To Programming Concepts
Intro To Programming Concepts
 
Assembly Language Lecture 1
Assembly Language Lecture 1Assembly Language Lecture 1
Assembly Language Lecture 1
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming Languages
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languages
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languages
 
Unit 3 principles of programming language
Unit 3 principles of programming languageUnit 3 principles of programming language
Unit 3 principles of programming language
 
Principles of programming languages. Detail notes
Principles of programming languages. Detail notesPrinciples of programming languages. Detail notes
Principles of programming languages. Detail notes
 
Unit 4
Unit 4Unit 4
Unit 4
 
Unit 5
Unit 5Unit 5
Unit 5
 
Generations of Programming Languages
Generations of Programming LanguagesGenerations of Programming Languages
Generations of Programming Languages
 
Presentation on computer language
Presentation on computer languagePresentation on computer language
Presentation on computer language
 
Powerpoint on Software Concept (ClassXI)
Powerpoint on Software Concept (ClassXI)Powerpoint on Software Concept (ClassXI)
Powerpoint on Software Concept (ClassXI)
 
Class Presentation on WhatsApp
Class Presentation on WhatsAppClass Presentation on WhatsApp
Class Presentation on WhatsApp
 
Whatsapp PPT Presentation
Whatsapp PPT PresentationWhatsapp PPT Presentation
Whatsapp PPT Presentation
 

Ähnlich wie Lect 1. introduction to programming languages

English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacionVillalba Griselda
 
Introduction Programming Languages
Introduction Programming LanguagesIntroduction Programming Languages
Introduction Programming LanguagesManish Kharotia
 
Introduction To Computer Programming
Introduction To Computer ProgrammingIntroduction To Computer Programming
Introduction To Computer ProgrammingHussain Buksh
 
maincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptxmaincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptxKaruthayya
 
computer languages
computer languagescomputer languages
computer languagesYasirali328
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
all languages in computer programming
all languages in computer programmingall languages in computer programming
all languages in computer programminghamza239523
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxChewe Lulembo
 
Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generationMunawar Bukhari
 
PPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptxPPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptxrockstarr066gj
 
Program & language generation
Program & language generationProgram & language generation
Program & language generationBuxoo Abdullah
 
Generation of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptxGeneration of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptxAryaDutta4
 
Computer programing 111 lecture 1
Computer programing 111 lecture 1 Computer programing 111 lecture 1
Computer programing 111 lecture 1 ITNet
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languagesNaqashAhmad14
 
Lec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there studyLec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there studysamiullahamjad06
 
EVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESEVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESNoorHameed6
 

Ähnlich wie Lect 1. introduction to programming languages (20)

English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacion
 
Introduction Programming Languages
Introduction Programming LanguagesIntroduction Programming Languages
Introduction Programming Languages
 
Introduction To Computer Programming
Introduction To Computer ProgrammingIntroduction To Computer Programming
Introduction To Computer Programming
 
maincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptxmaincse-150510153437-lva1-app6892 (1).pptx
maincse-150510153437-lva1-app6892 (1).pptx
 
computer languages
computer languagescomputer languages
computer languages
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
all languages in computer programming
all languages in computer programmingall languages in computer programming
all languages in computer programming
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
 
Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generation
 
PPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptxPPL_Unit01 for the insem study first year.pptx
PPL_Unit01 for the insem study first year.pptx
 
Program & language generation
Program & language generationProgram & language generation
Program & language generation
 
Generation of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptxGeneration of Computer language by arya dutta (1).pptx
Generation of Computer language by arya dutta (1).pptx
 
Computer programing 111 lecture 1
Computer programing 111 lecture 1 Computer programing 111 lecture 1
Computer programing 111 lecture 1
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
 
Lec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there studyLec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there study
 
EVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESEVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGES
 
C_NOTES.pdf
C_NOTES.pdfC_NOTES.pdf
C_NOTES.pdf
 

Lect 1. introduction to programming languages

  • 1.
  • 2.  What is a programming language?  Why are there so many programming languages?  What are the types of programming languages?  Does the world need new languages?
  • 3.  A programming language is a set of rules that provides a way of telling a computer what operations to perform.  A programming language is a set of rules for communicating an algorithm  It provides a linguistic framework for describing computations
  • 4. PS — Introduction A programming language is a notational system for describing computation in a machine-readable and human-readable form. A programming language is a tool for developing executable models for a class of problem domains.
  • 5.  English is a natural language. It has words, symbols and grammatical rules.  A programming language also has words, symbols and rules of grammar.  The grammatical rules are called syntax.  Each programming language has a different set of syntax rules.
  • 6.  Why does some people speak French?  Programming languages have evolved over time as better ways have been developed to design them. ◦ First programming languages were developed in the 1950s ◦ Since then thousands of languages have been developed  Different programming languages are designed for different types of programs.
  • 7. High-level program class Triangle { class Triangle { ... ... float surface() float surface() return b*h/2; return b*h/2; } } Low-level program LOAD r1,b LOAD r1,b LOAD r2,h LOAD r2,h MUL r1,r2 MUL r1,r2 DIV r1,#2 DIV r1,#2 RET RET Executable Machine code 0001001001000101 0001001001000101 0010010011101100 0010010011101100 10101101001... 10101101001...
  • 8.  First Generation Languages  Second Generation Languages  Third Generation Languages  Fourth Generation Languages  Fifth Generation Languages
  • 9. Machine language ◦ Operation code – such as addition or subtraction. ◦ Operands – that identify the data to be processed. ◦ Machine language is machine dependent as it is the only language the computer can understand. ◦ Very efficient code but very difficult to write.
  • 10. Assembly languages ◦ Symbolic operation codes replaced binary operation codes. ◦ Assembly language programs needed to be “assembled” for execution by the computer. Each assembly language instruction is translated into one machine language instruction. ◦ Very efficient code and easier to write.
  • 11. Closer to English but included simple mathematical notation. ◦ Programs written in source code which must be translated into machine language programs called object code. ◦ The translation of source code to object code is accomplished by a machine language system program called a compiler.
  • 12.  Alternative to compilation is interpretation which is accomplished by a system program called an interpreter.  Common third generation languages ◦ FORTRAN ◦ COBOL ◦ C and C++ ◦ Visual Basic
  • 13.  A high level language (4GL) that requires fewer instructions to accomplish a task than a third generation language.  Used with databases ◦ Query languages ◦ Report generators ◦ Forms designers ◦ Application generators
  • 14.  Declarative languages  Functional(?): Lisp, Scheme, SML ◦ Also called applicative ◦ Everything is a function  Logic: Prolog ◦ Based on mathematical logic ◦ Rule- or Constraint-based
  • 15.  Though no clear definition at present, natural language programs generally can be interpreted and executed by the computer with no other action by the user than stating their question.  Limited capabilities at present.
  • 16.
  • 17.  Imperative Programming (C)  Object-Oriented Programming (C++)  Logic/Declarative Programming (Prolog)  Functional/Applicative Programming (Lisp)
  • 18. Two broad groups ◦ Traditional programming languages  Sequences of instructions  First, second and some third generation languages ◦ Object-oriented languages  Objects are created rather than sequences of instructions  Some third generation, and fourth and fifth generation languages
  • 19. FORTRAN ◦ FORmula TRANslation. ◦ Developed at IBM in the mid-1950s. ◦ Designed for scientific and mathematical applications by scientists and engineers.
  • 20. COBOL ◦ COmmon Business Oriented Language. ◦ Developed in 1959. ◦ Designed to be common to many different computers. ◦ Typically used for business applications.
  • 21. BASIC ◦ Beginner’s All-purpose Symbolic Instruction Code. ◦ Developed at Dartmouth College in mid 1960s. ◦ Developed as a simple language for students to write programs with which they could interact through terminals.
  • 22. C ◦ Developed by Bell Laboratories in the early 1970s. ◦ Provides control and efficiency of assembly language while having third generation language features. ◦ Often used for system programs. ◦ UNIX is written in C.
  • 23. Simula ◦ First object-oriented language ◦ Developed by Ole Johan Dahl in the 1960s.  Smalltalk ◦ First purely object-oriented language. ◦ Developed by Xerox in mid-1970s. ◦ Still in use on some computers.
  • 24. C++ ◦ It is C language with additional features. ◦ Widely used for developing system and application software. ◦ Graphical user interfaces can be developed easily with visual programming tools.
  • 25. JAVA ◦ An object-oriented language similar to C++ that eliminates lots of C++’s problematic features ◦ Allows a web page developer to create programs for applications, called applets that can be used through a browser. ◦ Objective of JAVA developers is that it be machine, platform and operating system independent.
  • 26. Scripting Languages ◦ JavaScript and VBScript ◦ Php and ASP ◦ Perl and Python  Command Languages ◦ sh, csh, bash  Text processing Languages ◦ LaTex, PostScript
  • 27. HTML ◦ HyperText Markup Language. ◦ Used on the Internet and the World Wide Web (WWW). ◦ Web page developer puts brief codes called tags in the page to indicate how the page should be formatted.
  • 28. XML ◦ Extensible Markup Language. ◦ A language for defining other languages.
  • 29.  Programming languages are languages  When it comes to mechanics of the task, learning to speak and use a programming language is in many ways like learning to speak a human language  In both kind of languages you have to learn new vocabulary, syntax and semantics (new words, sentence structure and meaning)  And both kind of language require considerable practice to make perfect.
  • 30.  Computer languages lack ambiguity and vagueness  In English sentences such as I saw the man with a telescope (Who had the telescope?) or Take a pinch of salt (How much is a pinch?)  In a programming language a sentence either means one thing or it means nothing
  • 31. Formerly: Run-time performance ◦ (Computers were more expensive than programmers)  Now: Life cycle (human) cost is more important ◦ Ease of designing, coding ◦ Debugging ◦ Maintenance ◦ Reusability  FADS
  • 32. Writability: The quality of a language that enables a programmer to use it to express a computation clearly, correctly, concisely, and quickly.  Readability: The quality of a language that enables a programmer to understand and comprehend the nature of a computation easily and accurately.  Orthogonality: The quality of a language that features provided have as few restrictions as possible and be combinable in any meaningful way.  Reliability: The quality of a language that assures a program will not behave in unexpected or disastrous ways during execution.  Maintainability: The quality of a language that eases errors can be found and corrected and new features added.
  • 33. Generality: The quality of a language that avoids special cases in the availability or use of constructs and by combining closely related constructs into a single more general one.  Uniformity: The quality of a language that similar features should look similar and behave similar.  Extensibility: The quality of a language that provides some general mechanism for the user to add new constructs to a language.  Standardability: The quality of a language that allows programs written to be transported from one computer to another without significant change in language structure.  Implementability: The quality of a language that provides a translator or interpreter can be written. This can address to complexity of the language definition.