2. What is a programming language?
A programming language is
an artificial language which
is used to design desirable
software in an easy way.
An example JavaScript code
3. What all are their uses?
A programming language
enables us to create
softwares- from apps such
as MS Office and Notepad,
to operating systems like
Windows, Linux, et cetera.
Even the apps used for
money transactions are
written in a programming
language.
Few applications usually found on a Mac PC.
Gentoo, A Linux based operating system.
4. What role do they perform in AI?
Artificial Intelligence, or AI, is very
common these days. From searching
about stuff on Google, to playing chess
with the computer; AI is included
everywhere. But, to implement all this,
programming languages are used.
All AI is built over programming
languages.
JavaScript and Python are the most
commonly used programming languages
for AI. A sample JavaScript ‘AI’ code.
5. How do they work?
Programming languages let us
create programs easily. But at
the lower level, they use a
language which could be
interpreted by a computer. This
is known as Binary Language,
which is machine dependent. In
a binary language, everything
including words, emojis,
pictures, etc. are represented
with digits 1 and 0 only.
.Design of a usual Programming Language.
7. Compiled Programming Language
A compiled language uses compiler, which is a program
that directly converts the program source code to machine
code. It generates and saves a program as machine code
which can later on be executed directly by the computer.
Design of a typical Compiled Programming Language.
8. Interpreted Programming Language
An interpreted language uses
interpreter, which is a program that
acts as a host to run the
programming language on. No new
program is created; rather the
interpreter reads source code and
performs instructions as given by
source code. In simpler terms, the
source code itself is not translated
to machine code, instead the code
is directly executed by interpreter.
Design of a typical Interpreted Programming Language.
9. Compiled vs. Interpreted Language
Compiled Language Interpreted Language
Slower to compile but faster
to run at runtime.
More efficient to execute.
Code is platform dependent.
For example:- C, C++, Java,
Ada, ALGOL, COBOL, etc.
Faster to interpret but slower
to run at runtime.
Comparatively less efficient.
Code is cross-platform.
For example:- JavaScript,
Python, PHP, Ruby, etc.
11. Front-end Languages
They are the programming languages used specifically for
creating GUI, or the interface through which a user can
interact with the program. Few examples of such
languages are-
HTML
CSS
JavaScript
React
Swift Example GUI application.
12. Back-end Languages
They are the programming languages usually used for
dealing with the storage and manipulation of data for a
program. Few examples of such languages are-
JavaScript
PHP
Java
Python
Ruby
C# Example of back-end data handling.
13. Final Notes
Programming Languages are the only means through which
we can develop applications and instruct our computers to
perform some actions. Without them, we cannot expect the
life which we are leading now- a life of digitalisation. The
underlying code of a program can only make it usable. Had
not been the programming languages developed, it would
have been impossible for a lot of development to take place.
Therefore, programming languages stand out as a very
important part of our digital life.