Exceptional Ruby

Exceptional Ruby Writing Code That Works Is Hard Writing Code That Handles Unexpected Errors And Still Works Is Really Hard Most Of Us Learn By Trial And Error This Short Book Removes The Uncertainty With Over 100 Pages Of Content And Dozens Of Working Examples, You Ll Learn Everything From The Mechanics Of How Exceptions Work To How To Design A Robust Failure Management Architecture For Your App Or Library Whether You Are A Ruby Novice Or A Seasoned Veteran, Exceptional Ruby Will Help You Write Cleaner, Resilient Ruby Code. Great book Here are my quizz notes What is the diff bt raise and fail no diff Are raise fail ruby keywords or methods Kernel raise are methods Re raise last exception With no arguments will re raise exception in If nil then RuntimeError note value is nil initialized as soon as the begin..rescue.end block terminatesraise What is the third argument of raise and give an example of what to put there the backtrace, use for example Kernel caller What is catch th Great book Here are my quizz notes What is the diff bt raise and fail no diff Are raise fail ruby keywords or methods Kernel raise are methods Re raise last exception With no arguments will re raise exception in If nil then RuntimeError note value is nil initialized as soon as the begin..rescue.end block terminatesraise What is the third argument of raise and give an example of what to put there the backtrace, use for example Kernel caller What is catch throw used for not related to exceptions, catch throw allows you to quickly exit blocks back to a point where a catch is defined for a specific symbol Diffs bt redo vs retry Both ruby keywords are used to re execute parts of a loop but redo only repeats the current iterationretry repeats the whole loop from the start in 1.8 but in 1
Great book to read in a Weekend You might have seen some concepts and some tools however, it totally worth reading. I learnt several Ruby specific things from the book fail is just alias for raise use raise as default value when key is expected it is possible to include module in error and then rescue by module.There were some general things, but they better covered in referenced books. It s a good book It is easy to read and Avdi explain ruby exceptions in depth I ve learned a lot about it and there are many things I didn t know exists.I ve missed an good index for the pratices shown in the book, like a resume of the patterns presented with code samples. Great book, great insights, it was a good weekend read A few bright moments, some neat tricks good enough for a lengthy blog post I ve expected either a bitdepth or better tips for error handling beyond common sense, maybe even both. If you are a long term Rubyist, you probably know Avdi Grim and his writings This little book covers a topic that lots of programming books just gloss over or skip altogether, exceptions It s a thorough wrap up of everything Rubyists should know about exceptions
Worth reading and interesting stuff in here I had been expectingof what was in the last section, which is higher level exception handling strategy, vs a lot of detail into all the weird things you could do to mess with how Ruby exception throwing
Rather than a deep dive under the hood of Ruby s exceptions, I was hoping forof a surface level, practical guide to how and when to use exceptions in Ruby especially in Rails apps It does cover that side a bit, but only at the end For me, most of the content in the book was interesti
Straight to the point and even humorous There were a few code samples that were wildly unfamiliar, so it took some time to figure those out, but otherwise I did learn a whole lot about exceptions in particular is pretty cool, and I don t think I ve seen it anywhere before.