echo "This is nice."
and it does.Then, I type:
for i in {1..10}; do
echo "This works too! Number $i"
done
And it does. echo "This is nice."
and it does.Then, I type:
for i in {1..10}; do
echo "This works too! Number $i"
done
And it does.Now, how do you replicate
SAVE "myprogram"
and a later LOAD "myprogram"
RUN
without having to teach vi, redirection, chmod, source, $PATH, and friends?My point is that the old environments, while limited, scaled from zero to useful with much less requirements than today's environments, which scale much higher at the expense of a beginner's joy of experimentation.
But I still think there are simple things that beginners can do. The whole SAVE, LOAD, RUN concepts also had to be learned. And you only need to know some text editor to be able to save a file. It can then be run with `bash myprogram`. And then later you can add the concepts of adding a shebang and making the file executable.
Also, the huge advantage of teaching shell commands is that it is actually, currently useful. I use those commands every day at work, despite having learnt them initially on an old Sun server many moons ago. I can't say the same for Spectrum Basic! :)
AFAIK, the closest in Ruby would be something like:
for i in 1..10 do
puts "This works too! Number " + i.to_s
end
As for passwords, I boot directly into single-user mode and start the network manually. It's the only way to be sure.