[RC Diary] Good progress and activism (-84)
We moved to Jekyll and used plugins to programmatically paste the feedback areas after the code examples:
module Jekyll class ReplOnly < Liquid::Tag def initialize(tag_name, text, tokens) # need to parse through text, so we can fix below super @text = text.split('#') @id = @text @editor = @text[1...@text.length] end def render(context) [ '<div class="js-editor" data-identifier="', @id, '" style="width: auto; height:150px;">', @editor, '</div>', '<p><input class="js-console"><button class="js-go">REPL</button></p>', '<p>Your answer: <code class="js-results quicksort"></code>', '<code class="blinking-cursor">|</code></p>', '<p class="js-errors ', @id, '"></p>' ].join('') end end end Liquid::Template.register_tag('repl_only', Jekyll::ReplOnly)
it might require some more work but for now it will help us save a lot of time.
- should mutate only covered source (but assume 100% code coverage for now)
- data structures could be simplified
- variable declaration duplicated
Had a look at this video to understand about
in the code I am using
(defrecord Candidate [path code])
to describe an object candidate for mutation, composed of the path to the corresponding file and the code (be it in string representation or AST representation)... aaand I'm not sure I am using it properly.
It's no use following Noam Chomsky and not taking actions, so I thought about joining the above group to help as I can.
Turns out there is still need to scrape scientific data and in general for developer, we've found a few resources that seem to be useful:
- videos from Chomsky - find which ones are the best and get them
- "check that parens are balanced" exercise
- still need some attention needed for timsort, radix sort
- chapter 3 of the little schemer in Clojure