Modules Defining Modules Growing Modules Using Modules Modules Elm has modules to help you grow your codebase in a nice way. On the most basic level, modules let you break ...
Time Time.Posix and Time.Zone subscriptions Task.perform Time Now we are going to make a digital clock. (Analog will be an exercise!) So far we have focused on commands...
JSON JSON JSON Decoders Building Blocks Nesting Decoders Combining Decoders Next Steps JSON We just saw an example that uses HTTP to get the content of a book. That is gr...
HTTP Clone the code or follow along in the online editor . Phase One - The Bare Minimum Phase Two - Adding the Cool Stuff HTTP Clone the code or follow along in the o...
Docker Plug-ins API Clients Ada C C++ Clojure Dart Elixir Elm Erlang Go Haskell Kotlin Lua Java JavaScript/NodeJS Objective-C PHP Python R Ruby Rust Scala Sw...
Custom Types Messages Modeling Note: Custom types used to be referred to as “union types” in Elm. Names from other communities include tagged unions and ADTs . Custom T...
Error Handling Error Handling One of the guarantees of Elm is that you will not see runtime errors in practice. This is partly because Elm treats errors as data . Rather than c...
Virtual DOM 总结 Virtual DOM Virtual DOM 这个概念相信大部分人都不会陌生,它产生的前提是浏览器中的 DOM 是很“昂贵"的,为了更直观的感受,我们可以简单的把一个简单的 div 元素的属性都打印出来,如图所示:可以看到,真正的 DOM 元素是非常庞大的,因为浏览器的标准就把 DOM 设计的非常复杂。当我们频繁的去...