Last active
August 30, 2016 09:11
-
-
Save h4cc/39d47ce2efc86b1055734f46bcdcfaae to your computer and use it in GitHub Desktop.
Some ideas for topics to discuss at hh.ex meetup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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