Skip to content

Code restructuring and collaboration  #34

@teucer

Description

@teucer

@gpoore

I went through the code, please find below some suggestions. My goal is not to criticize at all the time and work that you have dedicated to the project. Codebraid is filling a very useful niche and am grateful for your efforts. I think a "novice" friendlier code base might attract more people to contribute. Please let me know what you think.

  1. Some functions are very long e.g. the function _run. It would helpful to have more modules and smaller functions, cf. Unix philosophy
  2. Related to above, it seems that a lot effort is spent to read and process the cell configuration. It looks like an DSL, maybe one can have that in a separate module
  3. It would be helpful to use type hinting
  4. pandoc json/AST might not be ideal to process. Maybe one can use another parser/format (marked, cmark have nicer ASTs) to pre-process and execute the code
  5. It would be helpful to remove pandoc from the code base: codebraid would only convert from input-markdown to executed-markdown
  6. Maybe consider to support just jupyter kernels to leverage their capabilities. Don't know the implications in terms of performance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions