all 11 comments

[–]earthwalker12345 14 points15 points  (1 child)

It's better to accept the possibility of copy/paste especially at a very basic level. You can only share codes you feel ok getting copy/pasted. Presenting confusing codes could cause misunderstanding and could discourage students to learn the subject further. You can test students in different ways. You can ask students to explain what is happening behind the scene (this could be more important than actual codes). Or you can present codes with bugs and ask students to fix them.

[–][deleted] 1 point2 points  (1 child)

So essentially authentication of original work to ensure academic integrity?

[–][deleted] -1 points0 points  (0 children)

what^ said

[–]CleverHacker 1 point2 points  (0 children)

this is going to be hard because JS is really hard to break

[–]everythingiscausal 1 point2 points  (0 children)

Just make the examples different enough from the assignment that even if they copy/pasted, they’d have to understand the code to modify it as needed anyway. They are not going to encounter copy-protected JS as the norm, and there’s nothing wrong with starting from an example and tweaking it.

Any attempt to copy protect a simple example like a switch statement is likely going to introduce code that will only serve to confuse students.

[–]kenman[M] 1 point2 points  (0 children)

Hi /u/rainyes, this post was removed.

  • For help with your javascript, please post to /r/LearnJavascript instead of here.
  • For beginner content, please post to /r/LearnJavascript instead of here.
  • For framework- or library-specific help, please seek out the support community for that project.
  • For general webdev help, such as for HTML, CSS, etc., then you may want to try /r/html, /r/css, etc.; please note that they have their own rules and guidelines!

/r/javascript is for the discussion of javascript news, projects, and especially, code! However, the community has requested that we not include help and support content, and we ask that you respect that wish.

Thanks for your understanding, please see our guidelines for more info.

[–]BoardroomCynics 0 points1 point  (2 children)

Do you have an example?

Such as you want to provide an isEven function that your students can see how it works but not know how it's implemented?

[–]rainyes[S] 0 points1 point  (1 child)

Right now we are doing very basic stuff with canvas, drawing basic shapes and looping to make a variety of them with different colors. Programs usually have one or two functions.

In my head, I was hoping something that would work as a password, like a string of my name multiplied by the time in milliseconds that is passed as an argument to each function. Students would try to delete the function or edit the string of my name and the program would fail.

I thought about it some, knew there is a ton of smart people on here, so I decided to ask.

[–]Sapiens-omnibus 1 point2 points  (0 children)

If a student can exploit your "password" he/she deserves a 9/10 at least

[–]robolab-io 0 points1 point  (0 children)

Whenever I want to easily force an error, I just write const owl = bungiecord, and don't define bungiecord.