News for hackers. Stuff that matters.
Re:The Tools I Use to Write Books (2018) by WoodenChair on Wednesday May 18, 2022 @04:03PM (#31427007)
I've written 4 technical books including the Classic Computer Science Problems Series (https://classicproblems.com). I agree with what Thorsten said at the end—none of this really matters—or it's marginal at most. Most people who say they want to write a book lack the motivation to do it. It's not the tools getting in the way.

Apress used Word templates back in 2013 when I did my first book with them. Manning let you use asciidoc or Word templates when I worked with them. I wrote my first book with them in markdown and translated to asciidoc using pandoc. There were so many formatting issues and I found the tools for asciidoc so immature that I ultimately went to using their Word templates on my next two books with them despite preferring purely text formats.

Now I'm working on my next book and I think I'm going to try self publishing. I'm liking leanpub's use of a markdown like format. But again none of this really matters. You can fix formatting later. You have to sit down and write!

PS Thorsten's "Writing an Interpreter in Go" is great: https://amzn.to/3yLTJjE

Re:The Tools I Use to Write Books (2018) by mprovost on Wednesday May 18, 2022 @05:36PM (#31427984)
Totally agree about not obsessing over tools. That's an easy rabbit hole to go down and distract yourself from producing the actual content of the book. I deliberately chose to use Google Docs because the formatting options are so limited. But I also found it motivating to have a WYSIWYG interface so it felt like I was looking at something resembling the finished product.

In the end gdocs turned out to be a great choice because it's so easy to collaborate. All of the articles talking about markdown seem to assume that you're the only person that's going to work on it, or that everyone else is going to figure out this diagram and your git workflow. It's so easy to email someone a link and let them comment on it, or suggest edits.

For producing the final PDF I found a plugin that embeds the doc directly from Google into InDesign so I can typeset it into something that looks pretty great. Then I just upload the PDF to Leanpub.

The tool that had the biggest impact though was Beeminder, which has a hook into Docs and measures your progress by counting the number of words in the book every day. If you don't make progress you have to pay! It's a great way to make yourself accountable. I kept a 100+ day streak for the final push.

Re:The Tools I Use to Write Books (2018) by humps on Wednesday May 18, 2022 @05:21PM (#31427833)
For my pixel art book with No Starch, they insisted on Word templates and it worked out well for a couple of reasons. The first being because their editing team was so used to using the template for feedback. It was easier for me to adapt to the publisher than the other way around, and the whole process was smoother and quicker.

The second reason was to do with a change in format as the book was nearing completion. It's aimed at kids (8+) and adults, but we decided having an open and lay flat printed edition made the most sense because it makes following the tutorials easier. This resulted in the layout needing to be tweaked for a couple of hundred pages, which the publisher handled because we used their template system.

So while it may be annoying for a writer to have to change their methods, it can save you a hell of a lot of work because things change unexpectedly (and in my case for the better).

Re:The Tools I Use to Write Books (2018) by madsravn on Tuesday May 24, 2022 @06:17AM (#31490159)
A pixel art book - that sounds very interesting! What's the title?
Re:The Tools I Use to Write Books (2018) by syl_sau on Thursday May 19, 2022 @04:34AM (#31432127)
Obsession over tools, and the more trendy obsession over productivity ("My secret to be 10x more productive!!") ultimately seem tautological in the end: most people hooked up on these techniques will never stop talking about it, and sometimes even write books on the topic. Take the 2 most well-known authors on these topics: Tim Ferriss and Cal Newport. And look at their list of published works.

I've only very rarely seen actually productive people talk about the way they do things -- probably because they know there isn't a one technique, and have tailored their own things to themselves entirely. Balzac used debt to keep motivation alive, Hemingway wrote while standing up and used the counter of his chimney -- who cares?

Re:The Tools I Use to Write Books (2018) by srvmshr on Wednesday May 18, 2022 @04:42PM (#31427376)
I just wanted to add that I really liked your 'Classic CS Problems in Python' book. I found it much better than following university course notes (e.g. CS 61 A/B etc).
Re:The Tools I Use to Write Books (2018) by WoodenChair on Wednesday May 18, 2022 @06:26PM (#31428409)
Thanks so much. Really appreciate it. Hearing anecdotes like that makes writing worthwhile.
Re:The Tools I Use to Write Books (2018) by tunesmith on Wednesday May 18, 2022 @06:45PM (#31428571)
As a counterpoint, I'd wanted to write a book for years, and felt overwhelmed by the production process. asciidoc, docbook, word, it's kind of overwhelming. After I finally put together a good markdown->pandoc->latex->KDP flow, it was a huge relief, and I've printed two books since then (one by me, one by me and some co-authors). It's super-fun to receive an author proof in the mail and it motivates me to write more.
Re:The Tools I Use to Write Books (2018) by __mharrison__ on Thursday May 19, 2022 @12:38AM (#31430840)
Are your tools publicly available. I've created over a dozen books using my rst-based tools. But I'm planning on using on markdown and pandoc (plus custom filters). (Just write a filter to handle LaTeX index entries).
Re:The Tools I Use to Write Books (2018) by crvdgc on Wednesday May 18, 2022 @09:42PM (#31429752)
I bought books from leanpub.com, and they could really improve their PDF generation.

In Markdown, there's no concept of pages. So you can get one row in a table get pushed to the next page and the rest of the page is blank, even there are contents after. Generating PDF with pandoc will usually take care of this through LaTeX, but I don't think leanpub is doing that.

Re:The Tools I Use to Write Books (2018) by OliverJones on Thursday May 19, 2022 @05:42AM (#31432515)
You and Torsten are right. Write the freakin' book. Write the next page or two before knocking off for the night. The tools don't matter as long as you and/or an editor can polish the work and then mung it as needed for publication. But that's for later, once the book is written. Tools are distractions. They give you an excuse not to write the next page. Write the book.

That being said, Markdown + git are a really nice combination.

May your mind be focused and your sitting-upon body parts be made of iron.

Re:The Tools I Use to Write Books (2018) by rg111 on Thursday May 19, 2022 @08:04AM (#31433412)
Unrelated, but I read much of your Classic Computer Science Problems in Python.

And it is really a great book. Especially suitable for people in junior roles right now or people in any kind of role with a knack for solving interesting problems.

Re:The Tools I Use to Write Books (2018) by WoodenChair on Thursday May 19, 2022 @08:09AM (#31433458)
Thanks a lot. Appreciate the kind words.
Re:The Tools I Use to Write Books (2018) by mdaniel on Wednesday May 18, 2022 @04:25PM (#31427206)
Re:The Tools I Use to Write Books (2018) by littleweep on Wednesday May 18, 2022 @04:42PM (#31427366)
Curious, what are your habits for writing a book?
Re:The Tools I Use to Write Books (2018) by WoodenChair on Wednesday May 18, 2022 @10:11PM (#31429914)
- I do the code first (generally) before the writing.

- I try to do drafts of whole chapters at once, even if it’s an all nighter.

- I reread the chapter over and over again at every review stage.

- As many say to be a good writer you have to be a good reader. I read a lot.

- I get it done. I hear about people spending years on books. I keep it succinct and to the point. Most readers appreciate that. I never miss a deadline. I write in weeks what I hear about others writing in months. To be fair, I’m privileged that my job as a professor at a teaching college allows for this (over the summer for example).

Re:The Tools I Use to Write Books (2018) by littleweep on Thursday May 19, 2022 @10:54PM (#31442838)
Thank you for sharing.