Programming Languages Flashcards
“The only way to learn a new programming language is by writing programs in it.”
Dennis Ritchie
Why can’t computers understand Plain English?
PROGRAMMING LANGUAGES are a tool that allow the computer to do specific operation and programmers use programming languages so that they can specify exactly what they want the computer to do
Types of Programming Languages
Machine Language
Assembly Language
Structured Programming Languages
Nonprocedural languages (Declarative Languages)
Artificial Intelligence (AI) Languages
Is the binary system that computers understand natively. Instructions are encoded as binary numbers,
Machine Language
0000
Halt (Stop the program)
0001
Load (Load data from memory into a CPU register)
0010
Store (Store data from a CPU register into memory)
0011
Add (Add two numbers in registers and store the result in another register)
0100
Subtract (Subtract two numbers in registers and store the result in another register)
0101
Jump if Equal (Jump to a different part of the
program if two values in registers are equal)
Uses a basic set of symbols to represent the 0s and 1s of machine code. Programming language that is specific to a particular computer architecture or microprocessor. It consists of mnemonic codes and symbols that represent the individual machine instructions of the target CPU. used when a programmer needs precise control over the computer’s hardware, such as in embedded systems or operating system development.
Assembly language
Dual - 1001 1000
Output - load
Hex code - 5cx102
Mnemonic - mov, add, sub, pop
Assembly Language
Use a logical structure and syntax similar to human language to reduce the amount of code needed to program computer operations. Emphasizes organizing code into logical structures, making it easier to read, write, and maintain. (STEP BY STEP)
Structured programming languages
Tells the computer what to do rather than how to do it. Emphasizes expressing the desired result or goal, and the language’s interpreter or compiler figures out how to achieve that goal.
Nonprocedural languages (Declarative Languages)
Programmers describe a series of steps or procedures to achieve a desired outcome.
Procedural languages
Key Characteristics and examples of NPL
Declarative Nature
Emphasis on What, Not How
Higher-Level Abstractions
A widely used nonprocedural language for managing and querying relational databases
Structured Query Language (SQL)
Are programming languages and frameworks specifically designed for building AI and machine learning applications. These languages provide the tools, libraries, and capabilities necessary for developing intelligent systems that can analyze data, make decisions, and learn from experience.
Artificial Intelligence (AI) Languages
Artificial Intelligence & Machine Learning
Developed by Guido van Rossum in the 1990s
Popular for its Beginner-Friendliness
Python
Rich Interactive Web Development
Created by Netscape in 1995 (Mocha)
Eliminates the crudeness of static web pages and add a pinch of dynamic behavior to them. World’s top frontend programming language
JavaScript
Enterprise Application Development
Created by Sun Microsystems’ James Gosling in 1995 (Oak)
Object-oriented programming language
Garbage collection capabilities, backward compatibility, platform independence via JVM, portability, and high performance.
Java
Data Analysis
Created by Ross Ihaka and Robert Gentleman in 1993
Special focus on statistical computing and graphical modeling. Can be used for behavior analysis, data science, and machine learning projects that involve classification, clustering, and more.
R
Operating Systems and System Tools
Created by Dennis Ritchie 70s
Created by Bjarne Stroustrup 80s
Both offer full access to the underlying hardware, they have been used to create a wide variety of applications and platforms.
C by Dennis Ritchie
C++ by Bjarne Stroustrup
Server-Side Programming
A compiled programming language developed by the search giant Google. Created in 2009, (blank) is an effort by the designers at Google to eliminate all the faults in the languages used throughout the organization and by keeping all the best features intact.
Golang or Go