News for hackers. Stuff that matters.
Re:Show HN: I wrote a book about Debugging CSS by abhinav22 on Saturday December 12, 2020 @12:33PM (#25399922)
This looks very interesting. Out of curiosity how did you typeset / format the book? It looks gorgeous! Was it in HTML/CSS? In which case I assume you are using Prince XML I guess since you got the pagination just right.

Separately on topic, CSS debugging is a hard thing to put in book form, and there is a lack of materials on the web on CSS (stack overflow which is usually great for programming languages, is not as good for front end design in my opinion), so for those learning CSS, or aspiring to be web developers, this could be a great starting resource.

Re:Show HN: I wrote a book about Debugging CSS by systemvoltage on Saturday December 12, 2020 @01:27PM (#25400310)
I disagree, the typesetting is too fluffy. Very little information on a page and turning pages is laborious, and you lose context. Why are the margins so massive? People have forgotten why margins were created and what they're used for (Accounting for spine, holding the book without obscuring the text). We don't have such restrictions on digital books. A professional typesetter from Springer or Oreilly would have many things to say.

Here are some examples from Springer's text books (Note, they're meant to be printed so the margins are set accordingly):

TOC: https://i.imgur.com/gREO73C.png

Content: https://i.imgur.com/1zFmWgV.png

Re:Show HN: I wrote a book about Debugging CSS by atian on Saturday December 12, 2020 @01:39PM (#25400395)
Seconded. It's a bit difficult to consume, however I trust the author in his CSS debugging skills as presentation looks great.
Re:Show HN: I wrote a book about Debugging CSS by abhinav22 on Saturday December 12, 2020 @05:50PM (#25402542)
Indeed :D Otherwise it wouldn’t be easy for him to sell a book on CSS! Very good implicit marketing strategy for a CSS book
Re:Show HN: I wrote a book about Debugging CSS by abhinav22 on Saturday December 12, 2020 @05:42PM (#25402490)
The example you shared is also very well done.

However in defense of the main book of this thread - the style of its formatting I think is well suited for web developers and the like, having less information on the page makes the problem a bit less daunting for beginner readers.

It also increases the page count, which is a good marketing strategy for the publisher. I think most ebooks in general, particularly in web dev space, are void of quality content; so while I completely understand and see your perspective, I think in the context of what is out there, this book is a good effort.

I personally would also write a more condensed guide (actually I did :D see here: https://github.com/ashok-khanna/common-lisp-by-example), but that’s just you and me having similar style choices :)

I need to copy that springer style, it’s beautiful too!

Re:Show HN: I wrote a book about Debugging CSS by systemvoltage on Sunday December 13, 2020 @03:26AM (#25405141)
That lisp book is very well put together and looks nice.
Re:Show HN: I wrote a book about Debugging CSS by ofrzeta on Saturday December 12, 2020 @01:43PM (#25400422)
No hyphenation makes for suboptimal layout (whitespace).
Re:Show HN: I wrote a book about Debugging CSS by abhinav22 on Saturday December 12, 2020 @05:49PM (#25402535)
I hear this a lot, but how significant do you think the impact is? I haven’t thought of this as an issue but am open minded to change my view.
Re:Show HN: I wrote a book about Debugging CSS by ofrzeta on Monday December 14, 2020 @03:27AM (#25414723)
It's quite significant because as you can see in the sample without hyphenation you get quite a lot of whitespace between words which makes the text hard to read and also look unbalanced because the length of the whitespace varies a lot between different lines.
Re:Show HN: I wrote a book about Debugging CSS by cambalache on Saturday December 12, 2020 @01:00PM (#25400123)
Seconded.

I have tried many options (Paged.js, github books,rdoc,pandoc) and I have never been satisfied with any of them, the process is either very complicated or the books look like crap.

Re:Show HN: I wrote a book about Debugging CSS by abhinav22 on Saturday December 12, 2020 @05:45PM (#25402511)
I had this epiphany recently. Only Prince works well and prince requires payment for commercial use. The rest are terrible!

BUT what I realize is my old friend Latex. I’m reverting back to that now, and trying to build a bridge between HTML/CSS and Latex.