Remove physical constants and suffixes from calc.py#17368
Remove physical constants and suffixes from calc.py#17368nedbat merged 1 commit intoopenedx:masterfrom
Conversation
|
Thanks for the pull request, @jolyonb! I've created OSPR-2187 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. |
|
@jolyonb this is failing on the case-sensitivity test. The value for |
|
Huh. There's a bug in the underlying code that's been dormant for years! This one isn't our fault! |
|
How do we get confidence that others aren't using these constants and will be broken if we remove them? Also, the tests have to pass. We can't merge to master with a failing test. |
|
This is still labeled as WIP. Ping me when you are ready for a review. |
|
I don't know that other people aren't using them, and this may well break some things. I want to begin a discussion regarding them though. From my discussions with other MOOC creators in physics and math, these are universally reviled as creating frustrations for students and extra work for staff on the discussion boards. |
|
I build the math MOOCs at MIT, and I can say that I have never used the built in suffixes or prefixes ever in all of the 3000+ problems I've build over the years. I imagine these were built in specifically for the original course 6.002x. I imagine that it is so case specific, that it is not very valuable for most others. |
|
@sstack22 Can we get a product assessment about changing these details of calc's behavior? |
|
jenkins run python |
|
jenkins run quality |
43e5ae0 to
c4ff00a
Compare
|
@nedbat - @shamck and @scottrish are triaging incoming Educator OSPRS, adding them here. |
|
Your PR has finished running tests. |
|
jenkins run python |
|
Your PR has finished running tests. |
There was a problem hiding this comment.
This line has to go. The code gives unpredictable results when there is a name collision due to case insensitivity. This is an old issue, and not one that anybody actually runs into. Also, we should not be testing for unpredictable results.
|
@shamck Are you giving a "product thumbs-up" to this change? |
ca7b46a to
ebfcd94
Compare
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
|
jenkins run python |
|
Your PR has finished running tests. |
fix / remove old tests
875fde4 to
0419347
Compare
|
Your PR has finished running tests. |
|
Squashed commits and removed the 'WIP' from the title. |
|
@sstack22 @scottrish @shamck I don't understand Product's opinion here. |
|
Confirming that this has product approval and is ready to be assigned to a development team. |
|
Please make this change!! Having these constants pre-defined is messing up all of my students in 8.02x right now! |
|
@nedbat Can we get an update on this please? |
|
@jolyonb 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
Woot!
|
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production on Friday, April 27, 2018. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
- It replicate this PR: frontend-app-learning/pull/825 which rewrite calcualtor tips since some tips are no longer relevant, hence: openedx#17368
- It replicate this PR: frontend-app-learning/pull/825 which rewrite calcualtor tips since some tips are no longer relevant, hence: #17368 Co-authored-by: Rebecca Graber <rgraber@edx.org>
In formula problems, a number of physical constants have been predefined, as well as some suffixes. In my experience, these only lead to student confusion. Students expect an error to be raised when invalid input is given. So, when the answer to a given problem is
2*mand students forget the multiplication sign and instead enter2mand are graded incorrect, this leads to student frustration, excess discussion forum posts, extra work for the instructor, etc. The problem is exacerbated in an exam situation where correctness is not shown until the end of the exam.The physical constants have been defined to be particular numbers, and often lead to unintended consequences. Students expect that undefined variables will raise an error message, but the variables
c,Q,Tandkare accepted without warning. These variables are also particularly useless as defined, as they're specified in particular units, and cannot be used when working with different units. Best practice is definitely to sample variables appropriately when allowing for formula input.This PR removes all extraneous physical constants and suffixes.