My strategy is to read a pirated copy for 2-3 chapters and then decide whether I want to buy the book. It's similar to the 90s when I used to read volumes and volumes in a bookstore but only with enough money to buy one or two every quarter.
BTW I wish No Starch ships cheaper to Canada. It quickly adds up when I buy more. One of the best publishers out there I think.