Syllabus →

Why Languages →


- Machines only understands 0s and 1s
- Languages are written to convert our code into 0s and 1s
- Every app that we install, resides in the SSD memory statically
- Whenever the app is run, it’s byte code (compiled code) is sent into the RAM to run it
- Every language is optimized for different use cases
Interpreted vs Compiled Languages →
<aside>
💡 Compiler of C++ is called g++
</aside>
Interpreted →

- 2 steps →
- The code is basically running line - by - line
- This means that if there are 10 lines, each line will run one after the other, so if there’s an error in the 7th line, the first 6 will run, and only the 7th one will throw the error.
Compiled →

- 3 steps →
- Write it
- Compile it (converts the source code into binary)
- Run it
- If there are 10 lines of code in C++, all the 10 lines will first be converted into binary (altogether), and then it would be run
- This means that if there’s an error somewhere, it won’t compile and hence won’t run.

Why JS >> Other languages in some use-cases →
Technically, it isn’t.
It’s just popular because of it’s widespread use in the browsers.
Strict vs Dynamic Languages →

My opinion → C++ is better here because it makes sure we don’t make logical mistakes because of errors like that.