توضیحات
What are component-based applications? And what is this book about?
Component-based applications show the single responsibility principle at work at all levels of an application. When implementing new features, the developers of these applications ask not only ‘what is the best place to put this’? but also ‘is that best place still good enough or do we need a new one’? In doing so they create pieces of code that exhibit high cohesion on their inside and low coupling on the outside.
In terms of Ruby, the first-class levels are method, class, and application. Along this continuum of increasing size, it becomes more difficult for developers to answer the question of single responsibility. What makes this even more challenging is that some of the frameworks we use, most notably Rails, value other principles more and thus take focus away from writing single responsibility pieces.
Another aspect to the difficulty of implementing component-based applications in Ruby is that one level has been very much overlooked due to a concept missing from the Ruby language: the package. Modules used as namespaces get close to the idea of a package, but don’t provide another layer of visibility rules and thus fall short of being package equivalents.
Gems, used as packages and distributed as vendor code, as part of the application, turn out to be the closest thing to the idea of the package in Ruby. As such they impact the list of levels that single responsibility can be sought for: they add a level. That makes the list method, class, gem, and application. Because gems provide everything needed to simulate packages and because they are composable and distributable, here we will call them ‘components.’
This book explores the many ways to use components, how to get there in the face of a classic Rails application, and all the steps along the way.
————————————————————–
ترجمه ماشینی :
برنامه های کاربردی مبتنی بر کامپوننت چیست؟ و این کتاب در مورد چیست؟ برنامه های کاربردی مبتنی بر مؤلفه، اصل مسئولیت واحد را در همه سطوح یک برنامه کاربردی نشان می دهد. هنگام پیاده سازی ویژگی های جدید، توسعه دهندگان این برنامه ها نه تنها می پرسند که بهترین مکان برای قرار دادن این چیست؟ اما همچنین “آیا بهترین مکان هنوز به اندازه کافی خوب است یا به مکان جدیدی نیاز داریم”؟ با انجام این کار، آنها تکههایی از کد ایجاد میکنند که انسجام بالایی در داخل و جفت کم در خارج از خود نشان میدهند. از نظر Ruby، سطوح درجه یک متد، کلاس و کاربرد هستند. در طول این پیوستار افزایش اندازه، پاسخگویی به سوال مسئولیت منفرد برای توسعه دهندگان دشوارتر می شود. چیزی که این موضوع را چالشبرانگیزتر میکند این است که برخی از چارچوبهایی که ما استفاده میکنیم، بهویژه Rails، ارزش بیشتری برای سایر اصول قائل هستند و بنابراین تمرکز را از نوشتن قطعات تک مسئولیتی دور میکنند. یکی دیگر از جنبه های دشواری اجرای برنامه های کاربردی مبتنی بر مؤلفه در Ruby این است که یک سطح به دلیل وجود مفهومی که در زبان Ruby وجود ندارد: بسته بسیار نادیده گرفته شده
tag : دانلود کتاب کاربردهای ریل مبتنی بر مولفه , Download کاربردهای ریل مبتنی بر مولفه , دانلود کاربردهای ریل مبتنی بر مولفه , Download Component-Based Rails Applications Book , کاربردهای ریل مبتنی بر مولفه دانلود , buy کاربردهای ریل مبتنی بر مولفه , خرید کتاب کاربردهای ریل مبتنی بر مولفه , دانلود کتاب Component-Based Rails Applications , کتاب Component-Based Rails Applications , دانلود Component-Based Rails Applications , خرید Component-Based Rails Applications , خرید کتاب Component-Based Rails Applications ,

نقد و بررسیها
هنوز بررسیای ثبت نشده است.