From 4e8d2152705bd43f72cab95347b751ca7f2b23e7 Mon Sep 17 00:00:00 2001 From: kballou Date: Fri, 18 Mar 2016 23:49:55 -0600 Subject: Add motiviation slides --- src/func-w-elixir.tex | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/func-w-elixir.tex b/src/func-w-elixir.tex index 7d011f1..ca75cbd 100644 --- a/src/func-w-elixir.tex +++ b/src/func-w-elixir.tex @@ -115,6 +115,28 @@ abstract mathematics with the intuitive clarity of abstract mathematics.''} XKCD on Functional Programming\cite{website:xkcd_functional} \end{frame} +\begin{frame} +\frametitle{Motivation} +\framesubtitle{Why Functional Programming?} +\begin{itemize} +\item<1->{Easy to Reason About} +\item<2->{Trivial to Test} +\item<3->{Functional Composition} +\item<4->{State or Side-Effects are explicit} +\end{itemize} +\end{frame} + +\begin{frame} +\frametitle{Anti-Motivation} +\framesubtitle{Why not Functional Programming?} +\begin{itemize} +\item<1->{Explicit state can be hard} +\item<2->{Side-effect free programming seems cumbersome} +\item<3->{Performance} +\item<4->{Learning Curve} +\end{itemize} +\end{frame} + \begin{frame} \frametitle{What is Functional Programming?} \begin{itemize} @@ -126,7 +148,6 @@ XKCD on Functional Programming\cite{website:xkcd_functional} \begin{itemize} \item<6->{This gives higher-order functions} \end{itemize} -\item<7->{Functions compose} \end{itemize} \end{frame} -- cgit v1.2.1