Highlights
Segui


Santosh Kasula
73 visualizzazioni (ultimi 30 giorni)

Introducing Scratch Pad in Cody

Santosh Kasula il 12 Apr 2021 (Modificato il 26 Apr 2021)
Ultime attività Replicato da Ethel il 19 Lug 2022

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.

Ethel
Ethel il 19 Lug 2022
Could you add a button to display the whole suite in the old format https://www.allisonroseatelier.com/ This would make it easier to check everything before submitting.
Yutaka Yamada
Yutaka Yamada il 28 Maggio 2021

This is great! Now I don't need to open Matlab to test my code.

Are Mjaavatten
Are Mjaavatten il 22 Apr 2021

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.

Santosh Kasula
Santosh Kasula il 22 Apr 2021

@Are - Did you try submitting? When you submit, if the tests fail, the page keeps you on the same page. There is no change in behavior and test run times. It is just displayed better.

Are Mjaavatten
Are Mjaavatten il 22 Apr 2021

Call me vain, but I just hate submitting lots of failed solutions.

Santosh Kasula
Santosh Kasula il 22 Apr 2021 (Modificato il 22 Apr 2021)

Fair enough. We will look into a way to facilitate the workflow. In the long run, we are planning to enable iterating through the solution in MATLAB Desktop or Online. That should address your use case while providing richness of MATLAB IDE.

Nikolaos Nikolaou
Nikolaos Nikolaou il 14 Apr 2021

Someone grew tired from all my wrong test solutions :)

David
David il 13 Apr 2021

Ned just posted about the feature on the Community blog here: Cody News: Test That Code Before You Submit It!

Rik
Rik il 12 Apr 2021 (Modificato il 12 Apr 2021)

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.

Santosh Kasula
Santosh Kasula il 13 Apr 2021

@Rik - Thank you for your suggestion. We are working on few ideas to limit some of these hacks.

goc3
goc3 il 12 Apr 2021

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!