3 ms·
Want HN: Open eBook reader & format designed for programming books
Like many people on HN, I go through several programming books per year. Short blog tutorials on specific topics are nice but nothing beats 150pp+ books that go into depth on certain topics.
Despite their utility, I can't help but wonder why there is nothing that you could call state of the art in programming eBooks. The best I've seen is Eloquent Javascript by Marijn Haverbeke, which includes a built in console that allows REPL-like control of the code samples in the book.
It would be awesome if you had features like:
(1) Syntax highlighting. Bonus points if it supports standard color schemes that can be set in the eBook reader. Syntax highlighting makes code so much easier to read and understand quickly. If your eyes are used to the light on dark themes, most programming books are painful to read with their black on white code samples.
(2) Git/github integregation that permits 1-click forking of the book's source code to your account so you can try out and modify the exercises in a book, maybe even allowing branching of exercises so you can experiment at will.
(3) Built in REPL support that allows you to reset the REPL and "play" code samples in their entirety or up to a certain line in the sample and then freely code thereafter.
Ultimately, it would be great to have an eBook format that would be extremely useful on tablet devices, so you could conveniently learn new concepts on your commute or while sitting on your couch without having to bust out your laptop and set up an entire environment that is probably better suited for productivity in building something than learning.
I'm sure there are plenty of other features that could make programming ebooks much better and I'd love to hear from others on HN on what they would find useful.
Maybe someone looking for a Bret Victor "Inventing on Principle" opportunity will feel inspired by the ideas of others on here.