Live data from Hacker News

At full speed with Python: a book for self-learners

github.com

11–20 of 53 posts

Re: At full speed with Python: a book for self-learners

#11
post #3
post #2

PDF is terrible to read in a Kindle. This book would be much more valuable in a ebook format. Every time I tried to generate mobi files from Tex they were terrible formatted. O'Reilly does it fine with some open source books, but I've never managed to do it myself. Are the good publishing tools for ebooks just avaiable for specialized publishers? Which techniques do you have to convert these Tex books to mobi (the Ki…

If enough people are interested, i may try to do something with pandoc to generate an ebook!

Definitely.

Re: At full speed with Python: a book for self-learners

#12
post #2

PDF is terrible to read in a Kindle. This book would be much more valuable in a ebook format. Every time I tried to generate mobi files from Tex they were terrible formatted. O'Reilly does it fine with some open source books, but I've never managed to do it myself. Are the good publishing tools for ebooks just avaiable for specialized publishers? Which techniques do you have to convert these Tex books to mobi (the Ki…

I've had mixed results using Calibre (https://calibre-ebook.com/).

In all, I've converted 3 PDFs to Kindle format -- one is OK, one is a slog to read, and the third I forgot I was reading a converted version. Have never tried using it to convert a LaTeX-generated document of my own, though.

Re: At full speed with Python: a book for self-learners

#13
"become familiar with Python's syntax in two weeks and are able to implement a distributed client-server application with sockets in the third week" are there plans to extend the book to include the design of the distributed Client-Server Application?Would be super intrigued.

Re: At full speed with Python: a book for self-learners

#17
post #2

PDF is terrible to read in a Kindle. This book would be much more valuable in a ebook format. Every time I tried to generate mobi files from Tex they were terrible formatted. O'Reilly does it fine with some open source books, but I've never managed to do it myself. Are the good publishing tools for ebooks just avaiable for specialized publishers? Which techniques do you have to convert these Tex books to mobi (the Ki…

Pandoc[1] should do it for you. Running this -- from the root of the cloned project -- produced decent output for me:

  pandoc \
  	book.tex \
  	chapters/basic-datatypes.tex \
  	chapters/classes.tex \
  	chapters/dictionaries.tex \
  	chapters/functions.tex \
  	chapters/installation.tex \
  	chapters/introduction.tex \
  	chapters/loops.tex \
  	-o full-speed-python.epub
(you may replace .epub with .mobi to get that file format, but it seems to not support TeX math properly)

[1]: https://pandoc.org/MANUAL.html

Re: At full speed with Python: a book for self-learners

#18

I've included a pandoc generated epub and it seems ok on my computer, would anyone be able to test it on a epub device to see if it works ok? https://github.com/joaoventura/full-speed-python/releases/

Looks good on my MBP. Thanks for sharing!

Re: At full speed with Python: a book for self-learners

#20
Well done, very well written!

Be aware that the approach this book takes has its own type of target audience. I guess the audience that will like this book/tutorial are the kind of people that will usually just read the entire reference manual of anything to see what's in their toolbox before actually starting to build something. So by reading it, you help them as a guide to work through it, choosing the parts of the language that are best learned first. After following the exercises, the reader can already build some programs using those concepts, whatever it might be, leaving it to their own imagination.

The other type of audience, which this book might be less suited for, is people who get bored after chapter 1, thinking "I want to build something fun now already!". Those might be better served by a tutorial like "we're building a XYZ game", explaining concepts along the way.

Both are good, both are needed.

I'm one of the first type of people, so I'm really happy to see this kind of book. The second type of tutorials only give me fragments of information if I follow it building that XYZ game, while I have my own idea of what to build, and just want to learn how those lists and dictionaries work when I discover I need them. ;-]

Post reply on HN