Conversation
One thing to note, in line 6 of the book, we check for north and east, and chose either one to link. Somehow, it does not work on this code, I have to use South and East. Will have to check why I can't follow the code as is given in the book
* Re-reading the source code from the book got me to spot my own mistake that makes bidirectional links to not join at all * The code now follows the book exactly
* Dynamic type languages like Ruby and Python tend to leave out details and make things seem like magic. I used to like that about Ruby and Python :P * Now that I'm reading someone else's code, I have to do the interpretation myself, and I hope this is what the short listing on page 40 does. * Based on this however, there may be more Ruby fu to translate in the later pages 8|
* We can now draw the grid with added distances * "Inheritance" in go in not really inheritance in the sense like Ruby, we have to override `String()`, as once promoted to Grid's String() method, we are not able to get to DistanceGrid's `ContentsOf(cell)` method. * Another thing to note, since there is only one `main()`, and the next few pages adds different scripts, which means I might have to split things up or provide command line options.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chapter 3 is all about finding your way around mazes.