{"id":6036,"date":"2019-02-08T16:37:38","date_gmt":"2019-02-08T21:37:38","guid":{"rendered":"https:\/\/blogs.mathworks.com\/community\/?p=6036"},"modified":"2020-02-05T11:15:26","modified_gmt":"2020-02-05T16:15:26","slug":"new-cody-features-customized-groups-and-solve-later","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/community\/2019\/02\/08\/new-cody-features-customized-groups-and-solve-later\/","title":{"rendered":"New Cody Features: Customized Groups and Solve Later"},"content":{"rendered":"<p>Today I want to tell you about two new features in Cody. One of them, <strong>Customized Groups<\/strong>, I&#8217;ve been anticipating with excitement for a long time. The other one, <strong>Solve Later<\/strong>, took me by surprise and bowled me over with how useful it is.<br \/>\n<img decoding=\"async\" loading=\"lazy\" width=\"600\" height=\"283\" class=\"alignnone size-full wp-image-6042\" src=\"https:\/\/blogs.mathworks.com\/community\/files\/add_to_group.png\" alt=\"\" \/><\/p>\n<h2>Customized Groups<\/h2>\n<p>Groups (that is, named collections of Cody problems) have been around since the beginning. But it was hard to make them and we didn&#8217;t get much use out of them. More recently we improved the Groups architecture and added a lot of groups. You may remember this change at the same time we had our Cody <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/cody\/contests\/1\">Fifth Anniversary celebration<\/a>. But even then, adding groups was a special admin-only task. I want to thank <a href=\"https:\/\/blogs.mathworks.com\/community\/2018\/02\/05\/matlab-sporcle-and-grant\/\">Grant O. Cook III<\/a> for volunteering to help us create many of these new groups. He did a terrific job. But Grant was only able to do that work because we gave him special administrative privileges. A typical Cody player still couldn&#8217;t create groups.<\/p>\n<p>But that&#8217;s all changed. Now anyone can make a personal Cody group. You do it by assembling problems just as though you were building a playlist on Spotify or some other music site. At the top right of every problem is a little link that says &#8220;Add to Group&#8221;. Click on it and you can start a new group or add the current problem to an existing group.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"600\" height=\"402\" class=\"alignnone size-full wp-image-6056\" src=\"https:\/\/blogs.mathworks.com\/community\/files\/group.png\" alt=\"\" \/><\/p>\n<p>I made a custom group: <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/cody\/groups\/122\">All Things Fibonacci<\/a>. Since so many people like making Fibonacci problems, I thought I&#8217;d throw a bunch of them into one group. I was able to arrange them in a specific order, from easy to hard. Working through a list of related problems is fun, because it takes you deep into a certain algorithmic space. You see commonalities and differences in your algorithms depending on the problem statement. If I tell you to calculate the Nth Fibonacci number for N&lt;40, you&#8217;ll code it up one way. But you&#8217;ll probably use a different approach if I say give me all the Fibonacci numbers less than N for N up to 1e20.<\/p>\n<p>Note that anybody can make customized groups, but to publish it on the <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/cody\/groups\">public Groups page<\/a>, you need to have a Cody score of 1000 or better.<\/p>\n<h2>Solve Later<\/h2>\n<p>This is the feature that surprised me. It&#8217;s a natural partner for Customized Groups, because it&#8217;s really just a special kind of group. If you see an interesting problem that you don&#8217;t have time to solve right now, just add it to your &#8220;Solve Later&#8221; list. Easy peasy!<\/p>\n<p>Solving a problem on Cody calls for a certain amount of commitment. At first it may look straightforward (&#8220;I see what to do&#8221;). Then after working at it for a while it doesn&#8217;t seem so easy (&#8220;Why isn&#8217;t this working?&#8221;). Then when you finally have a solution (&#8220;Aha! I&#8217;ve got it!&#8221;), maybe a part of the test suite throws you for a loop. You may have to rethink your solution (&#8220;It never occurred to me that N could be as big as a million!&#8221;).<\/p>\n<p>But now, at any point from the moment you see it to the moment you dance the Cody Victory Dance, you can save the problem on your &#8220;Solve Later&#8221; list. Then you just have to go back to &#8220;My Cody&#8221; and look for the list.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"547\" height=\"329\" class=\"alignnone size-full wp-image-6058\" src=\"https:\/\/blogs.mathworks.com\/community\/files\/solve_later.png\" alt=\"\" \/><\/p>\n<p>Try out the new features! I&#8217;ve been having fun using them. And every time I give myself an excuse to spend time on Cody, I think: Wow! There&#8217;s a lot of great stuff here! And in the comments, tell us what you think and how we can improve the feature.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/community\/files\/add_to_group.png\" onError=\"this.style.display ='none';\" \/><\/div>\n<p>Today I want to tell you about two new features in Cody. One of them, Customized Groups, I&#8217;ve been anticipating with excitement for a long time. The other one, Solve Later, took me by surprise&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/community\/2019\/02\/08\/new-cody-features-customized-groups-and-solve-later\/\">read more >><\/a><\/p>\n","protected":false},"author":69,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[250],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/6036"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/users\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/comments?post=6036"}],"version-history":[{"count":9,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/6036\/revisions"}],"predecessor-version":[{"id":6064,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/6036\/revisions\/6064"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/media?parent=6036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/categories?post=6036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/tags?post=6036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}