W4 - HISTORY AND TYPES OF COMPUTERS AND PROGRAMMING Flashcards
W4-1: EARLY PROGRAMMING LANGUAGES
focused on LANGUAGE STRUCTURE and invented many of the key elements we see today including variables, sorting, constants, procedures, functions, comments
W4-2: (a) PLATFORM
(b) LOW-LEVEL
(c) HIGH-LEVEL
(a) PLATFORM = OS + hardware
(b) LOW-LEVEL: run on the HARDWARE, the “bare metal”
_ OS and DEVICE DRIVERS programmed for the specific hardware
=> EX: Assembler, C, C++ run on x86 architecture
(c) HIGH-LEVEL: use the services of LOW-LEVEL CODE allowing programming to be independent of underlying hardware
_ EX: USER-FACING applications which run on the OS
1/ C++ for high performance GAMES
2/ Python for general purpose
W4-3: How many types of PROGRAMMING LANGUAGES?
=> 3
(a) COMPILED Languages
(b) HYBRID Languages
(c) INTERPRETED/Scripting Languages
1/ COMMAND Language Interpreter (CLI)
2/ DATA-ORIENTED Languages (like SQL)
3/ EMBEDDABLE Languages
W4-4: COMPILED Languages
TRANSLATORS generate MACHINE code from SOURCE code before a program can be run
EX: C, C++, and Objective-C are compiled.
_ Fast but less flexible than INTERPRETED languages.
_ Variables statically typed: data types declared by programmer
W4-5: HYBRID Languages
first compiled into platform-NEUTRAL BYTECODE and then interpreted by a VIRTUAL machine on LOCAL platform
EX: Java, C#, and Python
W4-6: INTERPRETED/Scripting Languages
LINE-BY-LINE executors of source code _ NOT compiled _ Little pre-runtime translation _ Slower but flexible and reactive. _ Variables dynamically typed at run time
W4-7: COMMAND Language Interpreter (CLI) (or a SHELL that runs SCRIPTS)
EX: MS-PowerShell and *nix Bash
W4-8: DATA-ORIENTED Languages (like SQL)
designed for management of data in RELATIONAL databases
_ SQL with its stored procedures is NOT a general purpose programming language;
_ SQL is RDBMS specific
W4-9: EMBEDDABLE Languages
are designed to be EMBEDDED within other TEXT or CONTENT, such as a WEB PAGE
_ Web SERVERS process SCRIPT commands (PHP) embedded in a dynamic HTML file before generated HTML is sent to CLIENT (browser).
_ On the browser, JavaScript runs from INSIDE the HTML.
W4-10: “Languages” which are NOT programming languages
(a) HTML: HyperText Markup Language for the Web
(b) CSS: Cascading Style Sheets
(c) XML: eXtensible Markup Language
W4-11: HTML: HyperText Markup Language for the Web
<p>Paragraph<b>text</b></p>
browser formats/renders
W4-12: CSS: Cascading Style Sheets
separate PRESENTATION style and APPEARANCE from CONTENT
font, size, colours for a DOM object e.g. a paragraph
W4-13: XML: eXtensible Markup Language
DOCUMENT and DATA encoding markup language
EX: for DATA structures used in WEB services
W4-14: ComputerHARDWARE
is what you can physically TOUCH
_ Hardware DEVICES are PHYSICAL parts of a computer system
W4-15: HARDWARE devices: PERIPHERAL devices
_ Some hardware devices are residing INSIDE the computer CASE like Motherboard and NIC
_ But some, are called PERIPHERAL Devices which connect to acomputersystem and add some functionality to it (like Mouse and Keyboard.)