Introduction to programming - DSAasaanhai

Introduction to programming - DSAasaanhai

Introduction To Programming

  • set of instructions given to the computer to carry out certain tasks is called program.
  • Instructing the computer to carry out certain tasks is done through programming.
  • Computers only understands Binary, i.e., 0's and 1's.
  • Because it is highly challenging for humans to train computers in binary, or 0s and 1s, we have developed programming languages as a solution.

What is Programming Language

It is a computer language that programmers use to communicate to computers.


Types of Programming Languages

  • Procedural
  • Functional
  • Object-Oriented

Procedural

  • Describes a set of well-structured steps and procedures for creating programs.
  • Contains a systematic order of statements, functions, and commands to compose a program.
  • Some programming languages which follows procedural are - Java, C++, Python, etc.

Functional

  • Functional programming method focuses on results, not the process.
  • Used in a situation where we have to perform lots of different operations on the same set of data, like ML.
  • Some programming languages which follows functional are - Python.

Object-Oriented

  • It revolves around objects.
  • OBJECTS = CODE + DATA.
  • Developed to make it easier to develop, debug, reuse and maintain software.
  • Some programming languages which follows object-oriented are - Java, C++, Python, etc.

Note :- A single programming language can cover all 3 types. Example -> "Python".

JAVA follows PROCEDURAL and OBJECT ORIENTED both types.