{"action":"created","comment":{"url":"https://api.github.com/repos/RoboJackets/software-training/pulls/comments/126570530","pull_request_review_id":49066578,"id":126570530,"diff_hunk":"@@ -0,0 +1,71 @@\n+#+TITLE: Week 2\r\n+#+AUTHOR: Kristaps Berzinch, Raymond Ortiz\r\n+#+EMAIL: kristaps@robojackets.org\r\n+\r\n+* What are we doing today?\r\n+- Introduction to C++\r\n+ - What it is\r\n+ - Functions\r\n+ - Includes and headers\r\n+ - Working with strings\r\n+- How to find and read documentation\r\n+- Sending and recieving changes from remote Git repositories\r\n+\r\n+* What is C++?\r\n+- A general-purpose programming language\r\n+- Designed with performance, efficiency, and flexibility in mind\r\n+- Great for robots!\r\n+\r\n+* Functions\r\n+#+BEGIN_NOTES\r\n+After introducing the concept, write a simple example. Don't go into prototypes yet, we'll cover them in a bit.\r\n+\r\n+TODO I think we should design a specific example that is easy to code on the fly but isn't completely trivial (e.g. writing an adder function seems dumb)\r\n+#+END_NOTES\r\n+- A function is a chunk of code with defined inputs and outputs\r\n+- These can be chained together in various ways to do useful things\r\n+- In general, you want each function to do one thing\r\n+\r\n+* Includes\r\n+#+BEGIN_NOTES\r\n+After introducing the concept, demo some basic examples of including a file within another file. Still no prototypes.\r\n+Include a function declaration in more than one file to cause a compilation error to lead into header files\r\n+#+END_NOTES\r\n+- Used for including other files inside of a particular file\r\n+- This enables more modular application design\r\n+\r\n+* Header files\r\n+#+BEGIN_NOTES\r\n+Now you can talk about prototypes!\r\n+#+END_NOTES\r\n+- Only contain /declarations/, also known as prototypes, not definitions\r\n+- This enables a lot of different files to \"know\" about a function but only have one definition for it\r\n+\r\n+* Working with strings\r\n+#+BEGIN_NOTES\r\n+Write and walk through some example code.\r\n+#+END_NOTES\r\n+- A C-style string is stored as an array of characters ending with a NULL (0x0)\r\n+- The C++ standard library contains a string class with several useful functions, in =<string>=\r\n+- Use the addition oprator (+) to concatenate strings\r\n+- Use =to_string= to convert other types to strings\r\n+- Use =sto___= functions to parse strings to other types\r\n+| Name | Description |\r\n+|-------+------|\r\n+| =length= | Returns the length of a string |\r\n+| =substr= | Returns a portion (substring) of the string |\r\n+| =find= | Returns the position of a substring, if present |\r\n+| =empty= | Returns true if length is zero, otherwise false |\r\n+\r\n+* How to find and read documentation\r\n+#+BEGIN_NOTES\r\n+Show how to get to the string documentation\r\n+#+END_NOTES\r\n+- Most of the last slide was sourced from cplusplus.com\r\n+- Great reference for all things C++\r\n+\r\n+* Git\r\n+#+BEGIN_NOTES\r\n+Time to switch to the Git/GitHub presentation.\r\n+#+END_NOTES\r\n+- [[file:github.org][Click here for this week's Git presentation]]\r","path":"slides/week2/week2.org","position":71,"original_position":71,"commit_id":"e11b922a5a8499675ab6b617a2f8bc988c4f9f81","original_commit_id":"e11b922a5a8499675ab6b617a2f8bc988c4f9f81","user":{"login":"joshhting","id":8889217,"avatar_url":"https://avatars2.githubusercontent.com/u/8889217?v=3","gravatar_id":"","url":"https://api.github.com/users/joshhting","html_url":"https://github.com/joshhting","followers_url":"https://api.github.com/users/joshhting/followers","following_url":"https://api.github.com/users/joshhting/following{/other_user}","gists_url":"https://api.github.com/users/joshhting/gists{/gist_id}","starred_url":"https://api.github.com/users/joshhting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshhting/subscriptions","organizations_url":"https://api.github.com/users/joshhting/orgs","repos_url":"https://api.github.com/users/joshhting/repos","events_url":"https://api.github.com/users/joshhting/events{/privacy}","received_events_url":"https://api.github.com/users/joshhting/received_events","type":"User","site_admin":false},"body":"File is now named git.org. Also make this change in the week1 slides","created_at":"2017-07-11T00:37:15Z","updated_at":"2017-07-11T00:38:11Z","html_url":"https://github.com/RoboJackets/software-training/pull/17#discussion_r126570530","pull_request_url":"https://api.github.com/repos/RoboJackets/software-training/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/RoboJackets/software-training/pulls/comments/126570530"},"html":{"href":"https://github.com/RoboJackets/software-training/pull/17#discussion_r126570530"},"pull_request":{"href":"https://api.github.com/repos/RoboJackets/software-training/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/RoboJackets/software-training/pulls/17","id":129791863,"html_url":"https://github.com/RoboJackets/software-training/pull/17","diff_url":"https://github.com/RoboJackets/software-training/pull/17.diff","patch_url":"https://github.com/RoboJackets/software-training/pull/17.patch","issue_url":"https://api.github.com/repos/RoboJackets/software-training/issues/17","number":17,"state":"open","locked":false,"title":"Week two topic slides","user":{"login":"kberzinch","id":10482109,"avatar_url":"https://avatars2.githubusercontent.com/u/10482109?v=3","gravatar_id":"","url":"https://api.github.com/users/kberzinch","html_url":"https://github.com/kberzinch","followers_url":"https://api.github.com/users/kberzinch/followers","following_url":"https://api.github.com/users/kberzinch/following{/other_user}","gists_url":"https://api.github.com/users/kberzinch/gists{/gist_id}","starred_url":"https://api.github.com/users/kberzinch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kberzinch/subscriptions","organizations_url":"https://api.github.com/users/kberzinch/orgs","repos_url":"https://api.github.com/users/kberzinch/repos","events_url":"https://api.github.com/users/kberzinch/events{/privacy}","received_events_url":"https://api.github.com/users/kberzinch/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-10T23:02:40Z","updated_at":"2017-07-11T00:38:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd58c43650e055a36d4fedc965f11b0eb4bd0cb2","assignee":{"login":"kberzinch","id":10482109,"avatar_url":"https://avatars2.githubusercontent.com/u/10482109?v=3","gravatar_id":"","url":"https://api.github.com/users/kberzinch","html_url":"https://github.com/kberzinch","followers_url":"https://api.github.com/users/kberzinch/followers","following_url":"https://api.github.com/users/kberzinch/following{/other_user}","gists_url":"https://api.github.com/users/kberzinch/gists{/gist_id}","starred_url":"https://api.github.com/users/kberzinch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kberzinch/subscriptions","organizations_url":"https://api.github.com/users/kberzinch/orgs","repos_url":"https://api.github.com/users/kberzinch/repos","events_url":"https://api.github.com/users/kberzinch/events{/privacy}","received_events_url":"https://api.github.com/users/kberzinch/received_events","type":"User","site_admin":false},"assignees":[{"login":"kberzinch","id":10482109,"avatar_url":"https://avatars2.githubusercontent.com/u/10482109?v=3","gravatar_id":"","url":"https://api.github.com/users/kberzinch","html_url":"https://github.com/kberzinch","followers_url":"https://api.github.com/users/kberzinch/followers","following_url":"https://api.github.com/users/kberzinch/following{/other_user}","gists_url":"https://api.github.com/users/kberzinch/gists{/gist_id}","starred_url":"https://api.github.com/users/kberzinch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kberzinch/subscriptions","organizations_url":"https://api.github.com/users/kberzinch/orgs","repos_url":"https://api.github.com/users/kberzinch/repos","events_url":"https://api.github.com/users/kberzinch/events{/privacy}","received_events_url":"https://api.github.com/users/kberzinch/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/RoboJackets/software-training/pulls/17/commits","review_comments_url":"https://api.github.com/repos/RoboJackets/software-training/pulls/17/comments","review_comment_url":"https://api.github.com/repos/RoboJackets/software-training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RoboJackets/software-training/issues/17/comments","statuses_url":"https://api.github.com/repos/RoboJackets/software-training/statuses/e11b922a5a8499675ab6b617a2f8bc988c4f9f81","head":{"label":"RoboJackets:weekTwoTopicSlides","ref":"weekTwoTopicSlides","sha":"e11b922a5a8499675ab6b617a2f8bc988c4f9f81","user":{"login":"RoboJackets","id":3523251,"avatar_url":"https://avatars2.githubusercontent.com/u/3523251?v=3","gravatar_id":"","url":"https://api.github.com/users/RoboJackets","html_url":"https://github.com/RoboJackets","followers_url":"https://api.github.com/users/RoboJackets/followers","following_url":"https://api.github.com/users/RoboJackets/following{/other_user}","gists_url":"https://api.github.com/users/RoboJackets/gists{/gist_id}","starred_url":"https://api.github.com/users/RoboJackets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoboJackets/subscriptions","organizations_url":"https://api.github.com/users/RoboJackets/orgs","repos_url":"https://api.github.com/users/RoboJackets/repos","events_url":"https://api.github.com/users/RoboJackets/events{/privacy}","received_events_url":"https://api.github.com/users/RoboJackets/received_events","type":"Organization","site_admin":false},"repo":{"id":95511824,"name":"software-training","full_name":"RoboJackets/software-training","owner":{"login":"RoboJackets","id":3523251,"avatar_url":"https://avatars2.githubusercontent.com/u/3523251?v=3","gravatar_id":"","url":"https://api.github.com/users/RoboJackets","html_url":"https://github.com/RoboJackets","followers_url":"https://api.github.com/users/RoboJackets/followers","following_url":"https://api.github.com/users/RoboJackets/following{/other_user}","gists_url":"https://api.github.com/users/RoboJackets/gists{/gist_id}","starred_url":"https://api.github.com/users/RoboJackets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoboJackets/subscriptions","organizations_url":"https://api.github.com/users/RoboJackets/orgs","repos_url":"https://api.github.com/users/RoboJackets/repos","events_url":"https://api.github.com/users/RoboJackets/events{/privacy}","received_events_url":"https://api.github.com/users/RoboJackets/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RoboJackets/software-training","description":"RoboJackets Software Training","fork":false,"url":"https://api.github.com/repos/RoboJackets/software-training","forks_url":"https://api.github.com/repos/RoboJackets/software-training/forks","keys_url":"https://api.github.com/repos/RoboJackets/software-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RoboJackets/software-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RoboJackets/software-training/teams","hooks_url":"https://api.github.com/repos/RoboJackets/software-training/hooks","issue_events_url":"https://api.github.com/repos/RoboJackets/software-training/issues/events{/number}","events_url":"https://api.github.com/repos/RoboJackets/software-training/events","assignees_url":"https://api.github.com/repos/RoboJackets/software-training/assignees{/user}","branches_url":"https://api.github.com/repos/RoboJackets/software-training/branches{/branch}","tags_url":"https://api.github.com/repos/RoboJackets/software-training/tags","blobs_url":"https://api.github.com/repos/RoboJackets/software-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RoboJackets/software-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RoboJackets/software-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/RoboJackets/software-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RoboJackets/software-training/statuses/{sha}","languages_url":"https://api.github.com/repos/RoboJackets/software-training/languages","stargazers_url":"https://api.github.com/repos/RoboJackets/software-training/stargazers","contributors_url":"https://api.github.com/repos/RoboJackets/software-training/contributors","subscribers_url":"https://api.github.com/repos/RoboJackets/software-training/subscribers","subscription_url":"https://api.github.com/repos/RoboJackets/software-training/subscription","commits_url":"https://api.github.com/repos/RoboJackets/software-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/RoboJackets/software-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/RoboJackets/software-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/RoboJackets/software-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/RoboJackets/software-training/contents/{+path}","compare_url":"https://api.github.com/repos/RoboJackets/software-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RoboJackets/software-training/merges","archive_url":"https://api.github.com/repos/RoboJackets/software-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RoboJackets/software-training/downloads","issues_url":"https://api.github.com/repos/RoboJackets/software-training/issues{/number}","pulls_url":"https://api.github.com/repos/RoboJackets/software-training/pulls{/number}","milestones_url":"https://api.github.com/repos/RoboJackets/software-training/milestones{/number}","notifications_url":"https://api.github.com/repos/RoboJackets/software-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RoboJackets/software-training/labels{/name}","releases_url":"https://api.github.com/repos/RoboJackets/software-training/releases{/id}","deployments_url":"https://api.github.com/repos/RoboJackets/software-training/deployments","created_at":"2017-06-27T03:02:52Z","updated_at":"2017-07-04T05:01:21Z","pushed_at":"2017-07-11T00:31:08Z","git_url":"git://github.com/RoboJackets/software-training.git","ssh_url":"git@github.com:RoboJackets/software-training.git","clone_url":"https://github.com/RoboJackets/software-training.git","svn_url":"https://github.com/RoboJackets/software-training","homepage":"https://robojackets.github.io/software-training/","size":113,"stargazers_count":3,"watchers_count":3,"language":"Emacs Lisp","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"RoboJackets:weekTwo","ref":"weekTwo","sha":"f2c82bc5e4721bdf4aa6917930b3c257c6b35093","user":{"login":"RoboJackets","id":3523251,"avatar_url":"https://avatars2.githubusercontent.com/u/3523251?v=3","gravatar_id":"","url":"https://api.github.com/users/RoboJackets","html_url":"https://github.com/RoboJackets","followers_url":"https://api.github.com/users/RoboJackets/followers","following_url":"https://api.github.com/users/RoboJackets/following{/other_user}","gists_url":"https://api.github.com/users/RoboJackets/gists{/gist_id}","starred_url":"https://api.github.com/users/RoboJackets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoboJackets/subscriptions","organizations_url":"https://api.github.com/users/RoboJackets/orgs","repos_url":"https://api.github.com/users/RoboJackets/repos","events_url":"https://api.github.com/users/RoboJackets/events{/privacy}","received_events_url":"https://api.github.com/users/RoboJackets/received_events","type":"Organization","site_admin":false},"repo":{"id":95511824,"name":"software-training","full_name":"RoboJackets/software-training","owner":{"login":"RoboJackets","id":3523251,"avatar_url":"https://avatars2.githubusercontent.com/u/3523251?v=3","gravatar_id":"","url":"https://api.github.com/users/RoboJackets","html_url":"https://github.com/RoboJackets","followers_url":"https://api.github.com/users/RoboJackets/followers","following_url":"https://api.github.com/users/RoboJackets/following{/other_user}","gists_url":"https://api.github.com/users/RoboJackets/gists{/gist_id}","starred_url":"https://api.github.com/users/RoboJackets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoboJackets/subscriptions","organizations_url":"https://api.github.com/users/RoboJackets/orgs","repos_url":"https://api.github.com/users/RoboJackets/repos","events_url":"https://api.github.com/users/RoboJackets/events{/privacy}","received_events_url":"https://api.github.com/users/RoboJackets/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RoboJackets/software-training","description":"RoboJackets Software Training","fork":false,"url":"https://api.github.com/repos/RoboJackets/software-training","forks_url":"https://api.github.com/repos/RoboJackets/software-training/forks","keys_url":"https://api.github.com/repos/RoboJackets/software-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RoboJackets/software-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RoboJackets/software-training/teams","hooks_url":"https://api.github.com/repos/RoboJackets/software-training/hooks","issue_events_url":"https://api.github.com/repos/RoboJackets/software-training/issues/events{/number}","events_url":"https://api.github.com/repos/RoboJackets/software-training/events","assignees_url":"https://api.github.com/repos/RoboJackets/software-training/assignees{/user}","branches_url":"https://api.github.com/repos/RoboJackets/software-training/branches{/branch}","tags_url":"https://api.github.com/repos/RoboJackets/software-training/tags","blobs_url":"https://api.github.com/repos/RoboJackets/software-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RoboJackets/software-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RoboJackets/software-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/RoboJackets/software-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RoboJackets/software-training/statuses/{sha}","languages_url":"https://api.github.com/repos/RoboJackets/software-training/languages","stargazers_url":"https://api.github.com/repos/RoboJackets/software-training/stargazers","contributors_url":"https://api.github.com/repos/RoboJackets/software-training/contributors","subscribers_url":"https://api.github.com/repos/RoboJackets/software-training/subscribers","subscription_url":"https://api.github.com/repos/RoboJackets/software-training/subscription","commits_url":"https://api.github.com/repos/RoboJackets/software-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/RoboJackets/software-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/RoboJackets/software-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/RoboJackets/software-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/RoboJackets/software-training/contents/{+path}","compare_url":"https://api.github.com/repos/RoboJackets/software-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RoboJackets/software-training/merges","archive_url":"https://api.github.com/repos/RoboJackets/software-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RoboJackets/software-training/downloads","issues_url":"https://api.github.com/repos/RoboJackets/software-training/issues{/number}","pulls_url":"https://api.github.com/repos/RoboJackets/software-training/pulls{/number}","milestones_url":"https://api.github.com/repos/RoboJackets/software-training/milestones{/number}","notifications_url":"https://api.github.com/repos/RoboJackets/software-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RoboJackets/software-training/labels{/name}","releases_url":"https://api.github.com/repos/RoboJackets/software-training/releases{/id}","deployments_url":"https://api.github.com/repos/RoboJackets/software-training/deployments","created_at":"2017-06-27T03:02:52Z","updated_at":"2017-07-04T05:01:21Z","pushed_at":"2017-07-11T00:31:08Z","git_url":"git://github.com/RoboJackets/software-training.git","ssh_url":"git@github.com:RoboJackets/software-training.git","clone_url":"https://github.com/RoboJackets/software-training.git","svn_url":"https://github.com/RoboJackets/software-training","homepage":"https://robojackets.github.io/software-training/","size":113,"stargazers_count":3,"watchers_count":3,"language":"Emacs Lisp","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RoboJackets/software-training/pulls/17"},"html":{"href":"https://github.com/RoboJackets/software-training/pull/17"},"issue":{"href":"https://api.github.com/repos/RoboJackets/software-training/issues/17"},"comments":{"href":"https://api.github.com/repos/RoboJackets/software-training/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/RoboJackets/software-training/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/RoboJackets/software-training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RoboJackets/software-training/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/RoboJackets/software-training/statuses/e11b922a5a8499675ab6b617a2f8bc988c4f9f81"}}}}
{"actor":{"display_login":"joshhting"}}