Component-Based Rails Applications
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > Component-Based Rails Applications: Large Domains Under Control
Component-Based Rails Applications: Large Domains Under Control

Component-Based Rails Applications: Large Domains Under Control

|
     0     
5
4
3
2
1




International Edition


About the Book

Use Components to Improve Maintainability, Reduce Complexity, and Accelerate Testing in Large Rails Applications “This book gives Ruby pros a comprehensive guide for increasing the sophistication of their designs, without having to forsake the principles of elegance that keep them in our corner of the software world.” –Obie Fernandez, author, The RailsTM 5 Way, Fourth Edition As Rails applications grow, even experienced developers find it difficult to navigate code bases, implement new features, and keep tests fast. Components are the solution, and Component-Based Rails Applications shows how to make the most of them. Writing for programmers and software team leads who are comfortable with Ruby and Rails, Stephan Hagemann introduces a practical, start-to-finish methodology for modernizing and restructuring existing Rails applications. One step at a time, Hagemann demonstrates how to revamp Rails applications to exhibit visible, provably independent, and explicitly connected parts–thereby simplifying them and making them far easier for teams to manage, change, and test. Throughout, he introduces design concepts and techniques you can use to improve applications of many kinds, even if they weren’t built with Rails or Ruby. Learn how components clarify intent, improve collaboration, and simplify innovation and maintenance Create a full Rails application within a component, from first steps to migrations and dependency management Test component-based applications, manage assets and dependencies, and deploy your application to production Identify the seams in an existing Rails application, and refactor it to extract components Master a scripted, repeatable approach for refactoring Rails applications of any size Use component-based Rails with two popular structural patterns: hexagonal and DCI architecture Leverage your new component skills with other frameworks and languages Overcome the unique challenges that arise as you componentize Rails applications If you’re ready to simplify and revitalize your complex Rails systems, you’re ready for Component-Based Rails Applications. Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.

Table of Contents:
Foreword xi Preface xiii Acknowledgments xxi About the Author xxiii Chapter 1: Introduction to Component-Based Rails Applications 1 1.1 Component-Based Rails 2 1.2 Benefits of Component-Based Applications 4 1.3 Component-Based Ruby 13 1.4 The Application Continuum 14 1.5 Related Works 15 Chapter 2: Creating a Component-Based Application 17 2.1 The Entire App Inside a Component 18 2.2 ActiveRecord and Handling Migrations within Components 27 2.3 Handling Dependencies within Components 34 Chapter 3: Tooling for Components 49 3.1 Testing a Component 50 3.2 Testing the Main Application 65 3.3 Asset Loading for Components 74 3.4 Switching Databases 82 3.5 Deploying to Platforms-as-a-Service 86 3.6 Updating Application Dependencies 90 3.7 Proposal for a Different Application Root—Showcasing the Difference of Components’ Structure 99 Chapter 4: Component Refactorings: Extracting Components Out of Components 111 4.1 Determining What to Extract: Bottom-Up 112 4.2 Refactoring: Extract Domain Gem—Predictor 120 4.3 Determining What to Extract: Top-Down 139 4.4 Refactoring: Pulling Up a UI Component—TeamsAdmin, GamesAdmin, PredictionUI, WelcomeUI 150 4.5 Refactoring: Pushing Down a Model Component—Teams, Games 168 4.6 Refactoring: Improve Naming of Component—AppComponent to WebUI 183 4.7 More Component Refactoring Patterns 189 Chapter 5: From Ball of Mud to First Components 195 5.1 Small Steps 196 5.2 One Big Step 196 Chapter 6: Component-Based Rails in Relation to Other Patterns 211 6.1 Hexagonal Architecture 212 6.2 Data-Context-Integration (DCI) 227 Chapter 7: Components in Other Languages 237 7.1 Kotlin, Java, and Gradle 238 7.2 .NET / C 241 7.3 Conclusion 243 Appendix 245 A.1 Plain versus --full versus --mountable Engines 245 A.2 How Do Engine Routes and Engine Mounting Work? 254 A.3 Additional Testing with Older Versions of Rails 261 Index 265


Best Sellers


Product Details
  • ISBN-13: 9780134774589
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Height: 232 mm
  • No of Pages: 304
  • Spine Width: 18 mm
  • Weight: 548 gr
  • ISBN-10: 0134774582
  • Publisher Date: 17 Sep 2018
  • Binding: Paperback
  • Language: English
  • Returnable: Y
  • Sub Title: Large Domains Under Control
  • Width: 176 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Component-Based Rails Applications: Large Domains Under Control
Pearson Education (US) -
Component-Based Rails Applications: Large Domains Under Control
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Component-Based Rails Applications: Large Domains Under Control

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!