

% add the PATH to retrieve cls and sty beamer styles files
\makeatletter
\providecommand*{\input@path}{}
\edef\input@path{{../../support/beamer/}\input@path}% prepend
\makeatother

% \documentclass{pharoslides}
% \documentclass[aspectratio=169]{pharoslides} % format 16/9
\documentclass[withvideo]{pharoslides} % format 16/9 + incrustation video

\graphicspath{{./figures/}{../}{../../support/beamer/imgs/}}

%Information to be included in the title page:
\title{4 Design Principles}
\subtitle{by Kent Beck}
\author{Damien Cassou, Stéphane Ducasse and Luc Fabresse}
\institute{http://stephane.ducasse.free.fr}
\date{}
\slidesid{}

\begin{document}

\frame[plain]{\titlepage}



\begin{frame}[fragile]

\frametitle{"Dady" Kent Beck}

\begin{columns}

\begin{column}{0.5\textwidth}

\begin{itemize}
\item Extreme Programming
\item Agile Manifesto
\item Test-Driven Development
\end{itemize}
\end{column}


\begin{column}{0.5\textwidth}


\begin{center}
\includegraphics[width=1.0\textwidth]{figures/Kent_Beck.jpg}\end{center}

\end{column}

\end{columns}

\end{frame}



\begin{frame}[fragile]

\frametitle{The 4 Design Principles}

\begin{enumerate}
\item Passes the tests
\item Reveals intention
\item No duplication
\item Fewest elements
\end{enumerate}
\end{frame}



\begin{frame}[fragile]

\frametitle{I. Passes the Tests}

\begin{itemize}
\item your code must work as intended
\item the tests make sure that's always true
\end{itemize}
\end{frame}



\begin{frame}[fragile]

\frametitle{II. Reveals Intention}

\begin{itemize}
\item the code must be easy to understand
\item always remember that:
\begin{itemize}
\item you spend most of your time reading/browsing code
\item if you can't understand, you can't modify
\end{itemize}

\end{itemize}
\end{frame}



\begin{frame}[fragile]

\frametitle{III. No duplication (''aka.'' D.R.Y.)}

\begin{itemize}
\item \textbf{D}on't \textbf{R}epeat \textbf{Y}ourself
\item say things \symbol{34}Once and only once\symbol{34}
\item create abstractions
\end{itemize}
\end{frame}



\begin{frame}[fragile]

\frametitle{IV. Fewest Elements (''aka.'' no over-engineering)}

\begin{itemize}
\item don't design future requirements
\item you don't know what you will need tomorrow, don't design for it today
\item this only makes code harder to change
\end{itemize}
\end{frame}



\begin{frame}[fragile]

\frametitle{The 4 Design Principles}

\begin{enumerate}
\item Passes the tests
\item Reveals intention
\item No duplication
\item Fewest elements
\end{enumerate}
\end{frame}




% \setlength{\textwidth}{\originaltextwidth}
\setbeamertemplate{background canvas}{\insertBorderForHandout}

\begin{frame}[plain]

\begin{minipage}{\originaltextwidth}
\centering
\large


\vspace{2em}

A course by

\vspace{1em}

\hspace{-20px}\includegraphics[height=32px]{inriaLogo}\hspace{3em}\raisebox{7px}{and}\hspace{3em}\raisebox{-6px}{\includegraphics[height=30px]{logoutop}}

\vspace{2em}

in collaboration with

\vspace{1em}

\includegraphics[height=40px]{unisciellogo}\hskip 1.5em%
\raisebox{5px}{\includegraphics[height=30px]{unitlogo}}\hskip 2em%
\raisebox{8px}{\includegraphics[height=24px]{univLilleLogo}}\hskip 2em%
\raisebox{3px}{\includegraphics[height=29px]{logo-IMT}}\hskip 2em%
\raisebox{1px}{\includegraphics[height=32px]{minesDouaiLogo}}

\vspace{2.5em}

\includegraphics[width=50px]{by-nc-nd} \tiny \hskip 0.5em \raisebox{5px}{Inria 2016}

\medskip

\tiny
Except where otherwise noted, this work is licensed under CC BY-NC-ND 3.0 France

\url{https://creativecommons.org/licenses/by-nc-nd/3.0/fr/} 

\end{minipage}
\end{frame}

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
