slides/slides01.tex
author Christian Urban <urbanc@in.tum.de>
Thu, 08 Nov 2018 23:42:03 +0000
changeset 199 54befaf23648
parent 195 fc3ac7b70a06
child 200 01ee4b576eb2
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
\documentclass[dvipsnames,14pt,t,xelatex]{beamer}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
\usepackage{../slides}
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
     3
\usepackage{../graphics}
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
\usepackage{../langs}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
%\usepackage{../data}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
\hfuzz=220pt 
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
%\setmonofont[Scale=.88]{Consolas}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
%\newfontfamily{\consolas}{Consolas}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
\lstset{language=Scala,
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
        style=mystyle,
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
        numbersep=0pt,
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
        numbers=none,
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
        xleftmargin=0mm}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
\newcommand{\bl}[1]{\textcolor{blue}{#1}}     
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
% beamer stuff 
195
fc3ac7b70a06 updated
Christian Urban <urbanc@in.tum.de>
parents: 174
diff changeset
    21
\renewcommand{\slidecaption}{PEP (Scala) \liningnums{01}, King's College London}
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
\begin{document}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
\begin{frame}[t]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
\frametitle{%
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
  \begin{tabular}{@ {}c@ {}}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
  \\[5mm]
199
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    31
  \hspace{7mm}\huge PEP Scala (\liningnums{1}) 
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
  \end{tabular}}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
  \normalsize
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
  \begin{center}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
  \begin{tabular}{ll}
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
    37
    Email:  & christian.urban at kcl.ac.uk\\
195
fc3ac7b70a06 updated
Christian Urban <urbanc@in.tum.de>
parents: 174
diff changeset
    38
    Office: & N\liningnums{7.07} (North Wing, Bush House)\\
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
    39
    Slides \& Code: & KEATS\medskip\\
199
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    40
    Office Hours: &  Mondays 12:00 -- 14:00\\
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    41
           & \alert{except next week: Tuesday}
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
  \end{tabular}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
  \end{center}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
199
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    45
  %\tiny
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    46
  %developed since 2004 bv Martin Odersky
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    47
  %picture about assignments
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    48
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    49
\begin{textblock}{6}(0.5,0.5)
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    50
\includegraphics[scale=0.035]{../pics/assign.jpg}\\[-1mm]
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    51
\end{textblock}
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
\end{frame}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
\begin{frame}[c]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
\frametitle{Why Scala?}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    61
\begin{textblock}{6}(3,4)
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
\begin{tabular}{l}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
\mbox{}\hspace{-1mm}\includegraphics[scale=0.36]{../pics/twitter.png}\\[-1mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
\includegraphics[scale=0.30]{../pics/linked.png}\\
141
822adb464c90 updated
Christian Urban <urbanc@in.tum.de>
parents: 140
diff changeset
    65
\includegraphics[scale=0.30]{../pics/guardian.jpg}\\[-3mm]
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
\mbox{}\hspace{-2mm}\includegraphics[scale=0.38]{../pics/morgan.png}\\[-3mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
\includegraphics[scale=0.30]{../pics/suisse.png}\\
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    68
{\large\bf ...}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    69
\end{tabular}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    70
\end{textblock}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    71
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    72
\begin{textblock}{6}(9,4)
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
    73
\begin{tabular}{l}
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
\includegraphics[scale=0.20]{../pics/edf.png}\\[-1mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
\includegraphics[scale=0.08]{../pics/novell.png}\\[-1mm]
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
\includegraphics[scale=0.30]{../pics/foursquare.png}\\
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
\includegraphics[scale=0.30]{../pics/hsbc.png}\\
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
{\large\bf ...}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
\end{tabular}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
\end{textblock}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
199
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    82
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    83
\begin{textblock}{6}(2,12)
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    84
\begin{bubble}[9cm]
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    85
  \small
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    86
  developed since 2004 by Martin Odersky\\
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    87
  (he was behind Generic Scala which was included in Java 5)
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    88
\end{bubble}
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    89
\end{textblock}
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    90
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
\end{frame}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
174
90e0b1cc460b updated
Christian Urban <urbanc@in.tum.de>
parents: 142
diff changeset
    94
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
199
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    95
%\begin{frame}[c]
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    96
%\frametitle{Why Scala?}
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    97
%
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    98
%In the last few years there is  a ``Cambrian explosion'' of
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
    99
%languages from both academia and industry.
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   100
%
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   101
%It is essential for students to have skills to pick up new languages
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   102
%quickly.
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   103
%
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   104
%\end{frame}
174
90e0b1cc460b updated
Christian Urban <urbanc@in.tum.de>
parents: 142
diff changeset
   105
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
90e0b1cc460b updated
Christian Urban <urbanc@in.tum.de>
parents: 142
diff changeset
   106
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   107
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   108
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   109
\begin{frame}[c]
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   110
\frametitle{Why Scala?}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   111
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   112
\begin{itemize}
34
40424bbe109e updated
Christian Urban <urbanc@in.tum.de>
parents: 33
diff changeset
   113
\item compiles to the JVM\\
40424bbe109e updated
Christian Urban <urbanc@in.tum.de>
parents: 33
diff changeset
   114
  \textcolor{gray}{(also JavaScript, native X86 in the works)}\medskip
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   115
\item integrates seamlessly with Java\medskip
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   116
\item combines \underline{\bf functional} and {\bf object-oriented} programming\bigskip
34
40424bbe109e updated
Christian Urban <urbanc@in.tum.de>
parents: 33
diff changeset
   117
\item it is a bit on the ``mathematical'' side\\
199
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   118
  \textcolor{gray}{(no pointers, no \texttt{null}, but expressions)}
34
40424bbe109e updated
Christian Urban <urbanc@in.tum.de>
parents: 33
diff changeset
   119
  
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   120
\item often one can write very concise and elegant code
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   121
\end{itemize}\bigskip\medskip  
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   122
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   123
\small
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   124
alternatives:\\
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   125
Elm, Haskell, Ocaml, F$\sharp$, Erlang, ML, Lisp (Racket), \ldots
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   126
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   127
\end{frame}
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   128
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   129
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   130
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   131
\begin{frame}[c]
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   132
\frametitle{Java vs Scala}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   133
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   134
{\lstset{language=java}\fontsize{12}{12}\selectfont
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   135
\texttt{\lstinputlisting{Point.java}}}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   136
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   137
\rule{11cm}{0.3mm}\\[-2mm]
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   138
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   139
{\lstset{language=scala}\fontsize{12}{12}\selectfont
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   140
\texttt{\lstinputlisting{Point.scala}}}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   141
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   142
\begin{textblock}{6}(13,3)
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   143
\textbf{\large Java}
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   144
\end{textblock}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   145
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   146
\begin{textblock}{6}(13,13.4)
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   147
\textbf{\large Scala}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   148
\end{textblock}  
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   149
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   150
\end{frame}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   151
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   152
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   153
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
199
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   154
%\begin{frame}[c]
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   155
%\frametitle{Scala (imperative) vs Scala (functional)}
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   156
%
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   157
%Reham's example
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   158
%
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   159
%
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   160
%\end{frame}
174
90e0b1cc460b updated
Christian Urban <urbanc@in.tum.de>
parents: 142
diff changeset
   161
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
90e0b1cc460b updated
Christian Urban <urbanc@in.tum.de>
parents: 142
diff changeset
   162
90e0b1cc460b updated
Christian Urban <urbanc@in.tum.de>
parents: 142
diff changeset
   163
90e0b1cc460b updated
Christian Urban <urbanc@in.tum.de>
parents: 142
diff changeset
   164
90e0b1cc460b updated
Christian Urban <urbanc@in.tum.de>
parents: 142
diff changeset
   165
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
90e0b1cc460b updated
Christian Urban <urbanc@in.tum.de>
parents: 142
diff changeset
   166
\begin{frame}[c]
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   167
\frametitle{First Steps: Scala Tools}
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   168
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   169
\begin{itemize}
199
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   170
\item I use VS Code and a Scala extension
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   171
\begin{center}  
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   172
\includegraphics[scale=0.10]{../pics/vscode.png}\\[-10mm]\mbox{}
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   173
\end{center}\bigskip
54befaf23648 updated
Christian Urban <urbanc@in.tum.de>
parents: 195
diff changeset
   174
  
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   175
\item there is a plugin for Eclipse (called Scala IDE)\medskip
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   176
\item there is also a plugin for IntelliJ\medskip
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   177
\end{itemize}  
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   178
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   179
\end{frame}
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   180
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   181
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   182
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   183
\begin{frame}[c]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   184
  \frametitle{\bf
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   185
  \only<1>{\begin{tabular}{l}\\[2mm]Why Scala?\\ \mbox{}\end{tabular}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   186
  \only<2->{\begin{tabular}{l}\\[2mm]Why Functional\\ Programming?\end{tabular}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   187
}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   188
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   189
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   190
  %
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   191
  \mbox{}\\[3.5cm]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   192
  \small
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   193
Scala, Elm, Haskell, Ocaml, F$\sharp$, Erlang, ML, Lisp (Racket), \ldots 
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   194
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   195
\only<3>{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   196
\begin{textblock}{6}(2,6.2)
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   197
\begin{bubble}[10cm]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   198
\normalsize``If you want to see which features will be in mainstream programming
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   199
  languages tomorrow, then take a look at functional programming
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   200
  languages today.''\medskip\small\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   201
  \hfill{}---Simon Peyton Jones (works at Microsoft)\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   202
  \hfill{}main developer of the Glasgow Haskell Compiler
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   203
\end{bubble}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   204
\end{textblock}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   205
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   206
\end{frame}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   207
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   208
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   209
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   210
\begin{frame}[c]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   211
\mbox{}\\[-21mm]\mbox{}  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   212
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   213
\begin{center}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   214
  \begin{tikzpicture}[scale=1,
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   215
                      node/.style={
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   216
                      rectangle,rounded corners=3mm,
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   217
                      very thick,draw=black!50,
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   218
                      minimum height=18mm, minimum width=20mm,
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   219
                      top color=white,bottom color=black!20}]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   220
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   221
  \onslide<1-10>{                
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   222
  \node (A) at (0,0) [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   223
     {\mbox{\includegraphics[scale=0.15]{../pics/cplus2.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   224
  \node [above right] at (A.north west) {1986};}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   225
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   226
  \onslide<2->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   227
  \node (B) at (3.5,0) [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   228
     {\mbox{\includegraphics[scale=0.15]{../pics/robotron.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   229
  \node [above right] at (B.north west) {1988, C};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   230
  \draw [->,line width=4mm] (A) -- (B);}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   231
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   232
  \onslide<3->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   233
  \node (C0) at (6.3,0) {};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   234
  \node (C) at (8,0)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   235
     {\mbox{\includegraphics[scale=0.15]{../pics/sun.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   236
  \node [above right] at (C.north west) {1992, {\small Linux}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   237
  \draw [->,line width=4mm] (B) -- (C0);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   238
  \draw [->,line width=4mm] (C0) -- (C);}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   239
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   240
  \onslide<4->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   241
  \node (D) at (8,-3.3)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   242
     {\mbox{\includegraphics[scale=0.2]{../pics/gateway.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   243
  \draw [->,line width=4mm] (C) -- (D);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   244
  \node [below right] at (D.south west) {1996};}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   245
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   246
  \onslide<5->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   247
  \node (E) at (4,-3.3)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   248
     {\mbox{\includegraphics[scale=0.1]{../pics/appleg4.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   249
  \draw [->,line width=4mm] (D) -- (E);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   250
  \node [above right] at (E.north west) {2000};}   
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   251
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   252
  \onslide<6->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   253
  \node (F0) at (1.5,-3.3) {};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   254
  \node (F1) at (1,-3.3) {};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   255
  \node (F) at (-0.9,-3.3)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   256
     {\mbox{\includegraphics[scale=0.3]{../pics/appleair.png}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   257
  \draw [->,line width=4mm] (E) -- (F0);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   258
  \draw [->,line width=4mm] (F1) -- (F);   
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   259
  \node [above right] at (F.north west) {2012?};}   
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   260
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   261
  \onslide<7->{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   262
  \node (G) at (-0.9,-6.3)  [node]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   263
     {\mbox{\includegraphics[scale=0.02]{../pics/applepro.jpg}}};
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   264
  \draw [->,line width=4mm] (F) -- (G);
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   265
  \node [right] at (G.west) {\hspace{22mm}2017};}   
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   266
  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   267
  \end{tikzpicture}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   268
  \end{center}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   269
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   270
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   271
  \only<1>{%  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   272
    \begin{textblock}{10}(2.5,5)  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   273
      \includegraphics[scale=0.26]{../pics/cplus1.jpg}\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   274
      \footnotesize 64K RAM, no HD, no monitor, lots of cables
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   275
    \end{textblock}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   276
    \begin{textblock}{6}(10.9,4.5)  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   277
      \includegraphics[scale=0.09]{../pics/mand1.png}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   278
      \includegraphics[scale=0.09]{../pics/mand2.png}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   279
    \end{textblock}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   280
    \begin{textblock}{6}(10.8,2.2)  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   281
    \huge\bf 3 days
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   282
    \end{textblock}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   283
  }
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   284
  \only<8->{%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   285
  \begin{textblock}{8}(5.8,11.6)  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   286
    \large\bf
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   287
    \begin{tabular}{l@{}l}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   288
      1986:\, & no Internet\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   289
            & no Amazon\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   290
            & no FB, no mobiles,\ldots\\ 
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   291
    \end{tabular}         
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   292
    \end{textblock}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   293
  }
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   294
  \only<9>{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   295
  \begin{textblock}{1}(3,3)
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   296
    \begin{bubble}[9cm]  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   297
      \begin{tabular}{@{\hspace{8mm}}llll@{\hspace{8mm}}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   298
        \\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   299
      \multicolumn{4}{c}{\bf Speedup by Moore's Law}\medskip\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   300
      \textbf{1986:} & 3 days    & \textbf{1996:} & 135 mins\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   301
      \textbf{1988:} & 1.5 days  & \textbf{1998:} & 67 mins\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   302
      \textbf{1990:} & 18 hs     & \textbf{2000:} & 33 mins\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   303
      \textbf{1992:} & 9 hs      & \textbf{2002:} & 16 mins\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   304
      \textbf{1994:} & 4.5 hs    & \multicolumn{2}{c}{???}\\                    
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   305
      \\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   306
      \end{tabular}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   307
      \small Every two years, computers got twice as powerful.
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   308
  \end{bubble}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   309
  \end{textblock}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   310
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   311
\end{frame}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   312
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   313
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   314
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   315
\begin{frame}[c]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   316
\frametitle{Seq vs Par}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   317
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   318
\begin{center}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   319
  \begin{tabular}[t]{@{}l@{}l@{}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   320
    \includegraphics[scale=0.14]{../pics/mand4.png} &
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   321
    \raisebox{1.2mm}{\includegraphics[scale=0.14]{../pics/mand3.png}}      
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   322
  \end{tabular}     
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   323
\end{center}  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   324
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   325
\only<2>{
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   326
  \begin{textblock}{5}(12,2)
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   327
    \begin{bubble}[2.1cm]
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   328
      \footnotesize{}in Java or C++\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   329
      \includegraphics[scale=0.50]{../pics/skeleton.jpg}\\
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   330
    \end{bubble}  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   331
  \end{textblock}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   332
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   333
\only<3>{
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   334
  \begin{textblock}{14.2}(1,12.3)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   335
    In FP: Once a variable is created, it is assigned a value and then
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   336
    never changed again $\Rightarrow$ no synchronisation\smallskip\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   337
    \small\textcolor{gray}{(Andrew's second favourite feature of C++)}
137
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   338
  \end{textblock}}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   339
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   340
\end{frame}
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   341
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   342
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   343
53c769a78a1e updated
Christian Urban <urbanc@in.tum.de>
parents: 123
diff changeset
   344
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   345
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   346
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   347
\begin{frame}[c]
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   348
\frametitle{Types}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   349
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   350
\begin{itemize}
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   351
\item Base types\smallskip
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   352
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   353
  \begin{tabular}{@{}l@{}}
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   354
    \textcolor{codegreen}{\texttt{Int}},
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   355
    \textcolor{codegreen}{\texttt{Long}},
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   356
    \textcolor{codegreen}{\texttt{BigInt}},
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   357
    \textcolor{codegreen}{\texttt{Float}},
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   358
    \textcolor{codegreen}{\texttt{Double}}\\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   359
    \textcolor{codegreen}{\texttt{String}},
25
6253f4681451 updated
Christian Urban <urbanc@in.tum.de>
parents: 23
diff changeset
   360
    \textcolor{codegreen}{\texttt{Char}}\\
6253f4681451 updated
Christian Urban <urbanc@in.tum.de>
parents: 23
diff changeset
   361
    \textcolor{codegreen}{\texttt{Boolean}}
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   362
  \end{tabular}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   363
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   364
\item Compound types \smallskip   
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   365
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   366
  \begin{tabular}{@{}ll@{}}
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   367
    \textcolor{codegreen}{\texttt{List[Int]}}     & lists of Int's \\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   368
    \textcolor{codegreen}{\texttt{Set[Double]}}   & sets of Double's \\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   369
    \textcolor{codegreen}{\texttt{(Int, String)}} & Int-String pair\\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   370
    \textcolor{codegreen}{\texttt{List[(BigInt, String)]}} &
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   371
                                      lists of BigInt-String\\
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   372
                                      & pairs\\
26
a7afc2540a88 updated
Christian Urban <urbanc@in.tum.de>
parents: 25
diff changeset
   373
    \textcolor{codegreen}{\texttt{List[List[Int]]}} & list of lists of Int's\\                                  
23
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   374
  \end{tabular}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   375
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   376
\end{itemize}  
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   377
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   378
\end{frame}
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   379
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
8ac886bb0c15 updated
Christian Urban <urbanc@in.tum.de>
parents: 22
diff changeset
   380
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   381
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   382
\begin{frame}[c]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   383
\frametitle{An Http Request}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   384
  
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   385
\begin{textblock}{1}(2,5)
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   386
\begin{tabular}{c}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   387
\includegraphics[scale=0.15]{../pics/servers.png}\\[-2mm]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   388
\small Server
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   389
\end{tabular}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   390
\end{textblock}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   391
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   392
\begin{textblock}{1}(5.6,4)
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   393
  \begin{tikzpicture}[scale=1.1]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   394
  \draw[white] (0,1) node (X) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   395
  \draw[white] (2,1) node (Y) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   396
   \draw[white] (0,0) node (X1) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   397
  \draw[white] (2,0) node (Y1) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   398
   \draw[white] (0,-1) node (X2) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   399
  \draw[white] (2,-1) node (Y2) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   400
  \draw[red, <-, line width = 2mm] (X) -- (Y);
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   401
  \node [inner sep=5pt,label=above:\textcolor{black}{GET request}] at ($ (X)!.5!(Y) $) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   402
  \draw[red, ->, line width = 2mm] (X1) -- (Y1);
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   403
  \node [inner sep=5pt,label=above:\textcolor{black}{webpage}] at ($ (X1)!.5!(Y1) $) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   404
  \draw[red, <-, line width = 2mm] (X2) -- (Y2);
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   405
  \node [inner sep=7pt,label=above:\textcolor{black}{POST data}] at ($ (X2)!.5!(Y2) $) {};
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   406
  \end{tikzpicture}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   407
\end{textblock}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   408
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   409
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   410
\begin{textblock}{1}(9,5.5)
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   411
\begin{tabular}{c}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   412
\includegraphics[scale=0.15]{../pics/laptop.png}\\[-2mm]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   413
\small Browser
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   414
\end{tabular}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   415
\end{textblock}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   416
\end{frame}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   417
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   418
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   419
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   420
\begin{frame}[c]
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   421
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   422
{\lstset{language=Java}\fontsize{7}{8}\selectfont
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   423
\texttt{\lstinputlisting{URLReader.java}}}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   424
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   425
\end{frame}
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   426
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   427
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   428
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   429
\begin{frame}[c]
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   430
\frametitle{Coursework}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   431
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   432
\begin{itemize}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   433
\item sorry, I might have been a bit wordy:\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   434
  CW description is 7 pages, but
142
6f4d8b5e6d80 updated
Christian Urban <urbanc@in.tum.de>
parents: 141
diff changeset
   435
  I only needed \mbox{< 150} loc for all the CW\bigskip
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   436
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   437
\item there is email feedback when pushing code to github\bigskip
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   438
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   439
\item we want you to learn FP: \alert{no vars}, no mutable
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   440
  datastructures, e.g.~\texttt{ListBuffer}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   441
\end{itemize}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   442
\end{frame}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   443
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   444
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   445
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   446
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   447
\begin{frame}[c, fragile]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   448
\frametitle{The Joy of Immutability}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   449
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   450
\begin{itemize}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   451
\item If you need to manipulate some data in a list say, then you make
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   452
  a new list with the updated values, rather than revise the original
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   453
  list. Easy!\medskip
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   454
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   455
  {\small
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   456
  \begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-1mm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   457
    val old_list = List(1, 2, 3, 5)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   458
    val new_list = 0 :: old_list
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   459
  \end{lstlisting}}  
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   460
  
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   461
\item You do not have to be defensive about who can access the data
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   462
  (concurrency, lazyness).
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   463
\end{itemize}  
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   464
\end{frame}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   465
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   466
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   467
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   468
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   469
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   470
\begin{frame}[t]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   471
\frametitle{Email: Hate 'val'}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   472
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   473
\mbox{}\\[-25mm]\mbox{}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   474
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   475
\begin{center}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   476
  \begin{bubble}[10.5cm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   477
  Subject: \textbf{Hate '\textbf{\texttt{val}}'}\hfill 01:00 AM\medskip\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   478
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   479
  Hello Mr Urban,\medskip\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   480
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   481
  I just wanted to ask, how are we suppose to work
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   482
  with the completely useless \textbf{\texttt{val}}, that can’t be changed ever? Why is
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   483
  this rule active at all? I’ve spent 4 hours not thinking on the
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   484
  coursework, but how to bypass this annoying rule. What’s the whole
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   485
  point of all these coursework, when we can’t use everything Scala
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   486
  gives us?!?\medskip\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   487
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   488
  Regards.\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   489
  \mbox{}\hspace{5mm}\textcolor{black!50}{<<deleted>>}\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   490
  \end{bubble}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   491
\end{center}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   492
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   493
\end{frame}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   494
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   495
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   496
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   497
\begin{frame}[c]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   498
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   499
\mbox{}\\[-25mm]\mbox{}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   500
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   501
\begin{center}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   502
  \begin{bubble}[10.5cm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   503
  Subject: \textbf{Re: Hate '\textbf{\texttt{val}}'}\hfill 01:02 AM\bigskip\bigskip\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   504
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   505
  \textcolor{black!70}{
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   506
    \textit{\large<<my usual rant about fp\ldots\\ concurrency bla bla\ldots{} better programs
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   507
    yada>>}}\bigskip\bigskip\bigskip
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   508
  
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   509
  PS: What are you trying to do where you desperately want to use \texttt{var}?
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   510
  \end{bubble}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   511
\end{center}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   512
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   513
\end{frame}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   514
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   515
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   516
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   517
\begin{frame}[c,fragile]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   518
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   519
\begin{textblock}{6}(0.5,0.5)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   520
\begin{bubble}[11.5cm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   521
  \small  
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   522
  Subject: \textbf{Re: Re: Hate '\textbf{\texttt{val}}'}\hfill 01:04 AM\medskip\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   523
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   524
  \textbf{Right now my is\_legal function works fine:}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   525
  
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   526
\footnotesize\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-1mm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   527
 def is_legal(dim: Int, path: Path)(x: Pos): Boolean = {
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   528
   var boolReturn = false
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   529
   if(x._1 > dim || x._2 > dim || x._1 < 0 || x._2 < 0) {
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   530
   else { var breakLoop = false
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   531
          if(path == Nil) { boolReturn = true }
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   532
          else { for(i <- 0 until path.length) {
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   533
                    if(breakLoop == false) {
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   534
                      if(path(i) == x) {
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   535
                        boolReturn = true
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   536
                        breakLoop = true
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   537
                      }
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   538
                      else { boolReturn = false }
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   539
                    } else breakLoop
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   540
            }
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   541
          }
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   542
          boolReturn
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   543
   }
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   544
\end{lstlisting}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   545
\end{bubble}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   546
\end{textblock}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   547
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   548
\begin{textblock}{6}(8.2,11.8)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   549
\begin{bubble}[5.5cm]\footnotesize\bf
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   550
\ldots{}but I can’t make it work with boolReturn being val. What approach would
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   551
you recommend in this case, and is using var in this case justified?
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   552
\end{bubble}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   553
\end{textblock}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   554
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   555
\only<2>{
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   556
\begin{textblock}{6}(0.3,11.8)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   557
  \begin{bubble}[3.1cm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   558
    \textbf{Me:}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   559
    \raisebox{-12mm}{\includegraphics[scale=0.08]{../pics/throwup.jpg}}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   560
  \end{bubble}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   561
\end{textblock}}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   562
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   563
\end{frame}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   564
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   565
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   566
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   567
\begin{frame}[t,fragile]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   568
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   569
\mbox{}\\[-25mm]\mbox{}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   570
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   571
\begin{textblock}{6}(0.5,2)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   572
  \begin{bubble}[11.5cm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   573
  Subject: \textbf{Re: Re: Re: Hate '\textbf{\texttt{val}}'}\hfill 01:06 AM\bigskip\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   574
  \small
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   575
  
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   576
  OK. So you want to make sure that the \texttt{x}-position is not outside the
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   577
  board....and furthermore you want to make sure that the \texttt{x}-position
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   578
  is not yet in the path list. How about something like\bigskip
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   579
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   580
\footnotesize\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-1mm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   581
 def is_legal(dim: Int, path: Path)(x: Pos): Boolean = 
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   582
   ...<<some board conditions>>... && !path.contains(x)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   583
\end{lstlisting}\bigskip
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   584
  
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   585
  \small Does not even contain a \texttt{val}.
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   586
  \end{bubble}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   587
\end{textblock}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   588
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   589
\begin{textblock}{6}(7,12)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   590
\footnotesize\textcolor{black!50}{(This is all on one line)}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   591
\end{textblock}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   592
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   593
\end{frame}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   594
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   595
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   596
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   597
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   598
\begin{frame}[t,fragile]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   599
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   600
\mbox{}\\[-15mm]\mbox{}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   601
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   602
\begin{textblock}{6}(1,3)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   603
  \begin{bubble}[10.5cm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   604
    Subject: \textbf{Re: Re: Re: Re: Hate '\textbf{\texttt{val}}'}\hfill 11:02 AM\bigskip\bigskip\\
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   605
    
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   606
    THANK YOU! You made me change my coding perspective. Because of you,
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   607
    I figured out the next one\ldots
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   608
  \end{bubble}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   609
\end{textblock}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   610
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   611
\only<2>{
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   612
\begin{textblock}{6}(0.3,11.8)
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   613
  \begin{bubble}[3.1cm]
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   614
    \textbf{Me:}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   615
    \raisebox{-12mm}{\includegraphics[scale=0.15]{../pics/happy.jpg}}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   616
  \end{bubble}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   617
\end{textblock}}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   618
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   619
\end{frame}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   620
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   621
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   622
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   623
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   624
\begin{frame}[c]
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   625
\frametitle{Conclusion}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   626
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   627
\begin{itemize}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   628
\item Scala is still under heavy development\\ (the compiler is terribly slow)\medskip
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   629
\item {\bf\url{http://www.scala-lang.org/}}\bigskip
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   630
  
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   631
\item it is a rather \textbf{\alert{deep}} language\ldots i.e.~gives
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   632
  you a lot of rope to shoot yourself\bigskip
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   633
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   634
\item learning functional programming is not easy\ldots{}when you have
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   635
  spent all of your career thinking in a procedural way it is hard to
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   636
  change\bigskip\medskip
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   637
  
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   638
\item hope you have fun with the coursework  
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   639
\end{itemize}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   640
\end{frame}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   641
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   642
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   643
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   644
\begin{frame}[c]
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   645
\frametitle{\begin{tabular}{c}\\[0cm]\alert{Questions?}\end{tabular}}
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   646
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   647
\begin{center}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   648
  \begin{tabular}[t]{@{}l@{}l@{}}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   649
    \includegraphics[scale=0.1]{../pics/mand4.png} &
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   650
    \raisebox{1.2mm}{\includegraphics[scale=0.1]{../pics/mand3.png}}      
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   651
  \end{tabular}     
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   652
\end{center}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   653
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   654
\begin{center}
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   655
My Scala Office Hours: Thursdays 11 -- 13
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   656
\end{center}
33
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   657
\end{frame}
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   658
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
b6cb302633eb updated
Christian Urban <urbanc@in.tum.de>
parents: 32
diff changeset
   659
\end{document}
32
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   660
45557ad18ea6 updated
Christian Urban <urbanc@in.tum.de>
parents: 26
diff changeset
   661
22
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   662
\end{document}
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   663
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   664
%%% Local Variables:  
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   665
%%% mode: latex
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   666
%%% TeX-master: t
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   667
%%% End: 
9830203b058d updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   668
140
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   669
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   670
“Functional programming is often regarded as the best-kept secret of
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   671
scientific modelers, mathematicians, artificial intelligence
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   672
researchers, financial institutions, graphic designers, CPU designers,
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   673
compiler programmers, and telecommunications engineers.”
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   674
ecec79b9ab25 updated
Christian Urban <urbanc@in.tum.de>
parents: 137
diff changeset
   675
The Wikipedia F# page