Introducing Scratch Pad in Cody
We are introducing Scratch Pad in Cody to support iterative problem solving. Scratch Pad will enable you to build your solution line-by-line, experiment with different MATLAB functions, and test your solution before submitting.
Try it out and let us know what you think.
11 Commenti
This is great! Now I don't need to open Matlab to test my code.
The scratchpad is fine, but I have a problem with the splitting of the test suite into separate code snippets. With many tests (which is good!) rechecking all tests every time I make a modification to my code is quite cumbersome. Could you add a button to display the whole suite in the old format? This would make it easier to check everything before submitting.
Someone grew tired from all my wrong test solutions :)
Ned just posted about the feature on the Community blog here: Cody News: Test That Code Before You Submit It!
There should be a test suite (e.g. loaded dynamically from the FEX) that runs before any other test is run. That way it should be easier to filter most of the fileread, str2num, and regexprep hacks. If you maintain it on GitHub, people can even suggest modifications to that test suite.
Without that, every update to Cody (however nice or needed) is just sugar coating. I like seeing some changes for Cody, and I hope this is a sign to expect the score hacks to be made more difficult soon.
This is a great feature that simplifies Cody usage and makes the process of solving problems more efficient. I'm also excited about support for graphical output!