
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
اگر دقیق دنبال نکرده باشید، شاید فکر کنید LiveView ناگهان از راه رسیده؛ مثل نهالی که یکشبه از خاک سر درمیآورد. اما این روایت چند جزئیات مهم را جا میاندازد؛ از جمله همه آن جوانهزنی و رشد آهستهای که دور از چشم رخ میدهد.
کریس مککورد، سازنده Phoenix، قبل از آمدن به جامعه Elixir روی Ruby on Rails کار میکرد. هرچه پیشتر میرفت، از شرکت مشاورهاش بیشتر میخواستند با Ruby on Rails اپلیکیشنهای تکصفحهای پویا (SPA) بسازد. او تلاش کرد روی زیرساخت Ruby on Rails یک فریمورک سمت سرور بسازد — چیزی شبیه LiveView — تا بتواند به این نیاز به تعامل پاسخ دهد. اما کریس فهمید زیرساخت Ruby بهاندازه کافی قوی نیست که از ایدهاش پشتیبانی کند. او به قابلیت اطمینان بیشتر، توان عملیاتی بالاتر و عملکرد یکنواختتری نیاز داشت. پس به دنبال زبانی و زیرساختی مناسبتر گشت و Elixir را پیدا کرد.
تیم Phoenix توانست قابلیتهای جاوااسکریپت را در LiveView بگنجاند که فرایند تغییر رابط کاربری روی یک اتصال سوکت را خودکار میکنند. در LiveView، برنامهنویسان به یک مدل برنامهنویسی زیبا بر پایه مفاهیم آزمودهشده میرسند؛ مدلی که زیرساخت جاوااسکریپت را هم فراهم میکند تا نیازی نباشد خودشان جاوااسکریپت بنویسند.
این کتاب برای مبتدیان پیشرفته و برنامهنویسان سطح متوسط است که میخواهند با Phoenix LiveView اپلیکیشن وب بسازند. در آن با انتزاعهای پایهای که LiveView را ممکن میکنند آشنا میشوید و تکنیکهایی را میآموزید که کمک میکنند کدتان را در لایههایی منظم و منطقی بچینید. سعی میکنیم با مرور خشک و خستهکننده ویژگیبهویژگی حوصلهتان را سر نبریم. بهجای آن، با ساختن یک اپلیکیشن واقعی و نهچندان ساده، LiveView را با هم یاد میگیریم.
If you haven’t been following closely, it might seem like LiveView came suddenly, like a new seedling that breaks through the soil surface overnight. That narrative lacks a few important details, like all of the slow germination and growth that happens out of sight.Chris McCord, the creator of Phoenix, worked on Ruby on Rails before coming over to the Elixir community. More and more often, his consultancy was asked to use Ruby on Rails to build dynamic single-page apps (SPAs). He tried to build a server-side framework on top of the Ruby on Rails infrastructure, much like LiveView, that would allow him to meet these demands for interactivity. But Chris recognized that the Ruby infrastructure was not robust enough to support his idea. He needed better reliability, higher throughput, and more even performance. He shopped around for a more appropriate language and infrastructure, and found Elixir.The Phoenix team was able to build jаvascript features into LiveView that automate the process of changing a user interface on a socket connection. In LiveView, programmers would find a beautiful programming model based on tested concepts, and one that provided jаvascript infrastructure so developers didn’t need to write their own jаvascript.This book is for advanced beginners and intermediate programmers who want to build web applications using Phoenix LiveView. In it, you’ll learn the basic abstractions that make LiveView work, and you’ll explore techniques that help you organize your code into layers that make sense. We will try not to bore you with a tedious feature-by-feature march. Instead, we’ll help you grasp LiveView by building a nontrivial application together.