3 ms·
Copy and paste might be the wrong method to use, but following directions isn't hard. It's not a REPL, it's a tutorial. Typing something wrong should cause you
by freehunter 9y ago
Copy and paste might be the wrong method to use, but following directions isn't hard. It's not a REPL, it's a tutorial. Typing something wrong should cause you to fail the lesson.
- bitwize 9y agoNever underestimate the power of being able to goof around. When I was a kid, I learned basic Unix commands using 'learn', a tutorial program that worked like this: you were presented a menu of concepts to learn from which you chose one. The program would then give you a textual overview of the concept and any associated commands; then, to test your knowledge, it would give you a goal (say, move a specified file into a specified directory, or edit a file) and drop you into a fake shell prompt. The fake shell worked just like the real shell in most every way. You could mess around, delete files, destroy stuff, etc. When you thought you had finished the lesson you could type a command (I believe it was 'ready'), and the tutorial would then exit the fake shell and assess your progress. If you did not meet the goal, or you seriously messed up the fake environment, you would not pass the lesson but you could opt to be dropped into the fake shell, restored to the exact same state as when you first saw it, and try the lesson again. Rapping newcomers on the knuckles for exploring is not how you win them over. Give them directed goals to accomplish, sure, but also give them a safe environment where it's practically impossible to seriously mess things up while exploring, so that they can satisfy that "what does this button do?" urge as they hunt for the solution.
- freehunter 9y agoAgain, that's the job of a REPL. If you're taking a spelling test in school and they ask you to spell "butterfly" and you write "treadmill"... sure, you've written a word correctly, congratulations. You still failed because you didn't write the correct word, and writing the correct word was the entire point of the exercise. If your boss tells you to write a landing page and you write a Twitter clone, hey congrats you did a great job. Now you're fired because you didn't do what you were specifically told to do. There is a time and a place for exploration and the first step of a tutorial is not that time or place. It is the time for following directions, otherwise the rest of the tutorial will not work and you will be frustrated. This is a tutorial, not a playground. Here's what you're looking for: https://repl.it/languages/clojure https://repl.it/languages/clojure