6 ms·
I just released an eBook about exceptions and failure handling in Ruby
- mossity 15y agois it too late to suggest an epigraph? "Ever tried. Ever failed. No matter. Try again. Fail again. Fail better." - Samuel Beckett
- telemachos 15y agoI'm loving the recent explosion in self-published books, but as a (general) request: they are so, so much more useful when they come in multiple formats (mobi, epub and pdf).
- hiperlink 15y agoWhat to say when comment upvote counts are gone. Can't upvote this enough. (For me, mobi prefered.)
- telemachos 15y agoMe as well. And pdfs tend to look/read very poorly on a Kindle (especially if they contain code blocks).
- jcoby 15y agoFWIW we (getdpd.com) totally agree and are working on adding this feature to our system soon. Vendors will be able to upload the file variants themselves or we will do the conversion on the backend.
- avdi 15y agoAs I'm usingn DPD for this book, I'm happy to hear that! P.S. Would you mind getting in touch with me? I have a script to share with you guys.
- molecule 15y ago+1 .mobi for kindle avdi: let me know if you'd like any help packing a .mobi, I'm working on a quick-tutorial post.
- avdi 15y agoAs I replied above, I'll probably work on Epub first because that's the format I got the most requests for when I did a survey. But after that I'd be happy to get some Mobi pointers. Email me!
- avdi 15y agoI'm gathering feedback on which format to work on next. So far the most-requested has been .epub.
- dpapathanasiou 15y agoIf you do go the epub route, let me know know if you're interested in trying eBookBurn.com (my startup's site), and I can issue you a promo code. You'll also get a .mobi version simultaneously.
- avdi 15y agoYes, please.
- peterarmstrong 15y agoIt's shameless self-promotion, but my startup Leanpub (http://leanpub.com http://leanpub.com) lets you write in HTML or Markdown, embed external code samples, save your files in Dropbox and produce PDF, EPUB and MOBI with one click. We sell all 3 formats, with automatic update distribution to existing readers when you publish a new version (so you can sell your book while it's in progress). You keep the rights to your book, etc.
- dpapathanasiou 15y agoGame on, my friend.
- StavrosK 15y agoUh... That's actually awesome. I'll start writing a book now, and that's where I'll publish it.
- peterarmstrong 15y agoGreat! Let me know how it's going, and if there's anything you need us to improve...
- StavrosK 15y agoI definitely will! Right now I just wish you supported LaTeX, though.
- avdi 15y agoThat sounds super cool. I'm gonna check it out.
- preek 15y ago"Check out the talk that that inspired the book" <- Find the the redundancy.
- preek 15y agoNow, if pointing out syntax errors on a commercial frontpage doesn't help the author, then I don't know, guys.
- lucraft 15y agoJust read the sample pages and already learned something I am going to start using.
- thmzlt 15y agoHere are the slides from the presentation on the same topic given by Avdi. http://avdi.org/talks/exceptional-ruby-2011-02-04/ http://avdi.org/talks/exceptional-ruby-2011-02-04/
- SpiralLab 15y agoSaw Avdi do this talk at Magic Ruby. It was really nice, and in depth, and answered quite a few questions. I bet the book is well worth the money.
- listrophy 15y agoAfter seeing Avdi talk about this at Ruby on Ales, I've started using `fail` almost exclusively instead of `raise.` It's the little things.
- umjames 15y agoI quick check of the Ruby documentation (http://www.ruby-doc.org/core/ http://www.ruby-doc.org/core/) suggests that raise and fail are the same method. Is there an actual difference between these methods?
- avdi 15y agoNope! It's strictly a style issue. As I explain in the video (or the book if you buy it), as a result of a conversation with Jim Weirich I'm starting to use "fail" once again.
- zizzler 15y agoBought the book, found out Ruby has retry. Money well spent.
- codenerdz 15y agoWow, the timing could not be more perfect as Im trying to deal with a validate_uniqueness race condition :)
- codenerdz 15y agoP.S. Just for that, im buying the book...
- tomfakes 15y agovalidate_uniqueness is a system that is completely broken once you have more than 1 ruby process running against the same database. It just can't work the way you want it to. You must add constraints to the database and handle the resulting exceptions to ensure unique values. They really need to kill validate_uniqueness since it is so totally broken
- bstar 15y agoThanks zizzler, now I don't need to buy the book ;-)
- pbreit 15y agoAnything like this for Python?
- jrockway 15y agoI want to read this book because I'm curious as to how you can stretch this topic beyond two pages. But I don't want to pay $15 for that. Any ideas?
- psyklic 15y ago"I think your book is crap. Give it to me for free?"
- jrockway 15y agoNot what I said at all. I am honestly intrigued, but not because I care about Ruby.
- newtonapple 15y agoThe sample has more than two pages: http://exceptionalruby.com/exceptional-ruby-sample.pdf http://exceptionalruby.com/exceptional-ruby-sample.pdf
- avdi 15y agoThere's a video on the site of the conference talk that spawned the book, if that helps.