Skip to content

Put note about class-side initialization of TBBlog - chapter 4 #18

Description

@Bajger

There should be a note in chapter 4 about class side initialization of TBBlog class. Since it is invoked explicitly by user, class is initialized (and Mongo memory DB) only when this initialized method is called by user. Therefore note to Save image right after initialization in order to persist state of DB, otherwise DB won't be initialized next time image is opened.
Current state:

The ==reset== class method re-initializes the database. The ==initialize== class method ensures that the database is initialized when we load TinyBlog's code. Do not forget to execute expression ==TBBlog initialize== to ensure that the database is initialized.

Proposal to add right after that:
Note: Please save your image right after you evaluated initialize method. Class side initialization is done only when explicitly evaluated by user. Therefore TBBlog initialization might be lost, if you quit the image without saving changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions