News for hackers. Stuff that matters.
Re:How to write a programming book by throwaway_pdp09 on Saturday May 23, 2020 @08:15AM (#23282289)
This would be interesting if I could read it. Would it be possible to display text without enabling JS?

I have read several IT books recently and they aren't good. Basic stuff like visibility of diagrams, presenting advanced subject matter but also supposedly in a way that will teach you programming, or having pages of code to illustrate something trivial.

Re:How to write a programming book by dorkwood on Saturday May 23, 2020 @10:29AM (#23283211)
Someone needs to make a Hacker News bingo card. "Doesn't work with JS disabled" would definitely be on there.
Re:How to write a programming book by throwaway_pdp09 on Saturday May 23, 2020 @11:13AM (#23283569)
Along with "you need JS for the modern web"
Re:How to write a programming book by clarry on Saturday May 23, 2020 @05:53PM (#23286866)
"it's just text and images"
Re:How to write a programming book by aqui_c on Saturday May 23, 2020 @11:07AM (#23283528)
I'm working on that. I just used a stock template for the website.
Re:How to write a programming book by carapace on Saturday May 23, 2020 @12:08PM (#23284058)
Cheers! Much appreciated. :-)
Re:How to write a programming book by dkersten on Saturday May 23, 2020 @01:33PM (#23284780)
The low contrast text is also really hard to read.
Re:How to write a programming book by JadeNB on Saturday May 23, 2020 @09:07AM (#23282605)
> Would it be possible to display text without enabling JS?

No, because then how would it set up pullquotes like "If you don't set a baseline somewhere, you risk starting a book that grows backward" that you can tweet at the push of a button? (Is that really a thing? I guess it must be somewhere, but it's new to me on a (I guess) programmer's blog.)

Re:How to write a programming book by chrisa on Saturday May 23, 2020 @09:13AM (#23282655)
You can't actually send a tweet at the push of a button (unless you're connected with twitter oauth with the right permissions), but what you can do (and that button does) is opens the tweet composer pre-filled with the quote, ready for you to then just hit "Tweet"
Re:How to write a programming book by qznc on Saturday May 23, 2020 @02:47PM (#23285373)
I used to do that on my blog. Example: http://beza1e1.tuxen.de/team_building.html

Stopped doing it as I got negative feedback about it being annoying. I never tracked how many tweets I get out of it though. So if you aim for popularity (unlike me) it might still be worth it.

It was one of the big reasons I used RestructuredText as markup language for my static website generator. It is extensible enough to make these tweet-blocks with just:

    .. tweetable :: Psychological Safety is THE core factor for Great Teams says Google
Re:How to write a programming book by aqui_c on Saturday May 23, 2020 @11:06AM (#23283520)
They are just links to Twitter, no JS involved on those fragments.
Re:How to write a programming book by carapace on Saturday May 23, 2020 @12:07PM (#23284053)
Yeah, I'm getting pretty sick of sites that want to run JS to show static content.