{read online} Eloquent Ruby Author Russ Olsen – Intimatenights.co.uk

Eloquent Ruby Was it easy to read Yes What I liked about it How easy to read it was It was supposed to be a technical book I ve read for work, but I had a complete blast reading it I m utterly amazed how witty and skilful writer the author is Plus the book was really useful and good at explaining the basics Before getting to the book I ve read few online tutorials, watched some Pluralsight courses and I think the book really crossed all the t s and dotted all the i s for me What I disliked The chapter Was it easy to read Yes What I liked about it How easy to read it was It was supposed to be a technical book I ve read for work, but I had a complete blast reading it I m utterly amazed how witty and skilful writer the author is Plus the book was really useful and good at explaining the basics Before getting to the book I ve read few online tutorials, watched some Pluralsight courses and I think the book really crossed all the t s and dotted all the i s for me What I disliked The chapter about RSpec was a little outdated e.g all examples were in should syntax If any of my friends asked me if Eloquent Ruby was a good way to start their journey with Ruby, I d rather say no This book starts really innocently, with explanations of many subjects commonly considered as easy It gives a good insight about Ruby, how ceratain features of both Ruby and Rails and manylive examples are mentioned as well work It also focused in introducing blocks, procs and other Ruby related subjects.But starting from somewhere around middle of the book, every ne If any of my friends asked me if Eloquent Ruby was a good way to start their journey with Ruby, I d rather say no This book starts really innocently, with explanations of many subjects commonly considered as easy It gives a good insight about Ruby, how ceratain features of both Ruby and Rails and manylive examples are mentioned as well work It also focused in introducing blocks, procs and other Ruby related subjects.But starting from somewhere around middle of the book, every new paragraph brings new at least for me at the time knowledge related to Ruby, which in my belief is good to know to expand your horizons and have general understanding how things work like methodmissing , but in the same time, introduced to regular Rails projects would be a nightmare for even me to debug in few months time without putting comments above the snippets of code that were put there to define methods dynamically for instance This feeling may be caused by the fact, that maybe I just haven t encountered any situation that would need implementing features in described way yet I think I will be able to confront this point of view in the future Same goes for monkey patching it s good to know it exist and in case of a fire do some hand patches of failing methods, but lot of sources treat it as a code smell.In overall, I feel I ve learned a bunch of new things, refreshed some knowledge and made the whole Ruby foundationssolid I could completely agree with the Author, that this is not a book to be read once and then put on a shelf Going back to some of the marked chapters would defenitely be helpful and will give manyinsights about what s Ruby really about in fact the book will stay the same, only our knowledge and point of view are the factors that are gonna change Just finished this the first programming book I ve ever read from start to finish Russ Olsen does an amazing job making the subject interesting and digestible As I got through the Metaprogramming chapters I really started feeling like I was getting it like I was leveling up my skills.Can t wait to put some of these new concepts and tricks into practice. Amazing book about the Ruby language It covers almost everything about the language in a very concise way It is great both for beginners and for people who already have experience with Ruby. This book is a true gem Mostly written for people coming to Ruby from other programming languages, Russ Olsen doesn t dwell on banalities, but instead teaches you good, idiomatic Ruby The presented material is excellent and the writing is witty and clever If you are new to programming this is probably not the best book for you, but if you have experience in some other language or just want to getfluent in Ruby, Eloquent Ruby is hard to beat. 121 First, each method should do a single thing focus on solving a single aspect of the problem By concentrating on one thing, your methods are not only easier to write, they are also easier to understand.Second, each method needs to operate at a single conceptual level Simply put, don t mix high level logic with the nitty gritty details A method that implements the business logic around, say, currency conversions, should not suddenly veer off into the details of how the various accounts ar 121 First, each method should do a single thing focus on solving a single aspect of the problem By concentrating on one thing, your methods are not only easier to write, they are also easier to understand.Second, each method needs to operate at a single conceptual level Simply put, don t mix high level logic with the nitty gritty details A method that implements the business logic around, say, currency conversions, should not suddenly veer off into the details of how the various accounts are stored in a database.Finally, each method needs to have a name that reflects its purpose Nothing new here we have all heard endless lectures about picking good method names The time to listen to all of that haranguing is when you are creating lots of little methods that you are trying to pull together into a functional whole Done right, the method names guide you through the logic of the code 130 So when you say this sum first secondWhat you are really saying is sum first second The second expression sets the variable sum to the result of calling the method on first, passing in second as an argument Other than being a strange looking method name it is, however, a perfectly good Ruby method name , the second expression is a simple assignment involving a method call 132 The not operator, along with and, or and , are built in to Ruby, and their behavior is fixed The best Ruby book I ve read so far Probably suits best for intermediate Ruby developers wanting to learn bits about implementing DSLs, metaprogramming, enumerators and just plain old object oriented Ruby Chapter about regular expressions explained the stuff better than many regexp books do Very, well, written. This is a very good book on what is a rather difficult topic The idea of eloquence is broad and opinionated and at first I thought the author was going to be covering very basic stuff that was easy to pick up Early on there were a lot of best practices that it didn t seem like you could even learn Ruby without absorbing at some point And the contrived, but of course example seemed like it might be too broad and vague to hang your hat on.A lot of tech books are content to rehash basic do This is a very good book on what is a rather difficult topic The idea of eloquence is broad and opinionated and at first I thought the author was going to be covering very basic stuff that was easy to pick up Early on there were a lot of best practices that it didn t seem like you could even learn Ruby without absorbing at some point And the contrived, but of course example seemed like it might be too broad and vague to hang your hat on.A lot of tech books are content to rehash basic documentation with contrived examples, and it s not really very helpful The argument is often we want the reader to be able to use this as a reference But this work manages to take its example a document storage system and apply it throughout in a way that, yes, you could jump around or go back to a particular chapter for reference purposes, but it also feels like it builds as you go By the end, I felt enriched in terms of my under the hood understanding of Ruby.I also feel like Ruby is way too cute and subtle for its own good, but that s not the author s fault It s easy to write correct Ruby code, but to gain the fluency needed to write great Ruby code, you must go beyond syntax and absorb the Ruby way of thinking and problem solving In Eloquent Ruby,Russ Olsen helps you write Ruby like true Rubyists do so you can leverage its immense, surprising power Olsen draws on years of experience internalizing the Ruby culture and teaching Ruby to other programmers He guides you to the Ah Ha moments when it suddenly becomes clear why Ruby works the way it does, and how you can take advantage of this language s elegance and expressivenessEloquent Rubystarts small, answering tactical questions focused on a single statement, method, test, or bug You ll learn how to write code that actually looks like Ruby not Java or C why Ruby has so many control structures how to use strings, expressions, and symbols and what dynamic typing is really good for Next, the book addresses bigger questions related to building methods and classes You ll discover why Ruby classes contain so many tiny methods, when to use operator overloading, and when to avoid it Olsen explains how to write Ruby code that writes its own code and why you ll want to He concludes with powerful project level features and techniques ranging from gems to Domain Specific Languages A part of the renowned Addison Wesley Professional Ruby Series, Eloquent Rubywill help you put on your Ruby colored glasses and get results that make you a true believer This book is a great introduction to the most foundational and cornerstone aspects of Ruby in the form of 30 chapters each dedicated to its own topic covering practically all the topics that a rubyist should know in the first steps of his career I like that every chapter includes both a real world example part along with possible cases of feature misuse and guidance on how to solve them Even though the version of Ruby described in the book is 1.9 which is quite old by now, it signals the core This book is a great introduction to the most foundational and cornerstone aspects of Ruby in the form of 30 chapters each dedicated to its own topic covering practically all the topics that a rubyist should know in the first steps of his career I like that every chapter includes both a real world example part along with possible cases of feature misuse and guidance on how to solve them Even though the version of Ruby described in the book is 1.9 which is quite old by now, it signals the core concepts and conventions of Ruby that are still valid because of their impact and ubiquitousness in the Ruby world Any discrepancies with the current practices and language behavior are minor and have almost no impact on the relevance of the concepts described

Leave a Reply

Your email address will not be published. Required fields are marked *