I learned C by going through the FreeBSD code and helping with POSIX compliance. For fun I would implement a lot of the commands in Python. You get the most out of learning both the language and UNIX by implementing all the command line options.
Learn a Programming Language Faster by Copying Unix
31–40 of 110 posts
Re: Learn a Programming Language Faster by Copying Unix
#32For a purely functional language like Haskell, this would not be a very good advice. Any kind of I/O would involve monads and other imperative constructs. Better implement an algorithm involving trees or graphs to better appreciate a functional language.
Re: Learn a Programming Language Faster by Copying Unix
#33Re: Learn a Programming Language Faster by Copying Unix
#34Your ruby version of cat implements none of the command line switches. I learned C by going through the FreeBSD code and helping with POSIX compliance. For fun I would implement a lot of the commands in Python. You get the most out of learning both the language and UNIX by implementing all the command line options.
Re: Learn a Programming Language Faster by Copying Unix
#35Your ruby version of cat implements none of the command line switches. I learned C by going through the FreeBSD code and helping with POSIX compliance. For fun I would implement a lot of the commands in Python. You get the most out of learning both the language and UNIX by implementing all the command line options.
Re: Learn a Programming Language Faster by Copying Unix
#36Your ruby version of cat implements none of the command line switches. I learned C by going through the FreeBSD code and helping with POSIX compliance. For fun I would implement a lot of the commands in Python. You get the most out of learning both the language and UNIX by implementing all the command line options.
Re: Learn a Programming Language Faster by Copying Unix
#37I'll also be writing some other utilities! :)
Re: Learn a Programming Language Faster by Copying Unix
#38Re: Learn a Programming Language Faster by Copying Unix
#39http://www.haskell.org/haskellwiki/Simple_unix_tools
Re: Learn a Programming Language Faster by Copying Unix
#40Heh. I've been doing something similar. In my free time, I've been actually re-implementing the `tree` command (with most of the switches as well) in Python. I'll also be writing some other utilities! :)
Share the code with me if you feel like it. My GitHub is https://github.com/rodrigoalvesvieira and my email is rodrigovieira1994 [at] gmail [dot] com