نام کتاب
Polished Ruby Programming

Build better software with more intuitive, maintainable, scalable, and high-performance Ruby code
Jeremy Evans

Paperback434 Pages
PublisherPackt
Edition1
LanguageEnglish
Year2021
ISBN9781801072724
873
A1698
انتخاب نوع چاپ:
جلد سخت
785,000ت
0
جلد نرم
725,000ت
0
طلق پاپکو و فنر
735,000ت
0
مجموع:
0تومان
کیفیت متن:اورجینال انتشارات
قطع:B5
رنگ صفحات:سیاه و سفید با کادر / تصویر
پشتیبانی در روزهای تعطیل!
ارسال به سراسر کشور

#Ruby

#Web_Application

#security

#Design_Patterns

#DSLs

توضیحات

Elevate your Ruby skills to an advanced level by deepening your understanding of the design principles, best practices, and trade-offs involved in implementation approaches to future-proof your Ruby applications


Key Features

  • •  Learn Ruby web application design principles and strategies for databases, security, and testing from a Ruby committer
  • •  Understand the design principles behind polished Ruby code and trade-offs between implementation approaches
  • •  Use metaprogramming and DSLs to reduce the amount of code needed without decreasing maintainability


Book Description

Anyone striving to become an expert Ruby programmer needs to be able to write maintainable applications.

Polished Ruby Programming will help you get better at designing scalable and robust Ruby programs, so that no matter how big the codebase grows, maintaining it will be a breeze.
 

This book takes you on a journey through implementation approaches for many common programming situations, the trade-offs inherent in each approach, and why you may choose to use different approaches in different situations.
 

You'll start by refreshing Ruby fundamentals, such as correctly using core classes, class and method design, variable usage, error handling, and code formatting. Then you'll move on to higher-level programming principles, such as library design, use of metaprogramming and domain-specific languages, and refactoring. Finally, you'll learn principles specific to web application development, such as how to choose a database and web framework, and how to use advanced security features.
 

By the end of this Ruby programming book, you'll be a well rounded web developer with a deep understanding of Ruby.

While most code examples and principles discussed in the book apply to all Ruby versions, some examples and principles are specific to Ruby 3.0, the latest release at the time of publication.


What you will learn

  • •  Use Ruby's core classes and design custom classes effectively
  • •  Explore the principles behind variable usage and method argument choice
  • •  Implement advanced error handling approaches such as exponential backoff
  • •  Design extensible libraries and plugin systems in Ruby
  • •  Use metaprogramming and DSLs to avoid code redundancy
  • •  Implement different approaches to testing and understand their trade-offs
  • •  Discover design patterns, refactoring, and optimization with Ruby
  • •  Explore database design principles and advanced web app security


Who this book is for

This book is for Ruby programmers who are comfortable in coding with Ruby but want to advance their skills by mastering the deeper principles and best practices behind writing maintainable, scalable, optimized, and well-structured Ruby code. This book won't teach you the basics of Ruby – you'll need intermediate knowledge and practical experience before you can dive in.

Table of Contents
1. Getting the Most out of Core Classes
2. Designing Useful Custom Classes
3. Proper Variable Usage
4. Methods and Their Arguments
5. Handling Errors
6. Formatting Code for Easy Reading
7. Designing Your Library
8. Designing For Extensibility
9. Metaprogramming and When to Use It
10. Designing Useful Domain-Specific Languages
11. Testing to Ensure Your Code Works
12. Handling Change
13. Using Common Design Patterns
14. Optimizing Your Library
15. The Database Is Key
16. Web Application Design Principles
17. Robust Web Application Security

 

ruby author


What makes this book different from other Ruby titles on the market?

Most Ruby programming books are aimed at teaching the reader how to program in Ruby. Polished Ruby Programming does not teach you how to program in Ruby. It assumes you already know how to program in Ruby, and discusses trade-offs between different approaches to programming in Ruby, and principles for deciding which trade-offs may make the most sense in certain cases.

Apart from focusing on these fundamental principles, I’ll also be highlighting principles for better library design, where you’ll be shown how best to design extensible plugin systems as well as how to approach metaprogramming, testing, refactoring, and even optimization.
 

learn Ruby

What are the key takeaways you want readers to understand?

I think the key takeaway in the book is that there isn't a single way to do things in Ruby!

There are many ways to accomplishing your goals, and each of them has trade-offs. I’ve tried to highlight important principles of Ruby programming so that you will be able to choose the appropriate trade-offs for your applications. There are only a few cases where the book strictly recommends against using certain parts of Ruby, such as class variables, and certain techniques, such as enforcing arbitrary limits on method/class size.
 

ruby book


How has your background and experience helped you to write the book?

I've been a Ruby programmer for over 15 years, and during that time I've authored and maintained many Ruby libraries, with a few of them becoming popular. There are definitely parts of the book that are specifically aimed at Ruby programmers who develop libraries for other programmers to use, and my extensive experience in authoring and maintaining Ruby libraries was helpful in writing those sections.

Additionally, I became a Ruby committer a couple of years ago, and since then I have become very involved in fixing bugs in Ruby. Doing this has required me to learn much more about the internals of Ruby than most Ruby programmers are aware of. Knowledge of the internals was very important when writing many parts of the book, particularly about why some approaches to Ruby programming are faster than others.
 

Ruby programming


What is your favorite part of Polished Ruby Programming and why?

My favorite part of the book is the extended discussion on implementing a plugin system for Ruby libraries in chapter 8. This is a technique that is not yet popular in Ruby libraries but has been gaining popularity over the last few years. I would like to see this technique spread to more Ruby libraries, as I believe it offers numerous advantages for not only the maintainers of the library but also the users of the library and other programmers who wish to extend the library. I hope that after reading the book, library developers will consider using a plugin system in their current libraries or in future libraries they develop.

About the Author

Jeremy Evans is a Ruby committer who focuses on fixing bugs in Ruby, as well as improving the implementation of Ruby. He is the maintainer of many popular Ruby libraries, including the fastest web framework (Roda) and fastest database library (Sequel). His libraries are known not just for their performance, but also for their code quality, understandability, documentation, and how quickly any bugs found are fixed. For his contributions to Ruby and the Ruby community, he has received multiple awards, such as receiving the prestigious RubyPrize in 2020 and being chosen as a Ruby Hero in 2015. He has given presentations at over 20 Ruby conferences. In addition to working on Ruby, he is also a committer for the OpenBSD operating system.

دیدگاه خود را بنویسید
نظرات کاربران (0 دیدگاه)
نظری وجود ندارد.
کتاب های مشابه
Ruby
955
Ruby by Example
500,000 تومان
Ruby
454
Programming Ruby 3.3
1,084,000 تومان
Ruby
912
Ruby Pocket Reference
384,000 تومان
Ruby
932
Beginning Ruby 3
978,000 تومان
Ruby
917
Clean Ruby
291,000 تومان
Ruby
984
Mastering Ruby on Rails
536,000 تومان
Ruby
924
The Well-Grounded Rubyist
963,000 تومان
Clean Code
893
Hands-on Test-Driven Development
469,000 تومان
Ruby
896
Eloquent Ruby
652,000 تومان
Ruby
1,018
The Book of Ruby
686,000 تومان
قیمت
منصفانه
ارسال به
سراسر کشور
تضمین
کیفیت
پشتیبانی در
روزهای تعطیل
خرید امن
و آسان
آرشیو بزرگ
کتاب‌های تخصصی
هـر روز با بهتــرین و جــدیــدتـرین
کتاب های روز دنیا با ما همراه باشید
آدرس
پشتیبانی
مدیریت
ساعات پاسخگویی
درباره اسکای بوک
دسترسی های سریع
  • راهنمای خرید
  • راهنمای ارسال
  • سوالات متداول
  • قوانین و مقررات
  • وبلاگ
  • درباره ما
چاپ دیجیتال اسکای بوک. 2024-2022 ©