[x] pushed to Github: git push origin 02--tools-on-tuesday
[x] opened Pull Request
[x] NORMAL MODE
[x] AboutExpects.js
[x] AboutArrays.js
[x] AboutFunctions.js
[x] BEAST MODE
[ ] AboutObjects.js
[x] AboutMutability.js
[ ] AboutHigherOrderFunctions.js
[ ] NIGHTMARE MODE -- ALL KOANS
The Right Mindset
The second stage of the Writing Process is Drafting: writing a series of quick, rough attempts at cohesive thought with minimal editing. Through this process, the author revises her stance on the organization and presentation of the ideas in the piece, also revising her outline in the process. Your next step towards your essay is to produce your first Rough Draft, although you might produce many. Keep them all in the growth-vs-fixed-mindset.md file, adding commits for each as you go. Don't clobber your outline! Keep it around and revise it as you go. In the next stage, you'll start revising your drafts and outline into your final essay.
Write at least 1 Rough Draft in growth-vs-fixed-mindset.md
Keep all drafts you author; commit at least once for each.
Leave your outline! Revise it based on your drafts.
Reading JavaScript
Tonight, add 10 more entries to about/javascript.md for some of the operators we covered today in class, and particularly include that weirdo: typeof. There are some others like him in the documentation; bonus points for covering some crazy cousins. Also include coverage of the function keyword and include examples of function definitions and invocations. Identify the pieces and parts of your examples with code comments. If you're struggling with the format of your documentation, try following the example below:
add 10 more entries to about/javascript.md
cover any operators that we used in class that seemed odd or confusing
include the typeof operator
include the function keyword,
provide examples of function definitions and invocations
identify the pieces of your examples with code comments
incorporate feedback from Assignment 01
use the format below, if it's helpful
Sample Format
# About JavaScript
## Operators
### Arithmetic
#### `+` -- addition
Given two `Number` values, produces the sum of those values as another `Number`. For example:
1 + 1 // yields 2
2 + 2 // yields 4
. . .
## Functions
Functions are a form of [control flow](http://en.wikipedia.org/wiki/Control_flow) used in computer programs... (you fill in the rest)
### `function` keyword
The `function` keyword is used to _define_ a function with parentheses and curly braces:
// This is a Function Definition for `whatever`...
function whatever ( /* arguments go here */ ) {
// body of function goes here
}
Once a function has been defined, it can be _invoked_ by... (get the picture?)
JavaScript Koans
A koan is "a story, dialogue, question, or statement which is used in Zen practice to ... test a student's progress." Many people have contributed to sets of koans for learning programming languages, as well. The JavaScript Koans maintained by David Laing are good practice problems to help you gauge your understanding of JavaScript. Fork and clone his repository so that you can work on the problems locally. Just opening the KoansRunner.html file in a browser is sufficient (open KoansRunner.html); remember to reload the page after you save!
Create a branch in your cloned fork called 02--tools-on-tuesday and commit your work to that branch. Push your branch to Github (git push) and open a Pull Request from your 02--tools-on-tuesday branch into the master branch of your fork... not the original. Didn't you know you could do that? Remember to link your open PR to your WIP Issue in the class repo!
Assignment
markdown
02 -- Tools on Tuesday -- YOUR NAME
javascript-koans:02--tools-on-tues
USERNAME.github.io:01--right-mindset
(cont'd)USERNAME.github.io
growth-vs-fixed-mindset.md
about/javascript.md
javascript-koans
koans/AboutExpects.js
koans/AboutArrays.js
koans/AboutFunctions.js
growth-vs-fixed-mindset.md
function
git
orhub
02--tools-on-tuesday
git push origin 02--tools-on-tuesday
AboutExpects.js
AboutArrays.js
AboutFunctions.js
AboutObjects.js
AboutMutability.js
AboutHigherOrderFunctions.js
The Right Mindset
The second stage of the Writing Process is Drafting: writing a series of quick, rough attempts at cohesive thought with minimal editing. Through this process, the author revises her stance on the organization and presentation of the ideas in the piece, also revising her outline in the process. Your next step towards your essay is to produce your first Rough Draft, although you might produce many. Keep them all in the
growth-vs-fixed-mindset.md
file, adding commits for each as you go. Don't clobber your outline! Keep it around and revise it as you go. In the next stage, you'll start revising your drafts and outline into your final essay.growth-vs-fixed-mindset.md
Reading JavaScript
Tonight, add 10 more entries to
about/javascript.md
for some of the operators we covered today in class, and particularly include that weirdo:typeof
. There are some others like him in the documentation; bonus points for covering some crazy cousins. Also include coverage of thefunction
keyword and include examples of function definitions and invocations. Identify the pieces and parts of your examples with code comments. If you're struggling with the format of your documentation, try following the example below:about/javascript.md
typeof
operatorfunction
keyword,Sample Format
JavaScript Koans
A koan is "a story, dialogue, question, or statement which is used in Zen practice to ... test a student's progress." Many people have contributed to sets of koans for learning programming languages, as well. The JavaScript Koans maintained by David Laing are good practice problems to help you gauge your understanding of JavaScript. Fork and clone his repository so that you can work on the problems locally. Just opening the
KoansRunner.html
file in a browser is sufficient (open KoansRunner.html
); remember to reload the page after you save!Create a branch in your cloned fork called
02--tools-on-tuesday
and commit your work to that branch. Push your branch to Github (git push
) and open a Pull Request from your02--tools-on-tuesday
branch into themaster
branch of your fork... not the original. Didn't you know you could do that? Remember to link your open PR to your WIP Issue in the class repo!02--tools-on-tuesday
KoanRunner.html
in a browserAboutExpects.js
,AboutArrays.js
,AboutFunctions.js
BEAST MODE
In addition to NORMAL MODE, complete
AboutObjects.js
,AboutMutability.js
,AboutHigherOrderFunctions.js
as well.NIGHTMARE MODE
Complete all of the koans.
Additional Resources