underscoreio / essential-slick

Essential Slick Pandoc Source
https://underscore.io/books/essential-slick/
39 stars 8 forks source link

Explain `exec` sooner? #93

Closed d6y closed 8 years ago

d6y commented 8 years ago

Customer tried to call Example.exec, got NPE.

Just something I tried (the first try actually). I guess some other people can have the same problem.

There is an explanation about what we can do in the console in the chapter 2. maybe it can moved to the first chapter to avoid this

See: https://gitter.im/underscoreio/scala?at=5656268292aa9746647b8b27

jonoabroad commented 8 years ago

The alternative is to edit the examples to having a main method and ditch App. Then either way will work.

jonoabroad commented 8 years ago

Add a new 1.3 section "Working Interactively in the sbt Console"

say we import a bunch of stuff and include a method called exec which does magic which we explain in a future section. Maybe show the output from running console