Skip to content

Commit 4b12550

Browse files
authored
Merge pull request #1592 from microsoft/softchris-pedagogy
fixing broken diagrams
2 parents 424cc33 + d6f244f commit 4b12550

File tree

7 files changed

+35
-55
lines changed

7 files changed

+35
-55
lines changed

2-js-basics/1-data-types/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ flowchart TD
338338
A --> D["Template Literals"]
339339
340340
B --> B1["'Hello World'"]
341-
C --> C1['"Hello World"']
341+
C --> C1["\"Hello World\""]
342342
D --> D1["`Hello \${name}`"]
343343
344344
E["String Operations"] --> F["Concatenation"]
@@ -509,7 +509,7 @@ graph TD
509509
C --> C1["42, 3.14, -5"]
510510
C --> C2["+ - * / %"]
511511
512-
D --> D1["'quotes' or \"quotes\""]
512+
D --> D1["'quotes' or \\\"quotes\\\""]
513513
D --> D2["`template literals`"]
514514
515515
E --> E1["true or false"]

2-js-basics/2-functions-methods/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ mindmap
4040
root((JavaScript Functions))
4141
Basic Concepts
4242
Declaration
43-
function name() {}
44-
const name = () => {}
43+
Traditional syntax
44+
Arrow function syntax
4545
Calling
46-
functionName()
46+
Using parentheses
4747
Parentheses required
4848
Parameters
4949
Input Values
50-
function(param1, param2)
50+
Multiple parameters
5151
Default values
5252
Arguments
5353
Values passed in

2-js-basics/4-arrays-loops/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ mindmap
4242
root((Data Processing))
4343
Arrays
4444
Structure
45-
[ ] square brackets
45+
Square brackets syntax
4646
Zero-based indexing
4747
Dynamic sizing
4848
Operations
4949
push/pop
5050
shift/unshift
5151
indexOf/includes
5252
Types
53-
Numbers [1,2,3]
54-
Strings ["a","b"]
55-
Mixed [1,"a",true]
53+
Numbers array
54+
Strings array
55+
Mixed types
5656
Loops
5757
For Loops
5858
Counting iterations

3-terrarium/1-intro-to-html/README.md

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -400,29 +400,22 @@ Insert this markup above the last `</div>` tag (before the closing tag of the pa
400400
> 🤔 **Notice Something?**: Even though you added this markup, you don't see anything new on the page! This perfectly illustrates how HTML provides structure while CSS provides appearance. These `<div>` elements exist but have no visual styling yet – that's coming in the next lesson!
401401
402402
```mermaid
403-
gitgraph
404-
commit id: "HTML Document"
405-
branch head
406-
checkout head
407-
commit id: "<title>"
408-
commit id: "<meta charset>"
409-
commit id: "<meta viewport>"
410-
checkout main
411-
branch body
412-
checkout body
413-
commit id: "<h1>My Terrarium</h1>"
414-
branch containers
415-
checkout containers
416-
commit id: "<div id='page'>"
417-
commit id: "Left Container (7 plants)"
418-
commit id: "Right Container (7 plants)"
419-
commit id: "Terrarium Structure"
420-
checkout body
421-
merge containers
422-
checkout main
423-
merge head
424-
merge body
425-
commit id: "Complete HTML Page"
403+
flowchart TD
404+
A[HTML Document] --> B[Document Head]
405+
A --> C[Document Body]
406+
B --> D[Title Element]
407+
B --> E[Meta Charset]
408+
B --> F[Meta Viewport]
409+
C --> G[Main Heading]
410+
C --> H[Page Container]
411+
H --> I[Left Container with 7 plants]
412+
H --> J[Right Container with 7 plants]
413+
H --> K[Terrarium Structure]
414+
415+
style A fill:#e1f5fe
416+
style B fill:#fff3e0
417+
style C fill:#e8f5e8
418+
style H fill:#f3e5f5
426419
```
427420

428421
### 🔄 **Pedagogical Check-in**

5-browser-extension/1-about-browsers/README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -271,29 +271,17 @@ Before beginning development, let's gather the required resources and dependenci
271271

272272
Understanding the project structure helps organize development work efficiently. Like how the Library of Alexandria was organized for easy knowledge retrieval, a well-structured codebase makes development more efficient:
273273

274-
```mermaid
275-
fileStructure
276-
project-root
277-
dist
278-
manifest.json
279-
index.html
280-
background.js
281-
main.js
282-
src
283-
index.js
284-
package.json
285-
webpack.config.js
286-
```
287-
288274
```
289275
project-root/
290276
├── dist/ # Built extension files
291277
│ ├── manifest.json # Extension configuration
292278
│ ├── index.html # User interface markup
293279
│ ├── background.js # Background script functionality
294280
│ └── main.js # Compiled JavaScript bundle
295-
└── src/ # Source development files
296-
└── index.js # Your main JavaScript code
281+
├── src/ # Source development files
282+
│ └── index.js # Your main JavaScript code
283+
├── package.json # Project dependencies and scripts
284+
└── webpack.config.js # Build configuration
297285
```
298286

299287
**Breaking down what each file accomplishes:**

6-space-game/2-drawing-to-canvas/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ The canvas uses Cartesian coordinates with an x-axis (horizontal) and y-axis (ve
8585
```mermaid
8686
quadrantChart
8787
title Canvas Coordinate System
88-
x-axis Left --> Right (X increases)
89-
y-axis Top --> Bottom (Y increases)
88+
x-axis Left --> Right
89+
y-axis Top --> Bottom
9090
quadrant-1 Quadrant 1
9191
quadrant-2 Quadrant 2
9292
quadrant-3 Quadrant 3
9393
quadrant-4 Quadrant 4
9494
95-
Origin (0,0): [0.1, 0.1]
95+
Origin Point: [0.1, 0.1]
9696
Hero Center: [0.5, 0.8]
9797
Enemy Formation: [0.3, 0.2]
9898
Power-up: [0.7, 0.6]

9-chat-project/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ client = OpenAI(
220220
api_key=os.environ["GITHUB_TOKEN"],
221221
)
222222

223-
```python
224223
response = client.chat.completions.create(
225224
messages=[
226225
{
@@ -378,8 +377,8 @@ quadrantChart
378377
Documentation Bot: [0.2, 0.3]
379378
Customer Service: [0.4, 0.4]
380379
General Assistant: [0.7, 0.5]
381-
Creative Writer: [1.1, 0.9]
382-
Brainstorming Tool: [1.3, 0.8]
380+
Creative Writer: [0.9, 0.9]
381+
Brainstorming Tool: [0.8, 0.8]
383382
```
384383

385384
**Understanding why these parameters matter**: Different applications need different types of responses. A customer service bot should be consistent and factual (low temperature), while a creative writing assistant should be imaginative and varied (high temperature). Understanding these parameters gives you control over your AI's personality and response style.

0 commit comments

Comments
 (0)