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: README.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,28 @@
2
2
3
3
One of the first things I like to do after gaining some familiarity with a language is a couple of katas, maybe Blackjack, an API of some sort. All test driven of course. Thats what we'll do here.
4
4
5
-
What I find sorely missing in education is hierarchy of importances. Most resources give you every single bit of data related to a subject with equal stress. For example, with a written language a hierarchy of inportances would be:
5
+
What I find sorely missing in education is hierarchy of knowledge. Most resources give you every single bit of data related to a subject with equal stress. For example, with a written language a hierarchy of knowledge would be:
6
6
7
7
- alphabet
8
8
- words
9
9
- grammar
10
10
- structure
11
11
12
-
So, for a new language I first learn the alphabet (operators), words (reserved words), grammar (syntax), structure (files, modules, tests).
12
+
So, for a new language I first learn the alphabet (operators), words (reserved words), grammar (syntax), structure (files, modules, tests). The things usually used 80% of the time should be **emphasized** whereas edge cases would probably be an aside or in an appendix.
13
13
14
14
## Definitions
15
15
16
16
Rust is a [system language](https://en.wikipedia.org/wiki/System_programming_language), meaning it can be used for low level stuff such as Operating Systems, hardware and the like. That doesn't mean it is limited to those however.
17
17
18
-
Why Rust? Type safety, concurrency, blazingly fast. Rust has a steep learning curve however.
18
+
Why Rust? What makes Rust great?:
19
+
20
+
- high level language with low level capabilities
21
+
- strongly typed
22
+
- no garbage collector, instead tracking it itself
23
+
- concurrency built in
24
+
- blazingly fast (because of the above)
25
+
26
+
Rust has a steep learning curve however.
19
27
20
28
## Style
21
29
@@ -24,7 +32,7 @@ Rust has an opinionated coding style:
24
32
- indentations are 4 spaces
25
33
- variable names are snake case
26
34
27
-
But, before fundamentals, lets talk about the build runner, documentation generator, test runner and package manager - Cargo.
35
+
But, before the Rust fundamentals, lets talk about the build runner, documentation generator, test runner and package manager - Cargo.
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
63
+
### See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
56
64
57
65
[dependencies]
58
66
```
@@ -65,7 +73,7 @@ fn main() {
65
73
}
66
74
```
67
75
68
-
First things first, the Cargo.toml file. This is the configuration file for your software. This has all the information about your project, the name, authors, version (semver), project name (used when imporiting files) etc. It is also where you add your dependencies.
76
+
First things first, the Cargo.toml file. This is the configuration file for your software. This has all the information about your project, the name, authors, version (semver), project name (used when importing files) etc. It is also where other package dependencies are imported.
69
77
70
78
The rust file that is generated is a 'hello world' by default.
0 commit comments