Thu Oct 10
How to generate EPUB documentation for Elixir v1.6
mix archive.uninstall phx_new-1.4.10
) or conflicts happen during the build processgit clone https://github.com/phoenixframework/phoenix.git
cd phoenix
git checkout v1.4 (or next completed)
mix deps.get
mix docs --formatter epub
git clone https://github.com/elixir-lang/elixir-lang.github.com.git
git clone https://github.com/elixir-lang/elixir.git
cd elixir
nano Makefile
#==> Documentation tasks
# DOCS_FORMAT = html
DOCS_FORMAT = epub
make docs
cp doc/elixir/Elixir.epub
Tue Oct 8
IEx testing a file
import_file("lib/knockin/tasks/stack_overflow_query.ex")
data = %Knockin.Tasks.StackOverflowQuery{}
Knockin.Tasks.StackOverflowQuery.get_base_url
Sort order
Collections
Enum - Set of algorithms for enumerating over enumerables
all?
- Returns true if supplied callback applies to all valuesany?
- Returns true if supplied callback applies to a single valuechunk_every
chunk_by
map_every
each
map
min
max
filter
reduce
sort
uniq
uniq_by
Pattern matching - allows us to match simple values, data structures, and even functions
Control structures
if
and unless
- if looks for truthy, unless is the inverse and defaults to falsecase
- match against multiple patterns. _ required in the event there is no match (like default in other languages but required, unlike others). Allows for guard clausescond
- Match conditions instead of values, akin to else if from other languageswith
- (Need to look this up)Tue Oct 8
nova:publish
as Nova updates via composer. It's easier, if using composer, to run the commands on update.