High Level Vs Low Level
Programming languages can be broadly categorized into two types-
- High Level
- Low Level
- And, Languages that are more closer to the machine language (reads like machine code) are known as the ‘Low-level’ languages. For example- Assembly.
Scripting Vs Programming Languages
Machines only understand the language of 0’s and 1’s (binary). In order for the machine to execute our code, Systems first convert the source code (code we write) into machine code (code that computers understand)with the help of a software known as a Compiler or an Interpreter.
Both Compiler and Interpreter performs the same job of converting source code into machine code but in a slightly different manner.
- The compiler first scans the whole document and then starts executing our code. So it determines and reports all the errors of the program collectively at once. On the other hand,
- The interpreter translates one line at a time and then executes it. So as soon as it encounters the first error it reports it. As you fix that error, if there is another error ahead it reports it and so on.
So the languages that use an interpreter are known as ‘Scripting languages’ and languages that use a compiler are known as the ‘Programming languages’.
Paradigms refer to the different ways in which we can organize and structure our code. For example- Object-Oriented paradigm, Functional Programming paradigm, etc.
Languages that make use of one paradigm is called ‘single-paradigm’. Example- Haskell(functional programming), Smalltalk(Object-Oriented), etc. And
How does the Internet works?
In order to understand how the internet and websites work we first need to understand two important terms i.e. client and server.
Both client and server are simply systems(computers) with different responsibilities and functions.
A ‘client’ is simply the computer (can be any device like desktop, mobile phones, tablets, laptops, etc)from where a user interacts and requests for some data. That request is sent to the ‘server’ over the internet with the help of a browser(Google Chrome, Safari, Mozilla Firefox, Internet Explorer, etc). So the ‘client’ simply refers to the ‘browser’.
A ‘server’ is simply a computer that is remotely situated somewhere in the world. It has all the resources .html, .css, .js and images files, etc that make up a website, available with it. It simply analyzes and processes requests and then returns back response accordingly.
In simple terms when a ‘client’ (browser) requests for a webpage For example ‘www.youtube.com’ that request is sent to the ‘server’ over the internet. The server then processes that request and sends the response (the .html, .css, .js, images files, etc) back to the ‘client’. The ‘client’(browser) then interprets or compiles those files and we are able to view the website.
And the languages that work on the server, on the back-end are called server-side languages. For example — PHP, Ruby, Python, etc.