News for hackers. Stuff that matters.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by insertnickname on Monday April 11, 2016 @10:05AM (#11471525)
Why not XML? XML was made for documents, they were writing a document.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by Sharlin on Monday April 11, 2016 @10:23AM (#11471667)
XML may have been made for documents but it is certainly one of the worst language families ever for actually typing documents by hand.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by tptacek on Monday April 11, 2016 @11:13AM (#11472030)
You don't have to write the XML tags while you type. The hardest part about writing long-form technical prose is writing long-form technical prose. You can concentrate on getting that right, in the editor of your choosing, using placeholders for diagrams and layout elements. Then, in a second pass, mark the text up.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by clebio on Monday April 11, 2016 @12:30PM (#11472755)
Indeed. And it's odd no one's mentioned Pandoc yet.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by vbezhenar on Monday April 11, 2016 @11:00AM (#11471935)
Millions of websites are made with writing HTML by hand and it's certainly not that bad.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by insertnickname on Monday April 11, 2016 @10:29AM (#11471695)
What would you use instead that would allow you to define your own markup? LaTeX? \em{Hello} isn't much better than <em>Hello</em>.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by zeveb on Monday April 11, 2016 @11:16AM (#11472051)
Sure, a single small example looks almost (but not quite) as bad, but in larger texts LaTeX is basically the text-you're-writing, plus some control stuff, whereas XML interferes with everything.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by Tomte on Monday April 11, 2016 @10:40AM (#11471766)
On non-English keyboards it is even worse.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by jdeisenberg on Monday April 11, 2016 @10:49AM (#11471833)
Also, XML + XSLT gives you the capability to easily transform your original to other formats.
Re:Brian Kernighan on the Typesetting of “The Go Programming... by girzel on Monday April 11, 2016 @10:09AM (#11471554)
For an actual typing-on-the-keyboard format, it seems like almost anything would have been better, particularly given the number of markup languages that can translate trivially into XML.

I may have misunderstood -- he was actually typing in XML tags as he wrote the book, right?

Re:Brian Kernighan on the Typesetting of “The Go Programming... by rsc on Monday April 11, 2016 @10:21AM (#11471652)
Yes, they did. I saw the XML and it didn't look much different from well-written HTML. The amount of markup you need for a book is fairly minimal: h1, h2, p, b, i, c (code font), ix (index entry). Think of it as a customizable HTML.