riddlr
riddlr copied to clipboard
riddlr refactor
This project kicked off largely as a proof of concept and focused only on getting a working app out the door while exploring the feasibility of making a "real-world" programming environment available within a shiny app (with code completion, ability to load libraries, syntax checking and available documentation).
I think the feasibility was proven, but the code isn't necessarily approachable. There's a lot of assumed structure being passed around as lists without any constructors.
There are a few things that would tremendously help to keep the code maintainable:
riddle,riddle_graderandriddle_grader_testconstructorsriddle(<prompt>, <grader>)riddle_grader(<solution>, <list(<riddle_grader_test>)>)riddle_grader_test(<input>, <timeout>, <grace_timeout>)
- Add
parse_riddle_rmd_dirto build a catalog from a directory ofRmdfiles. - Rename
riddleandriddle_uishiny module constructors toshinyRiddleandshinyRiddleUIand migrate to using riddle class as input instead of independent fields.