ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 03 Jul 2013 19:38:40 +0200Is it better practice to show SAGE code on a web use of SAGE?https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/If you go to my page for The Sensible Calculus Book http://users.humboldt.edu/flashman/senscalca_x.html you will find how I've added SAGE to this page- with interacts for graphs, direction fields and Euler's Method for DE's as well as one of the mapping diagram interacts I am developing from the assistance of Jeff Denny, Jason Grout, and others at Sage Edu Days 5 . I would like feedback on this if you have suggestions- I have currently hidden the code from the users using the interact buttons. Is it better practice to show the Sage code?Mon, 01 Jul 2013 13:27:00 +0200https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/Comment by ppurka for <p>If you go to my page for The Sensible Calculus Book <a href="http://users.humboldt.edu/flashman/senscalca_x.html">http://users.humboldt.edu/flashman/se...</a> you will find how I've added SAGE to this page- with interacts for graphs, direction fields and Euler's Method for DE's as well as one of the mapping diagram interacts I am developing from the assistance of Jeff Denny, Jason Grout, and others at Sage Edu Days 5 . I would like feedback on this if you have suggestions- I have currently hidden the code from the users using the interact buttons. Is it better practice to show the Sage code?</p>
https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?comment=17396#post-id-17396Why not show the sage code? There might be one or two really curious students who will tinker around and learn much more that the others. :-)Tue, 02 Jul 2013 03:22:42 +0200https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?comment=17396#post-id-17396Comment by kcrisman for <p>If you go to my page for The Sensible Calculus Book <a href="http://users.humboldt.edu/flashman/senscalca_x.html">http://users.humboldt.edu/flashman/se...</a> you will find how I've added SAGE to this page- with interacts for graphs, direction fields and Euler's Method for DE's as well as one of the mapping diagram interacts I am developing from the assistance of Jeff Denny, Jason Grout, and others at Sage Edu Days 5 . I would like feedback on this if you have suggestions- I have currently hidden the code from the users using the interact buttons. Is it better practice to show the Sage code?</p>
https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?comment=17407#post-id-17407Martin, this probably depends most of all on your use case and the intended audience. I personally like having the code visible so my students know it's not a magic box, but I also haven't used it with my lowest-level classes much, where I may indeed choose to do that. In a test environment you may definitely want to have the code invisible.Mon, 01 Jul 2013 14:03:56 +0200https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?comment=17407#post-id-17407Comment by Eviatar Bach for <p>If you go to my page for The Sensible Calculus Book <a href="http://users.humboldt.edu/flashman/senscalca_x.html">http://users.humboldt.edu/flashman/se...</a> you will find how I've added SAGE to this page- with interacts for graphs, direction fields and Euler's Method for DE's as well as one of the mapping diagram interacts I am developing from the assistance of Jeff Denny, Jason Grout, and others at Sage Edu Days 5 . I would like feedback on this if you have suggestions- I have currently hidden the code from the users using the interact buttons. Is it better practice to show the Sage code?</p>
https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?comment=17370#post-id-17370In any case, it would be good to make the code available somewhere so that others can use it.Wed, 03 Jul 2013 19:38:40 +0200https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?comment=17370#post-id-17370Comment by kcrisman for <p>If you go to my page for The Sensible Calculus Book <a href="http://users.humboldt.edu/flashman/senscalca_x.html">http://users.humboldt.edu/flashman/se...</a> you will find how I've added SAGE to this page- with interacts for graphs, direction fields and Euler's Method for DE's as well as one of the mapping diagram interacts I am developing from the assistance of Jeff Denny, Jason Grout, and others at Sage Edu Days 5 . I would like feedback on this if you have suggestions- I have currently hidden the code from the users using the interact buttons. Is it better practice to show the Sage code?</p>
https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?comment=17387#post-id-17387@ppurka - Cheating? If it's super-long and takes up too much space? If the students are uniformly scared by code (this really does happen, I realize that at your institution this is probably not the case as a tech. u.). I'm just saying it probably is a contextual question.Tue, 02 Jul 2013 10:50:22 +0200https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?comment=17387#post-id-17387Answer by niles for <p>If you go to my page for The Sensible Calculus Book <a href="http://users.humboldt.edu/flashman/senscalca_x.html">http://users.humboldt.edu/flashman/se...</a> you will find how I've added SAGE to this page- with interacts for graphs, direction fields and Euler's Method for DE's as well as one of the mapping diagram interacts I am developing from the assistance of Jeff Denny, Jason Grout, and others at Sage Edu Days 5 . I would like feedback on this if you have suggestions- I have currently hidden the code from the users using the interact buttons. Is it better practice to show the Sage code?</p>
https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?answer=15179#post-id-15179I have two suggestions on this topic:
First, you should only show the source code if it is written clearly enough to be understood by students. Showing them something incomprehensible will probably have the opposite of the effect you would like. Python makes it pretty easy to write code that's readable by people with programming experience, but if that's not true of your students you'll have to take extra care and you might decide that effort isn't worth it.
Second, in an html format you can make showing the source *optional*. A button that says "Show source code" could open it in a popup window, or create a new tab with the source code and a fresh copy of the interact so they can play right there, or just unhide it on the current page.Wed, 03 Jul 2013 09:46:02 +0200https://ask.sagemath.org/question/10305/is-it-better-practice-to-show-sage-code-on-a-web-use-of-sage/?answer=15179#post-id-15179