This talk is about experiments with RSpec files changing the files through the abstract syntax tree.
It works with the Ruby gem fast: https://github.com/jonatas/fast that allow running dynamic experiments manipulating code and running the changed code
25. Experiments allow us to…
➔ Test “what if…”
➔ Find useless code and commit same mistakes
➔ Avoid repeating same experiments
➔ Like a linter but it’s not a linter
26. Simple 1 to 1 combination used to
generate the next interaction
Combining
experiments
42. Component Browser
Balsamiq Tip | Use the Balsamiq add-on to make your own wireframe.
What should be done in the target node
43. Parser::Writer ● remove(range)
● insert_after(position, content)
● insert_before(position, content)
Very simple interface to rewrite
code file based on AST
54. Next Steps > Fast#experiments
● Public experiments suite
● Run multiple checkers
● Check only diff nodes
● Improve combination strategy
● Implement “fast --warn” to report issues
55. “You don’t stop doing things
because you get old.
You get oldbecause you stop
doing things.”
Rosamunde Pilcher