What is a program?
-
Is a piece of text typed by a programmer.
-
It is the directing force that makes the computer do what it does.
-
It is data in the computer’s memory, yet it controls the actions performed on this same memory.
-
It’s like a digital machine — lots of separate parts tend to be involved, and to make the whole thing tick, we have to consider the ways in which these parts interconnect & contribute to the operation of the whole.
-
A program can ingeniously combine an enormous number of these simple actions a computer produce to do very complicated things.
-
A program is a building of thought, costless to build, it’s weightless, and it grows easily under our typing hands.
-
Without care, a program’s size & complexity will grow out of control, confusing even the person who created it.
What can you say about complexity in programming?
-
If not taken care of, a program’s size and complexity grow out of control.
-
Keeping programs under control is the main problem of programming.
-
The art of programming is the skill of controlling complexity.
-
Some programmers believe that this complexity is best manage by using only a small set of well-understood techniques in their programs (“best practices”), this being boring and ineffective.
-
There are many terrible mistakes to make in a program design, and you should go ahead and make them so that you understand them.
-
New problems often require new solutions.
-
A sense of what a good program looks like is developed in practice, not learned from a list of rules.
What function do programming languages have?
-
Each line of the previous program contains a single instruction.
-
Can give memory locations their starting values.
-
Can make decisions based on logic.
-
Can execute blocks as long as the condition it was given holds.
-
The part of the power of programming languages is that they can take care of uninteresting details for us.
-
Can create a collection of numbers within a range and computer the sum of a collection of numbers.
-
Helps the programmer by allowing them to talk about the actions that the computer has to perform on a higher level.
-
It helps omit details, provides convenient building blocks, allow you to define your own building blocks and make those blocks easy to compose.
What is the relationship between Java and Javascript?
-
JavaScript has nothing to do with the programming language Java.
-
The name was chosen due to marketing purposes.
-
At the time Java was gaining a lot of popularity and heavily marketed.
What is ECMAScript and how is it related to Javascript?
-
ECMAScript and JavaScript can be used interchangeably, two names for the same thing.
-
A standard document was written to describe the way the Javascript language should work so that the various pieces of software that claimed to support JavaScript were actually talking about the same language.
-
It’s called ECMAScript standard, after the terms ECMA International Organization that did the standardizations.
-
There has been several versions of ECMAScript, version 3 was the widely supported version in the time of JavaScript’s ascent to dominance between 2000-2010.