Holy crap this looks amazing. The book code appears to be on a repo, and if people notice something wrong they appear to fix it. The HTML is fully free, but if you want you can purchase a epub/PDF for only THREE DAMN DOLLARS! I don't know why buying both costs five, but still.
Anyone have an opinion on the books for Ruby and Python? Oh wait, his Python is for the old 2.XX version and not the newer 3.XX version, damn.
If you are learning Python, I would still go for the 2.x.x version... It's still more widely used then 3 and you should be well prepared for the changes in 3 after learning 2.
This sort of advice is precisely why 2.x is more widely used than 3.x. Dammit, people, start writing things in 3.x and backport to 2.6, 2.7 so we can finally move on with our lives!
This is why having Rails around is great for the Ruby community. New version of Ruby comes out, Rails core team says "the next version of Rails will only support new version of Ruby or higher", adds a bunch of deprecation warnings, and everyone either gets off their asses and updates their gems or new gems pop up to replace them.
I agree with you, but as someone who writes in Python every day, I exclusively write in Python 2.7 because many, many of the libraries I rely on are still written for 2.x. I am not going to port those libraries myself. I am going to use the best tool for the job, and for now that is still 2.7. Python 3 is overall a better language, but the disadvantages of the unsupported libraries outweighs the advantages of the wart removals and feature additions.
It's certainly good for everyone, including beginners, to know most of the changes in Python 3 though, and they should know how to read, write, and modify Python 3 code.
14
u/TikiTDO Feb 24 '13
http://ruby.learncodethehardway.org/