Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Blog tutorial code example unclear due to change in convention #393
In the page Customizing Post Model, section "representing status in text" there is a section of code that is unclear because it violates the conventions used elsewhere in the tutorial. This issue is in the code chunk for the Lookup model. The text says "We modify the Lookup model class as follows to more easily access the textual data in the table" but there is no elipsis in the code to indicate that the sample code is to be added into the existing Lookup model rather than replace it.
In previous examples, the convention has been to include an elipsis in the code sample indicating the code that is to remain and to include entire methods, classes, etc. without elipsis when the code is to replace the existing code.
Here is the existing code (replacement follows):
The code should read
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Sorry, I don't know what that means.
On 12-02-24 09:48 AM, Alexander Makarov wrote:
Daniel Paul O'Donnell
+1 403 393-2539