yonvata
From objects to functions - uncompilable code for SeeATodoListDDT and HttpActions
On the refactoring of the test from the acceptance test to DDT test the book introduce a new class called SeeATodoListDDT which uses the following functions on ToDoListOwner:
- starts with a list
 - can see #listname with #itemnames
 
The implementation on page 129 skips the first function completely.
Moreover, the implementation of HttpActions requires a hub, and this hub isn’t defined anywhere in the code. While looking at the codebase of the project I’ve notice the following:
    private val fetcher = ToDoListFetcherFromMap(mutableMapOf())
    private val hub = ToDoListHub(fetcher)
However the ToDoListFetcherFromMap also isn’t included in the code so I assume that some refactoring is required here
There is also another (maybe intended) typo with the last version of the test where the owner’s name changes from frank and bob to Tim and Adam without them being declared beforehand. In this specific case you can re-use the same owners from the 1st test as happened in the original test
Popular Pragmatic Bookshelf topics
                        
                      
                      Other popular topics
                        
                      
                      Latest in From Objects to Functions
Categories:
Sub Categories:
Popular Portals
- /elixir
 - /rust
 - /ruby
 - /wasm
 - /erlang
 - /phoenix
 - /keyboards
 - /python
 - /rails
 - /js
 - /security
 - /go
 - /swift
 - /vim
 - /clojure
 - /haskell
 - /emacs
 - /java
 - /svelte
 - /onivim
 - /typescript
 - /kotlin
 - /c-plus-plus
 - /crystal
 - /tailwind
 - /react
 - /gleam
 - /ocaml
 - /flutter
 - /elm
 - /vscode
 - /ash
 - /opensuse
 - /html
 - /centos
 - /php
 - /zig
 - /deepseek
 - /scala
 - /sublime-text
 - /lisp
 - /textmate
 - /react-native
 - /nixos
 - /debian
 - /agda
 - /kubuntu
 - /arch-linux
 - /django
 - /deno
 - /ubuntu
 - /revery
 - /manjaro
 - /nodejs
 - /spring
 - /diversity
 - /lua
 - /julia
 - /slackware
 - /c
 
    





