@KOTP
Trying to get along
Nothing here yet.
Nothing here yet.
No blogs yet.
To make a commit we'll use the git commit -m "your_commitmessage" command. Instead, prefer using git commit -v if you are not using git commit -p (perhaps also with -v) to force a pause to think about the story you want to write from the view of your git log. Using git commit -m encourages less thoughtful history being written. Use the editor coming up, and the diff presented to remind you why the changes are committed in this commit, in this one snapshot.
Nice writeup. I noticed that catch and throw was missing. def using_throw arr arr.each do |i| throw :early if i > 5 puts arr[i] end end catch :early do using_throw [1, 2, 3, 4, 5, 6, 7, 8] end Demonstrates that the catch does not need to be in the same method. def using_throw arr catch :early do arr.each do |i| throw :early if i > 5 puts arr[i] end end end using_throw [1, 2, 3, 4, 5, 6, 7, 8] If we want to catch in the method itself.