You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-getting-started-lessons/1-intro-to-programming-languages/README.md
+20-20
Original file line number
Diff line number
Diff line change
@@ -21,21 +21,21 @@ In this lesson, we'll cover:
21
21
22
22
## What is Programming?
23
23
24
-
Programming (also known as coding) is the process of writing instructions to a device, such as a computer or mobile device. We write these instructions with a programming language, which is then interpreted by the device. These sets of instructions may be referred to by various names, but *program*, *computer program*, *application (app)*, and *executable* are a few popular names.
24
+
Programming (also known as coding) is the process of writing instructions for a device such as a computer or mobile device. We write these instructions with a programming language, which is then interpreted by the device. These sets of instructions may be referred to by various names, but *program*, *computer program*, *application (app)*, and *executable* are a few popular names.
25
25
26
-
A *program* can be anything that is written with code; websites, games, and phone apps are programs. While it's possible to create a program without writing code, the underlying logic is interpreted to the device and that logic was most likely written with code. A program that is *running* or *executing code* is carrying out instructions. The device that you're currently reading this lesson with is running a program to print it to your screen.
26
+
A *program* can be anything that is written with code; websites, games, and phone apps are programs. While it's possible to create a program without writing code, the underlying logic is interpreted by the device and that logic was most likely written with code. A program that is *running* or *executing* code is carrying out instructions. The device that you're reading this lesson with is running a program to print it to your screen.
27
27
28
28
✅ Do a little research: who is considered to have been the world's first computer programmer?
29
29
30
30
## Programming Languages
31
31
32
-
Programming languages serve a main purpose: for developers to build instructions to send to a device. Devices only can understand binary (1s and 0s), and for *most* developers that's not a very efficient way to communicate. Programming languages are a vehicle for communication between humans and computers.
32
+
Programming languages enable developers to write instructions for a device. Devices can only understand binary (1s and 0s), and for *most* developers that's not a very efficient way to communicate. Programming languages are the vehicle for communication between humans and computers.
33
33
34
34
Programming languages come in different formats and may serve different purposes. For example, JavaScript is primarily used for web applications, while Bash is primarily used for operating systems.
35
35
36
36
*Low level languages* typically require fewer steps than *high level languages* for a device to interpret instructions. However, what makes high level languages popular is their readability and support. JavaScript is considered a high level language.
37
37
38
-
The following code illustrates the difference between a high level language with JavaScript and low level language with ARM assembly code.
38
+
The following code illustrates the difference between a high level language with JavaScript and a low level language with ARM assembly code.
39
39
40
40
```javascript
41
41
let number =10
@@ -78,36 +78,36 @@ Believe it or not, *they're both doing the same thing*: printing a Fibonacci seq
78
78
79
79
✅ A Fibonacci sequence is [defined](https://en.wikipedia.org/wiki/Fibonacci_number) as a set of numbers such that each number is the sum of the two preceding ones, starting from 0 and 1.
80
80
81
-
## Elements of a program
81
+
## Elements of a Program
82
82
83
83
A single instruction in a program is called a *statement* and will usually have a character or line spacing that marks where the instruction ends, or *terminates*. How a program terminates varies with each language.
84
84
85
-
Most programs rely on using data from a user or elsewhere, where statements may rely on data to carry out instructions. Data can change how a program behaves, so programming languages come with a way to temporarily store data that can be used later. This data is called *variables*. Variables are statements that instruct a device to save data in its memory. Variables in programs are similar to ones in algebra, where they have a unique name and their value may change over time.
85
+
Statements within a program may rely on data provided by a user or elsewhereto carry out instructions. Data can change how a program behaves, so programming languages come with a way to temporarily store data so that it can be used later. These are called *variables*. Variables are statements that instruct a device to save data in its memory. Variables in programs are similar to variables in algebra, where they have a unique name and their value may change over time.
86
86
87
-
There's a chance that some statements will not be executed by a device. This is usually by design when written by the developer or by accident when an unexpected error occurs. This type of control of an application makes it more robust and maintainable. Typically these changes in control happen when certain decisions are met. A common statement in modern programming languages to control how a program is run is the `if..else` statement.
87
+
There's a chance that some statements will not be executed by a device. This is usually by design when written by the developer or by accident when an unexpected error occurs. This type of control over an application makes it more robust and maintainable. Typically, these changes in control happen when certain conditions are met. A common statement used in modern programming to control how a program runs is the `if..else` statement.
88
88
89
-
✅ You'll learn more about this type of statement in subsequent lessons
89
+
✅ You'll learn more about this type of statement in subsequent lessons.
90
90
91
91
## Tools of the Trade
92
92
93
93
[](https://youtube.com/watch?v=69WJeXGBdxg"Tools of the Trade")
94
94
95
95
> 🎥 Click the image above for a video about tooling
96
96
97
-
In this section, you'll learn about some software that you might find very useful as you start your professional development journey.
97
+
In this section, you'll learn about some software that you may find to be very useful as you start your professional development journey.
98
98
99
-
A **development environment** is a unique set of tools and features that a developer will use often when writing software. Some of these tools have been customized for a developer specific needs, and may change over time if a developer changes priorities in work or personal projects, or when they use a different programming language. Development environments are as unique as the developers who use them.
99
+
A **development environment** is a unique set of tools and features that a developer uses often when writing software. Some of these tools have been customized for a developer's specific needs, and may change over time if that developer changes priorities in work, personal projects, or when they use a different programming language. Development environments are as unique as the developers who use them.
100
100
101
101
### Editors
102
102
103
-
One of the most crucial tools for software development is the editor. Editors are where you write your code and sometimes where you will run your code.
103
+
One of the most crucial tools for software development is the editor. Editors are where you write your code and sometimes where you run your code.
104
104
105
105
Developers rely on editors for a few additional reasons:
106
106
107
-
-*Debugging*Discovering bugs and errors by stepping through code, line by line. Some editors have debugging capabilities, or can be customized and added for specific programming languages.
108
-
-*Syntax highlighting*Adds colors and text formatting to code, makes it easier to read. Most editors allow customized syntax highlighting.
109
-
-*Extensions and Integrations*Additions that are specialized for developers, by developers, for access to additional tools that aren't built into the base editor. For example, many developers also need a way to document their code and explain how it works and will install a spell check extension to check for typos. Most of these additions are intended for use within a specific editor, and most editors come with a way to search for available extensions.
110
-
-*Customization*Most editors are extremely customizable, and each developer will have their own unique development environment that suits their needs. Many also allow developers to create their own extensions.
107
+
-*Debugging*helps uncover bugs and errors by stepping through the code, line by line. Some editors have debugging capabilities; they can be customized and added for specific programming languages.
108
+
-*Syntax highlighting*adds colors and text formatting to code, making it easier to read. Most editors allow customized syntax highlighting.
109
+
-*Extensions and Integrations* are specialized tools for developers, by developers. These tools weren't built into the base editor. For example, many developers document their code to explain how it works. They may install a spell check extension to help find typos within the documentation. Most extensions are intended for use within a specific editor, and most editors come with a way to search for available extensions.
110
+
-*Customization*enables developers to create a unique development environment to suit their needs. Most editors are extremely customizable and may also allow developers to create custom extensions.
111
111
112
112
#### Popular Editors and Web Development Extensions
113
113
@@ -122,9 +122,9 @@ Developers rely on editors for a few additional reasons:
122
122
123
123
### Browsers
124
124
125
-
Another crucial tool is the browser. Web developers rely on the browser to observe how their code runs on the web, it's also used to view visual elements of a web page that are written in the editor, like HTML.
125
+
Another crucial tool is the browser. Web developers rely on the browser to see how their code runs on the web. It's also used to display the visual elements of a web page that are written in the editor, like HTML.
126
126
127
-
Many browsers come with *developer tools* (DevTools) that contain a set of helpful features and information to assist developers to collect and capture important insights about their application. For example: If a web page has errors, it's sometimes helpful to know when they occurred. DevTools in a browser can be configured to capture this information.
127
+
Many browsers come with *developer tools* (DevTools) that contain a set of helpful features and information to help developers collect and capture important information about their application. For example: If a web page has errors, it's sometimes helpful to know when they occurred. DevTools in a browser can be configured to capture this information.
128
128
129
129
#### Popular Browsers and DevTools
130
130
@@ -134,7 +134,7 @@ Many browsers come with *developer tools* (DevTools) that contain a set of helpf
134
134
135
135
### Command Line Tools
136
136
137
-
Some developers prefer a less graphical view for their daily tasks and rely on the command line to achieve this. Developing code requires a significant amount of typing, and some developers prefer to not disrupt their flow on the keyboard and will use keyboard shortcuts to swap between desktop windows, work on different files, and use tools. Most tasks can be completed with a mouse, but one benefit of using the command line is that a lot can be done with command line tools without the need of swapping between the mouse and keyboard. Another benefit of the command line is that they're configurable and you can save your custom configuration, change it later, and also import it to new development machines. Because development environments are so unique to each developer, some will avoid using the command line, some will rely on it entirely, and some prefer a mix of the two.
137
+
Some developers prefer a less graphical view for their daily tasks and rely on the command line to achieve this. Writing code requires a significant amount of typing and some developers prefer to not disrupt their flow on the keyboard. They will use keyboard shortcuts to swap between desktop windows, work on different files, and use tools. Most tasks can be completed with a mouse, but one benefit of using the command line is that a lot can be done with command line tools without the need of swapping between the mouse and keyboard. Another benefit of the command line is that they're configurable and you can save a custom configuration, change it later, and import it to other development machines. Because development environments are so unique to each developer, some will avoid using the command line, some will rely on it entirely, and some prefer a mix of the two.
138
138
139
139
### Popular Command Line Options
140
140
@@ -169,7 +169,7 @@ Options for the command line will differ based on the operating system you use.
169
169
170
170
### Documentation
171
171
172
-
When a developer wants to learn something new, they'll most likely turn to documentation to learn how to use it. Developers rely on documentation often to guide them through how to use tools and languages properly, and also to gain deeper knowledge of how it works.
172
+
When a developer wants to learn something new, they'll most likely turn to documentation to learn how to use it. Developers often rely on documentation to guide them through how to use tools and languages properly, and also to gain deeper knowledge of how it works.
173
173
174
174
#### Popular Documentation on Web Development
175
175
@@ -191,7 +191,7 @@ Compare some programming languages. What are some of the unique traits of JavaSc
191
191
192
192
## Review & Self Study
193
193
194
-
Study a bit on the different languages available to the programmer. Try to write a line in one language, and then redo it in two others. What do you learn?
194
+
Study a bit on the different languages available to the programmer. Try to write a line in one language, and then rewrite it in two others. What did you learn?
0 commit comments