Skip to content

Commit

Permalink
Functional: Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jun 7, 2022
1 parent 6661f98 commit 1fcc7aa
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/session/functional/functional.tex
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@
}

\note[item]{
In order to debunk this and see how we can improve it, let's use another
example not involving Doctrine.
In order to debunk this and see how we can improve it, let's use another
example not involving Doctrine.
}
\end{frame}

Expand Down Expand Up @@ -567,18 +567,18 @@
\end{frame}

\begin{frame}
\frametitle{Functional code}
\framesubtitle{The Either class}
\frametitle{Functional code}
\framesubtitle{The Either class}

\begin{itemize}[<+->]
\item This value wrapper is actually the ``Either'' monad,
\item Focus on the happy scenario,
\item The user decide what to do when something goes wrong.
\end{itemize}
\begin{itemize}[<+->]
\item This value wrapper is actually the ``Either'' monad,
\item Focus on the happy scenario,
\item The user decide what to do when something goes wrong.
\end{itemize}

\note[item]{
Let's summarize a bit what we've seen here.
}
\note[item]{
Let's summarize a bit what we've seen here.
}
\end{frame}

{
Expand Down Expand Up @@ -677,7 +677,7 @@
\\\textcolor{ecgrey!50}{Maybe is to some extent a specialization of Either.}
\item ...Reader, Writer, IO, List,...
\\\textcolor{ecgrey!50}{There are many other monads these
two are just the tip of the iceberg.}
two are just the tip of the iceberg.}
\item Monads may have different names in languages
\\\textcolor{ecgrey!50}{(Optional, Result, Promise, etc etc)}
\item Monads are the design pattern of functional languages
Expand All @@ -697,15 +697,15 @@

\begin{itemize}[<+->]
\item Monads can abstract most of your function binding...
\\\textcolor{ecgrey!50}{Turning a lot of noise into magic!}
\\\textcolor{ecgrey!50}{Turning a lot of noise into magic!}
\item It modularizes logical unit of computation and facilitate refactoring
\item Reduce complexity of the code
\\\textcolor{ecgrey!50}{abstracting the logic into one well known object
that does only one thing and well}
\\\textcolor{ecgrey!50}{abstracting the logic into one well known object
that does only one thing and well}
\item For educational purposes ?
\\\textcolor{ecgrey!50}{Demystifing monads can help understand
the benefits and perks of functional programming, and make you a better
developer}
\\\textcolor{ecgrey!50}{Demystifing monads can help understand
the benefits and perks of functional programming, and make you a better
developer}
\end{itemize}
\end{frame}

Expand Down

0 comments on commit 1fcc7aa

Please sign in to comment.