P

PragDave

pragdave.blogs.pragprog.com · Personal blog · on HN since 2007

Dave Thomas, co-founder of the Pragmatic Bookshelf, writes about Ruby, programming practice, publishing, and occasional experiments such as his email one.

What HN saysHN links it for his Ruby 1.9 posts on procs and fibers, his email experiment follow-up, and his critique of overly natural-language DSLs.
22HN people shared it
7linked it in comments
20stories submitted
376story points
13 years agolast shared
2007people per year2026

Most-shared posts

  1. 1
    PragDave: Followup on the EMail Experiment
    2 people · 82 points · first shared 2011 · 27 comments on HN
  2. 2
    Pragmatic Bookshelf Royalty Rates
    2 people · 26 points · first shared 2009 · 2 comments on HN
  3. 3
    Natural language considered harmful
    2 people · 15 points · first shared 2008 · 1 comments on HN
  4. 4
    Twitter Should Move Away from Ruby
    2 people · 5 points · first shared 2009 · 5 comments on HN
  5. 5
    Pipelines Using Fibers in Ruby 1.9
    2 people · 2 points · first shared 2007 · discussion on HN
  6. 6
    Fun with Procs in Ruby 1.9
    2 people · 2 points · first shared 2008 · discussion on HN
  7. 7
  8. 8
    If you work for Apple, we need your help...
    1 people · 43 points · first shared 2008 · 16 comments on HN
  9. 9
    Fun with Ruby 1.9 Regular Expressions
    1 people · 8 points · first shared 2008 · 1 comments on HN
  10. 10
    A New PickAxe Book (featuring Ruby 1.9)
    1 people · 7 points · first shared 2007 · discussion on HN
  11. 11
    PragDave: Fun with Ruby 1.9 File Encodings
    1 people · 4 points · first shared 2008 · discussion on HN
  12. 12
  13. 13
    New lambda syntax in Ruby 1.9
    1 people · 2 points · first shared 2008 · discussion on HN
  14. 14
    Dave Thomas: Ruby 1.9... Right for You?
    1 people · 2 points · first shared 2007 · discussion on HN
  15. 15
    A subtle potential bug in most Rails applications
    1 people · 2 points · first shared 2012 · discussion on HN

What HN people wrote when they linked it

bradly · 2011-11-13
Dave just wrote a followup post that can be read here: http://pragdave.blogs.pragprog.com/pragdave/2011/11/followup-on-the-em…
compay · 2008-09-07
DSL's are great as long as you don't take them too far towards the "natural language" style of coding. For example, I find RSpec's story runner uncomfortable to work with because of the overly English-like syntax it uses. This blog post has some "before and after" code showing the same tests/specs implemented at unit tests, and as Rspec stories: http://evang.eli.st/blog/2007/9/1/user-stories-with-rspec-s-story-runn… To me the heavily DSL-oriented story code is easier to read as far as intent, but as a programmer trying to figure out what the code is actually doing, it's sort of a big WTF. Dave Thomas has an interesting writeup on "DSL's going too far" at: http://pragdave.blogs.pragprog.com/pragdave/2008/03/the-language-in.ht…
yebyen · 2013-08-06
Awesome! I was looking for this article about 12 months ago. Still just as useful to know today as it was then. For anyone who doesn't already know this inside and out, the tl;dr spoiler: the surprises are that procs do not even care how many arguments they are passed, and that they can return on behalf of the function in which they are executed. Compared to lambdas, which spew runtime errors if they don't get the right number of arguments passed in, and which always return control to the line after where they were executed, regardless of whether the return keyword is used. I'm reminded of the Dave Thomas pipelines using fibers series of articles. I'll just leave this here: http://pragdave.blogs.pragprog.com/pragdave/2007/12/pipelines-using.ht… http://pragdave.blogs.pragprog.com/pragdave/2008/01/pipelines-using.ht…
jamesbritt · 2011-01-03
It's very true. And if you decide to fork it than that's what you hear: "OMG, YOU CAN'T FORK RUBY. ARE YOU CRAZY? THAT WOULD BE TERRIBLE." Or not: http://pragdave.blogs.pragprog.com/pragdave/2008/12/forking-rubymy-rub…
rufo · 2009-05-06
Not anymore. http://pragdave.blogs.pragprog.com/pragdave/2009/05/amazon-tighten-the… To summarize: The price of e-mailing your Kindle is now 15c/MB, rounded up.
lukestevens · 2011-01-10
It means the money the publisher gets after the retailer takes their cut (which is usually 50%). Generally speaking, tech publishers have a sausage factory-like production line books get pushed through. There's editors, designers, marketing, and acquisitions people involved in taking the author's manuscript through to a finished product, so that's where the money goes. It also gets spent on all the dreck tech publishers (again, in general) pump out -- they work on a hits model, so they publish 20 books and hope one of them takes off. Their main function is to nag authors to get their work done. I've heard "[book] publishing is broken" over and again, and it's true. Tech publishers only pay peanuts, so authors get pushed to finish the book quickly (if they start at all), so the quality isn't very good, so people don't buy many books, so tech publishers can only afford to pay peanuts... Sadly, not much has changed for the major tech publishers since the late 90s at least, when Philip Greenspun wrote about his experience in 1997: http://philip.greenspun.com/wtr/dead-trees/story That said, there are publishers which give their authors a better deal -- Pragmatic Programmers for one (which Peter Cooper discusses -- see link in his comment), who pay 50% as discussed here: http://pragdave.blogs.pragprog.com/pragdave/2009/10/pragmatic-bookshel… . They may not do the same volume as the majors, but I doubt it's 5x less. Anyway, I agree it would be more healthy…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close