Live data from Hacker News

GameShell: A game to learn or teach the Unix shell

github.com

1–10 of 69 posts

Re: GameShell: A game to learn or teach the Unix shell

#2
When I first started learning Unix -- way before Linux (I'm that old) -- there was a program called 'learn' that came with the OS. 'learn' taught you how to use the shell in a series of distinct lessons, each of which was capped off by an exercise in which you were dropped into a fake shell environment and instructed to achieve some task. Only by successfully completing the task (the program checked the state of the fake file system against the desired state) could you proceed to the next lesson.

I'd been hoping for a program like 'learn' for modern environments. This looks like it comes close.

Re: GameShell: A game to learn or teach the Unix shell

#3
Maybe before starting to teach others, you should teach yourself how to cleanly package your software into OS packages, instead of peddling around MS-DOS style shell scripts with a .sh extension. Didn't anybody teach you that UNIX-like operating systems purposely do not use extensions, in order to abstract the implementation language of the executable from the user?

How the hell are you going to properly teach others, if you have such knowledge gaps yourselves?

It's blind leading the blind again; boy does this make me mad.

Re: GameShell: A game to learn or teach the Unix shell

#4
post #3

Maybe before starting to teach others, you should teach yourself how to cleanly package your software into OS packages, instead of peddling around MS-DOS style shell scripts with a .sh extension. Didn't anybody teach you that UNIX-like operating systems purposely do not use extensions, in order to abstract the implementation language of the executable from the user? How the hell are you going to properly teach others…

https://github.com/torvalds/linux/tree/master/scripts

Re: GameShell: A game to learn or teach the Unix shell

#5
post #3

Maybe before starting to teach others, you should teach yourself how to cleanly package your software into OS packages, instead of peddling around MS-DOS style shell scripts with a .sh extension. Didn't anybody teach you that UNIX-like operating systems purposely do not use extensions, in order to abstract the implementation language of the executable from the user? How the hell are you going to properly teach others…

that's a pretty toxic attitude you have there...

Re: GameShell: A game to learn or teach the Unix shell

#6
post #3

Maybe before starting to teach others, you should teach yourself how to cleanly package your software into OS packages, instead of peddling around MS-DOS style shell scripts with a .sh extension. Didn't anybody teach you that UNIX-like operating systems purposely do not use extensions, in order to abstract the implementation language of the executable from the user? How the hell are you going to properly teach others…

I (25 years working with GNU/Linux) usually name my bash scripts `something.sh`. I think it's debatable wether it's always good or bad, and when specifically it can be a good idea to leave out the `.sh`.

Also, it doesn't look like you looked into the game and came out with some conclusions. It looks more like you superficially had a look, you had a thougt and rushed to comment here about what you believe is a deadly sin. I personally never enjoy this kind of comment, as there's not much thought behind them.

I tried it (before recommending to a teammate) and I also noticed some things that could be improved. But it never crossed my mind to post a judgement on the project after trying it out for just five minutes.

Re: GameShell: A game to learn or teach the Unix shell

#7
post #2

When I first started learning Unix -- way before Linux (I'm that old) -- there was a program called 'learn' that came with the OS. 'learn' taught you how to use the shell in a series of distinct lessons, each of which was capped off by an exercise in which you were dropped into a fake shell environment and instructed to achieve some task. Only by successfully completing the task (the program checked the state of the…

Interesting! Never heard about it. Can you give some sources or more info?

Re: GameShell: A game to learn or teach the Unix shell

#8
post #2

When I first started learning Unix -- way before Linux (I'm that old) -- there was a program called 'learn' that came with the OS. 'learn' taught you how to use the shell in a series of distinct lessons, each of which was capped off by an exercise in which you were dropped into a fake shell environment and instructed to achieve some task. Only by successfully completing the task (the program checked the state of the…

Interesting! Never heard about it. Can you give some sources or more info?

Google is your friend

https://www.unix.com/man-page/bsd/1/LEARN/

Re: GameShell: A game to learn or teach the Unix shell

#9
post #3

Maybe before starting to teach others, you should teach yourself how to cleanly package your software into OS packages, instead of peddling around MS-DOS style shell scripts with a .sh extension. Didn't anybody teach you that UNIX-like operating systems purposely do not use extensions, in order to abstract the implementation language of the executable from the user? How the hell are you going to properly teach others…

https://github.com/torvalds/linux/tree/master/scripts

I'm sure you'll be wholeheartedly welcomed if you submit a push request to fix this heretical use of suffix!

Re: GameShell: A game to learn or teach the Unix shell

#10
post #3

Maybe before starting to teach others, you should teach yourself how to cleanly package your software into OS packages, instead of peddling around MS-DOS style shell scripts with a .sh extension. Didn't anybody teach you that UNIX-like operating systems purposely do not use extensions, in order to abstract the implementation language of the executable from the user? How the hell are you going to properly teach others…

I find the use of a 'sh' file suffix a useful convention to follow in helping identifying what is an isn't a shell script on my local machine
Post reply on HN