
bresson
Functional Web Development with Elixir, OTP, and Phoenix: Initializing GenServer State fails entirely
The whole section above breaks when running iex -S mix
. Further, the book source code will not compile for that chapter. It’s curious why I am the first person to note this …
Most Liked

gh123
me too
well - it does compile - just does not “work” - cannot do " iex>Coordinate.new(1,1) " page 15
** (UndefinedFunctionError) function IslandsEngine.Coordinate.new/2 is undefined (module IslandsEngine.Coordinate is not available)
IslandsEngine.Coordinate.new(1, 1)
maybe needs mods for newer version of elixir…?
(but what?)

gh123
oh - the book refers to “model_data/lib/island_engine/coordinate.ex” - but that is really (should be) without the model_data… so just lib/island_engine/coordinate.ex. - as well as guesses.ex, island.ex, etc.
also apparently the config dir and file is not create with mix new (this is currently on purpose)
and now it all works (so far )
Popular Prag Prog topics









Modern Front-End Development for Rails - application does not start after run bin/setup (page xviii)

Other popular topics










Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /centos
- /ash
- /php
- /deepseek
- /scala
- /zig
- /html
- /debian
- /nixos
- /lisp
- /agda
- /textmate
- /sublime-text
- /react-native
- /kubuntu
- /arch-linux
- /revery
- /ubuntu
- /manjaro
- /spring
- /django
- /diversity
- /lua
- /nodejs
- /c
- /julia
- /slackware
- /neovim