Skip to content

Commit 10ab31c

Browse files
committed
task structure for 1.05-07
1 parent d16f9ce commit 10ab31c

16 files changed

+117
-3
lines changed

coderoad.json

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,93 @@
5050
},
5151
{
5252
"title": "find",
53-
"description": "Array -> find an item that matches a condition"
53+
"description": "Array -> find an item that matches a condition",
54+
"tasks": [
55+
{
56+
"description": "`find` the name that isn't in the list of known students",
57+
"tests": [
58+
"1/05/01-find"
59+
]
60+
},
61+
{
62+
"description": "`filter` down to students without known names",
63+
"tests": [
64+
"1/05/02-find"
65+
]
66+
},
67+
{
68+
"description": "`map` over the result to get only the `name` property",
69+
"tests": [
70+
"1/05/03-find"
71+
]
72+
},
73+
{
74+
"description": "`join('')` the array of names to output result",
75+
"tests": [
76+
"1/05/04-find"
77+
]
78+
}
79+
]
5480
},
5581
{
5682
"title": "concat",
57-
"description": "Array + Array -> Array"
83+
"description": "Array + Array -> Array",
84+
"tasks": [
85+
{
86+
"description": "`filter` down \"Hack Kerr\"'s data",
87+
"tests": [
88+
"1/06/01-concat"
89+
]
90+
},
91+
{
92+
"description": "`concat` two more suspects to the suspect list, \"Kevin Mitnick\" & \"Albert Gonzalez\"",
93+
"tests": [
94+
"1/06/02-concat"
95+
]
96+
},
97+
{
98+
"description": "create a `concatAll` array method",
99+
"tests": [
100+
"1/06/03-concat"
101+
]
102+
},
103+
{
104+
"description": "Use `concatAll` to put all data into a single array",
105+
"tests": [
106+
"1/06/04-concat"
107+
]
108+
}
109+
]
58110
},
59111
{
60112
"title": "reduce",
61-
"description": "Array -> transform into anything"
113+
"description": "Array -> transform into anything",
114+
"tasks": [
115+
{
116+
"description": "Use `reduce` to calculate the class average",
117+
"tests": [
118+
"1/07/01-reduce"
119+
]
120+
},
121+
{
122+
"description": "`reduce` to suspect scores",
123+
"tests": [
124+
"1/07/02-reduce"
125+
]
126+
},
127+
{
128+
"description": "`map` over suspect data to find the score differences",
129+
"tests": [
130+
"1/07/03-reduce"
131+
]
132+
},
133+
{
134+
"description": "`reduce` down to likely suspect names",
135+
"tests": [
136+
"1/07/04-reduce"
137+
]
138+
}
139+
]
62140
},
63141
{
64142
"title": "Challenge 1",

tutorial/1/05/01-find.spec.js

Whitespace-only changes.

tutorial/1/05/02-find.spec.js

Whitespace-only changes.

tutorial/1/05/03-find.spec.js

Whitespace-only changes.

tutorial/1/05/04-find.spec.js

Whitespace-only changes.

tutorial/1/05/find.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
### find
22
Array -> find an item that matches a condition
3+
4+
+ `find` the name that isn't in the list of known students
5+
@test('1/05/01-find')
6+
7+
+ `filter` down to students without known names
8+
@test('1/05/02-find')
9+
10+
+ `map` over the result to get only the `name` property
11+
@test('1/05/03-find')
12+
13+
+ `join('')` the array of names to output result
14+
@test('1/05/04-find')

tutorial/1/06/01-concat.spec.js

Whitespace-only changes.

tutorial/1/06/02-concat.spec.js

Whitespace-only changes.

tutorial/1/06/03-concat.spec.js

Whitespace-only changes.

tutorial/1/06/04-concat.spec.js

Whitespace-only changes.

tutorial/1/06/concat.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
### concat
22
Array + Array -> Array
3+
4+
+ `filter` down "Hack Kerr"'s data
5+
@test('1/06/01-concat')
6+
7+
+ `concat` two more suspects to the suspect list, "Kevin Mitnick" & "Albert Gonzalez"
8+
@test('1/06/02-concat')
9+
10+
+ create a `concatAll` array method
11+
@test('1/06/03-concat')
12+
13+
+ Use `concatAll` to put all data into a single array
14+
@test('1/06/04-concat')

tutorial/1/07/01-reduce.spec.js

Whitespace-only changes.

tutorial/1/07/02-reduce.spec.js

Whitespace-only changes.

tutorial/1/07/03-reduce.spec.js

Whitespace-only changes.

tutorial/1/07/04-reduce.spec.js

Whitespace-only changes.

tutorial/1/07/reduce.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
### reduce
22
Array -> transform into anything
3+
4+
+ Use `reduce` to calculate the class average
5+
@test('1/07/01-reduce')
6+
7+
+ `reduce` to suspect scores
8+
@test('1/07/02-reduce')
9+
10+
+ `map` over suspect data to find the score differences
11+
@test('1/07/03-reduce')
12+
13+
+ `reduce` down to likely suspect names
14+
@test('1/07/04-reduce')

0 commit comments

Comments
 (0)