Skip to content

Instantly share code, notes, and snippets.

@h4cc
Last active August 30, 2016 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h4cc/39d47ce2efc86b1055734f46bcdcfaae to your computer and use it in GitHub Desktop.
Save h4cc/39d47ce2efc86b1055734f46bcdcfaae to your computer and use it in GitHub Desktop.
Some ideas for topics to discuss at hh.ex meetup
# Return values
# What is the difference here?
Logger.warn("Something went wrong!")
# and
:ok = Logger.warn("Something went wrong!")
# What will happen when that logger is added?
def do_somtething(), do: {:ok, 42}
def hey(name) do
do_something()
#Logger.info("Called hey with #{name}")
end
# Synchronous path
# A phoenix request is a single process using mostly functions.
# Sending messagesis only done to fetch/alter state.
# The request is _not_ send via messages around GenServers.
# - Why?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment