Skip to content
This repository was archived by the owner on Jun 1, 2021. It is now read-only.
This repository was archived by the owner on Jun 1, 2021. It is now read-only.

Help Users Navigate User Guide Code #384

@mslinn

Description

@mslinn

Users who are just getting started with Eventuate, like me, would find it very helpful to work through the code examples in the User Guide. Following are suggestions to make that experience better:

  1. The User Guide should say that the code exists at https://github.com/RBMHTechnology/eventuate/blob/master/src/sphinx/code/UserGuideDoc.scala.
  2. It would be better if this code was a series of small projects, so the dependencies would be better understood, and so the reader would know that each project is independent.

Following my own suggestions, I made a GitHub repo for UserGuideDoc.scala:

  • I refactored the User Guide code into separate Scala files for easier reading. One big file for the entire chapter is painful to figure out.
  • Updated to Scala 2.12.1 and SBT 0.13.13.
  • Ascribed types where they were not declared.
  • Applied minor reformatting, while attempting to not disturb the Sphinx comments.
  • Created application.conf for Akka configuration.

In doing the above, I discovered that the mysterious LevelDB mentioned in the docs was actually a Scala port of the Google LevelDB project, originally written in C++. It would be good to tell readers early on that LevelDB is a fast key-value storage, originally developed by Google, which provides ordered mapping from ByteArray keys to ByteArray values.

When the sample project is ready, it might be a good idea to move the repo over to a subproject under RBMHTechnology/eventuate, and replace UserGuideDoc.scala, so others can have a quicker start.

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