Community Highlights

お知らせ

Santosh Kasula
17 回の表示 (過去 30 日間)

Introducing Scratch Pad in Cody

Santosh Kasula 2021 4 月 12 (編集済み 2021 4 月 26)
最新アクティビティ Ethel さんによって 2022 7 月 19 に 返信

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 2022 7 月 19
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 2021 5 月 28

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

Are Mjaavatten
Are Mjaavatten 2021 4 月 22

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 2021 4 月 22

@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 2021 4 月 22

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

Santosh Kasula
Santosh Kasula 2021 4 月 22 (編集済み 2021 4 月 22)

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 2021 4 月 14

Someone grew tired from all my wrong test solutions :)

David
David 2021 4 月 13

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

Rik
Rik 2021 4 月 12 (編集済み 2021 4 月 12)

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 2021 4 月 13

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

goc3
goc3 2021 4 月 12

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!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!