وبلاگ بلیان

برنامه‌های وب با الم: برنامه‌نویسی تابعی برای وب

Web Applications with Elm : Functional Programming for the Web

جلد کتاب برنامه‌های وب با الم: برنامه‌نویسی تابعی برای وب

معرفی کتاب «برنامه‌های وب با الم: برنامه‌نویسی تابعی برای وب» (با عنوان لاتین Web Applications with Elm : Functional Programming for the Web) نوشتهٔ Wolfgang Loder، منتشرشده توسط نشر Apress : Imprint : Apress در سال 2018. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.

Learn the basics of the Elm platform for web applications. This book covers the language as of version 0.18 and the most important libraries. After reading this book you will have an understanding what Elm can do for you. Also, you will be able to build on the example in the book to develop advanced web applications with Elm. What You'll Learn: • Work with Elm and its development environment • Learn the language and libraries in examples • Use the Elm architecture to create applications with the Elm platform • Put it all together with a sample application and explanation that covers the implementation details Who This Book Is For: Web developers new to Elm, with some experience in JavaScript recommended. This book is also for others curious about Elm and its potential beyond web development. Table of Contents 4 About the Author 8 About the Technical Reviewer 9 Chapter 1: Introduction 10 Theory 11 What Can We Use Elm For? 12 Games 13 Single-Page Applications (SPAs) 14 Graphics 16 Embedded 18 What Can’t We Do with Elm? 18 Who Is This Book For? 19 Required Software 19 Structure of This Book 20 Chapter 2: Getting Started 21 Installation 21 Global Installation 23 Local Installation 24 Running a Docker Container 26 Editors and IDEs 31 Atom 32 Emacs 32 IntelliJ 32 LightTable 33 Sublime 33 Vim 33 Visual Studio Code 34 Obligatory Hello World 34 Deployment 38 Option 1: All-in-One 38 Option 2: Custom Web Page 40 Option 3: Integration 41 What We Have Learned 43 Chapter 3: Elm Primer 44 Elm Platform 44 Elm Style Guide 45 Elm Language 49 Basic Language Features 50 Operators 50 Arithmetic Operators 50 Bitwise Operators 51 Logical Operators 52 Comparison Operators 52 Functional Operators 53 Special Operators 55 Control Structures 56 If 56 Case 58 Let-In 58 Prefix and Infix Operators 59 Elm as a Functional Language 61 Functions 61 Named Functions 62 Anonymous Functions 63 Function Composition 64 Polymorphic Functions 66 Higher Order Functions 68 Curried and Partial Functions 69 Immutable Data 74 State 75 Recursion 76 Pattern Matching and Deconstructing 77 Values 77 Tuples 78 Lists 78 Records 80 Types 81 Elm as a Type-safe Language 82 Types 82 Primitives 82 Comparable Types 83 Appendable Types 83 Structured Data 84 Lists 84 Tuples 84 Records 85 Type Definitions 86 Union Types 86 Type Aliases 87 Maybe 87 Constants 88 Type Annotations 88 Unit Type 89 Elm as a Modular Language 90 Modules 90 Imports 90 What We Learned 91 Chapter 4: Tooling and Libraries 92 REPL 92 Development Process 97 Scaffolding 98 Building 100 Switch Elm Versions 101 Debugging 101 Standard Libraries 103 Data Types and Structures 105 String 105 List 111 Array 114 Dict 117 Set 120 Revisiting Maybe 122 JSON 125 What We Learned 127 Chapter 5: Elm Architecture and Building Blocks 128 Elm Architecture Overview 131 model 131 init 134 update 137 view 140 subscriptions 143 Conclusion 144 Code Organization 144 Rendering 146 Graphics 148 Styling 150 Inline Styles 151 External CSS 152 CSS Framework 154 User Input 155 JavaScript Interfacing 157 Server Communication 161 HTTP 161 GET 162 POST 165 WebSockets 166 What We Learned 167 Chapter 6: Putting It All Together 168 Building a Single-Page Application 168 Pizza Cut—The Application 168 Design 170 Alternative Specification and Design 172 Implementation 172 Setup 173 Model 177 Navigation 179 Main View 183 Forms 186 Interfacing with JavaScript Components 187 Testing 191 Beyond Elm Web Applications 193 Desktop Applications 194 CLI 198 Node 198 REPL 199 What We Learned 202 Chapter 7: Where to Go from Here 203 When Is a Programming Language and Platform Successful? 204 Language Progression 204 Community 206 Commercial Usage 206 The Future 206 Conclusion 207 Index 208 Learn the basics of the Elm platform for web applications. This book covers the language as of version 0.18, its fundamental building blocks, and the most important libraries. After reading this book you will have an understanding what Elm can do for you. Also, you will be able to build on the example in the book to develop advanced web applications with Elm. You will: Work with Elm and its development environment Learn the language and libraries in examples Use the Elm architecture to create applications with the Elm platform Put it all together with a sample application and explanation that covers the implementation details Front Matter ....Pages i-ix Introduction (Wolfgang Loder)....Pages 1-11 Getting Started (Wolfgang Loder)....Pages 13-35 Elm Primer (Wolfgang Loder)....Pages 37-84 Tooling and Libraries (Wolfgang Loder)....Pages 85-120 Elm Architecture and Building Blocks (Wolfgang Loder)....Pages 121-160 Putting It All Together (Wolfgang Loder)....Pages 161-195 Where to Go from Here (Wolfgang Loder)....Pages 197-201 Back Matter ....Pages 203-208
دانلود کتاب برنامه‌های وب با الم: برنامه‌نویسی تابعی برای وب