کتاب الکترونیکی

توسعه وب Grok 1.0

Grok 1.0 Web Development

دانلود کتاب Grok 1.0 Web Development (به فارسی: توسعه وب Grok 1.0) نوشته شده توسط «Carlos de la Guardia»


اطلاعات کتاب توسعه وب Grok 1.0

موضوع اصلی: شبکه: اینترنت

نوع: کتاب الکترونیکی

ناشر: Packt Publishing

نویسنده: Carlos de la Guardia

زبان: English

فرمت کتاب: pdf (قابل تبدیل به سایر فرمت ها)

سال انتشار: 2010

تعداد صفحه: 307

حجم کتاب: 3 مگابایت

کد کتاب: 1847197485 , 9781847197481

توضیحات کتاب توسعه وب Grok 1.0

Grok 1.0 Web Development مقدمه ای عالی برای آنچه به نظر من یک پشته فناوری وب بسیار قدرتمند است: Zope Toolkit. Grok راهی را برای تازه واردان و کسانی که با دیگر پشته های وب پایتون آشنا هستند فراهم می کند تا با ZTK شروع کنند، که اغلب می تواند جزیره ای، رمزی و غیرقابل دسترس به نظر برسد. هنگامی که یک کاربر آماده “حرکت به بالا” است، می تواند از قدرتی که زیربنای Grok است استفاده کند. این کتاب مقدمه خوبی برای آن پشته است.

توسعه وب Grok 1.0 همان چیزی است که من فکر می کنم به عنوان یک رویکرد مرسوم برای معرفی فریم ورک، آموزش کاربر در مورد ویژگی های اساسی چارچوب با ساختن یک برنامه کاربردی (در این مورد مدیر لیست کارهای انجام) و افزودن ویژگی ها و اصلاح کد به عنوان می گذرد. این به خوبی برای Grok کار می‌کند — مقدار کد دیگ بخار با طراحی به حداقل می‌رسد، بنابراین متن می‌تواند ابتدا روی پیاده‌سازی ویژگی تمرکز کند، سپس در صورت نیاز، برای بحث در مورد “بهترین تمرین” در مورد آن ابزار عمیق‌تر شود. به عنوان مثال، فصل 6 کاتالوگ های ZODB (شاخص) را پوشش می دهد. با تعریف نمای جستجو و رابط کاربری شروع می شود تا خواننده یک ابزار جستجوی کارآمد برای کار با آن داشته باشد، سپس یک انحراف را برای بحث در مورد چگونگی ساختار بهترین برنامه کاربردی خود برای پشتیبانی از جستجو انجام می دهد. این تمرین‌های دقیق یکی از با ارزش‌ترین بخش‌های توسعه وب Grok 1.0 است: آنها به خواننده کمک می‌کنند تا درک خود را فراتر از اجرای یک ویژگی، به پیاده‌سازی به روشی که انعطاف‌پذیر و پشتیبانی آسان در آینده باشد، گسترش دهند. توصیه [تا حدودی مختصر] در مورد زمان استفاده از ZODB در مقابل پایگاه داده رابطه ای نمونه دیگری از توصیه های عملی است که در کتاب از آن استقبال کردم.

توسعه وب Grok 1.0 کامل نیست. مخصوصاً ای کاش فصل تست زودتر بود (توصیه نویسنده مبنی بر اینکه “نباید به عنوان یک فکر بعدی تلقی شود” به نظر نمی رسد با قرار گرفتن آن در میان موضوعات پیشرفته در انتهای کتاب باشد. فکر می کنم من هستم. همچنین کمی نسبت به slogging در Zope 3 و “عدم چابکی” آن حساس است. احتمالاً می توان من را به عنوان یک مدافع معماری Zope 3 / Zope توصیف کرد، اما به نظر می رسد نوع چابکی توصیف شده یک تعریف نسبتاً محدود و خاص است. اسپرینت ها من چندین سال در Zope 3 در PyCon انجام دادم بیش از هر چیز دیگری به درک و قدردانی من از توسعه آزمایش محور و برنامه ریزی چابک کمک کرد. بله، Grok این کار را بدون ZCML انجام می دهد؛ فکر می کنم این تمرینی برای خواننده است که آیا این کار را انجام می دهد. بهتر یا بدتر برای برنامه شما.

من فکر می‌کنم که چارچوب‌های مشتق شده از Zope مانند Grok و repoze.bfg از جالب‌ترین فریمورک‌های توسعه‌یافته امروزی هستند. Grok 1.0 Web Development در معرفی Grok به توسعه دهندگانی که تازه با برنامه نویسی وب آشنا هستند یا قبلاً با چارچوب دیگری آشنایی دارند، کار بسیار خوبی انجام می دهد. من آن را به هر کسی که علاقه مند به ساخت برنامه های وب توسعه پذیر با حداقل دیگ بخار است توصیه می کنم.


Grok 1.0 Web Development is a great introduction to what I think is a very powerful web technology stack: the Zope Toolkit. Grok provides a way for newcomers and those familiar with other Python web stacks to get started with ZTK, which can often seem insular, cryptic, and inaccessible. When a user is ready to “move up”, they can start leveraging the power that underlies Grok. This book is a good introduction to that stack.

Grok 1.0 Web Development takes what as I think of as a customary approach to framework introductions, instructing the user on the basic features of the framework by building an application (in this case a to do list manager) and adding features and refining the code as it goes. This works well for Grok — the amount of boilerplate code is kept to a minimum, by design, so the text can focus on first implementing the feature, then delving deeper to discuss the “best practice” around that tool if needed. For example, Chapter 6 covers ZODB Catalogs (index). It starts by defining the search view and user interface so that the reader has a functioning search tool to work with, then takes a diversion to discuss how one best structures their application to support search. These detailed drill downs are one of the most valuable parts of Grok 1.0 Web Development: they help the reader expand their understand beyond just implementing a feature, to implementing in a way that will be flexible and easy to support in the future. The [somewhat brief] advice on when to use the ZODB versus a relational database is another example of practical advice that I appreciated in the book.

Grok 1.0 Web Development is not perfect. In particular I wish the chapter on testing were earlier (the author’s admonition that it “should not be treated as an afterthought” doesn’t seem to jibe with its placement among the advanced topics towards the end of the book. I suppose I’m also a little sensitive to slogging on Zope 3 and it’s “lack” of agility. I can probably be described as a Zope 3 / Zope component architecture apologist, but it seems the type of agility described is a rather narrow, specific definition. The sprints I did on Zope 3 at PyCon several years contributed more to my understanding and appreciation of test driven development and agile planning than just about anything. Yes, Grok gets it done without the ZCML; I think it’s an exercise for the reader as to whether that’s better or worse for your application.

I think that the Zope derived frameworks such as Grok and repoze.bfg are some of the most interesting in development today. Grok 1.0 Web Development does a great job of introducing Grok to developers who are new to web programming, or who already have some familiarity with another framework. I recommend it to anyone interested in building extensible web applications with a minimum of boilerplate.

دانلود کتاب «توسعه وب Grok 1.0»

مبلغی که بابت خرید کتاب می‌پردازیم به مراتب پایین‌تر از هزینه‌هایی است که در آینده بابت نخواندن آن خواهیم پرداخت.