Cantitate/Preț
Produs

Build a Frontend Web Framework (from Scratch)

Autor Ángel Sola Orbaiceta
en Limba Engleză Paperback – 21 mai 2024

În dezvoltarea web modernă, ecosistemul este dominat de instrumente complexe precum React, Vue sau Angular, care adesea par niște „cutii negre” pentru utilizator. În Build a Frontend Web Framework (from Scratch), Ángel Sola Orbaiceta demitizează aceste tehnologii, propunând o abordare practică: construirea de la zero a unui framework funcțional folosind JavaScript nativ. Considerăm că valoarea acestui volum rezidă în explorarea mecanismelor interne care fac posibile interfețele reactive de astăzi. Parcurgerea cărții ne poartă prin etapele critice de arhitectură, de la randarea programatică a documentelor HTML până la definirea vederii prin Virtual DOM. Găsim în aceste pagini explicații detaliate despre algoritmii de reconciliere — procesele de „diffing” și „patching” care permit actualizarea eficientă a DOM-ului fără reîncărcarea întregii pagini. Ca și Francesco Strazzullo în Frameworkless Front-End Development, autorul distilează experiență reală în principii acționabile, oferind cititorului libertatea de a înțelege ce se întâmplă în spatele API-urilor de nivel înalt. Structura este riguros tehnică, abordând concepte avansate precum planificatorul (scheduler) pentru ciclul de viață al componentelor și mecanismele de comunicare bidirecțională prin „props” și evenimente. Spre deosebire de manualele care se concentrează pe utilizarea unei biblioteci specifice, această lucrare publicată de Manning Publications se concentrează pe „de ce” și „cum”, pregătind dezvoltatorul să depaneze bug-uri complexe și să optimizeze performanța în orice framework modern. Merită menționat că proiectul se finalizează cu transformarea codului într-un pachet NPM, oferind o perspectivă completă asupra ciclului de viață al unei unelte de dezvoltare.

Citește tot Restrânge

Preț: 32031 lei

Preț vechi: 40039 lei
-20%

Puncte Express: 480

Carte disponibilă

Livrare economică 28 mai-11 iunie
Livrare express 13-19 mai pentru 17845 lei


Specificații

ISBN-13: 9781633438064
ISBN-10: 1633438066
Pagini: 384
Dimensiuni: 189 x 234 x 22 mm
Greutate: 0.66 kg
Editura: Manning Publications

De ce să citești această carte

Această carte este esențială pentru programatorii care vor să treacă de la statutul de utilizator de framework-uri la cel de arhitect software. Veți câștiga o înțelegere profundă a Virtual DOM-ului și a stării componentelor, abilități care vă vor face mai eficienți în depanarea aplicațiilor complexe de tip Single Page Application. Este un exercițiu de inginerie pură care transformă teoria abstractă în cod gata de producție.


Descriere

Learn how a frontend web framework works by coding your own! Web developers use frontend frameworks every day—but do you know how these essential parts of your stack really work? Build a Frontend Web Framework (From Scratch) reveals the inner workings of web frameworks by helping you create your very own. In Build a Frontend Web Framework (From Scratch), you’ll learn the secrets behind frameworks like React, Vue, and Angular, including: Create HTML documents programmatically Define the view with virtual DOM Update the HTML efficiently with reconciliation algorithms Create two-way communication mechanisms between components in a hierarchy Whatever your experience level, you’ll be able to start building your framework with this guide. All you need is some core skills in HTML, CSS, and JavaScript. And once you’ve learned how frameworks function, you’ll be able to work with them more efficiently, troubleshoot bugs more effectively, and even customize them for your specific needs! Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications. About the technology You use frontend frameworks every day, but do you really know what’s going on behind the API? Building your own framework is a great way to learn how they interact with the DOM, generate page views, route data between components, and communicate with the underlying operating system. With this interesting and entertaining book, you’ll build your own web framework step-by-step in JavaScript, ready to share with the world as an NPM package! About the book Build a Frontend Web Framework (From Scratch) guides you through a simple component-based frontend framework that borrows from React, Svelte, Angular, and other familiar tools. You’ll learn how a modern framework operates by adding features like component state and lifecycle management, a virtual DOM, and reconciliation algorithms to update the HTML efficiently. You’ll appreciate how each critical concept is broken down into easy-to-digest chunks and explained with engaging graphics. What's inside Create HTML documents programmatically Define the view with the virtual DOM Implement a component lifecycle scheduler About the reader For web developers familiar with JavaScript and Node. About the author Angel Sola Orbaiceta has worked in the software industry for over a decade, creating software for the cloud, macOS, and Windows desktop applications. Table of Contents PART 1 1 Are frontend frameworks magic to you? 2 Vanilla JavaScript—like in the old days PART 2 3 Rendering and the virtual DOM 4 Mounting and destroying the virtual DOM 5 State management and the application’s lifecycle 6 Publishing and using your framework’s first version 7 The reconciliation algorithm: Diffing virtual trees 8 The reconciliation algorithm: Patching the DOM PART 3 9 Stateful components 10 Component methods 11 Subcomponents: Communication via props and events 12 Keyed lists 13 The component lifecycle hooks and the scheduler 14 Testing asynchronous components Appendix