320
+ − 1
% !TEX program = xelatex
365
+ − 2
\documentclass[dvipsnames,14pt,t,xelatex,aspectratio=169,xcolor={table}]{beamer}
448
+ − 3
\usepackage{../styles/slides}
+ − 4
\usepackage{../styles/mygraphs}
+ − 5
\usepackage{../styles/langs}
155
+ − 6
%%\usepackage{../data}
320
+ − 7
\usetikzlibrary{shapes}
67
+ − 8
\usepackage[export]{adjustbox}
66
+ − 9
481
+ − 10
66
+ − 11
\hfuzz=220pt
+ − 12
481
+ − 13
\usepackage{tcolorbox}
+ − 14
\newtcolorbox{mybox}{colback=red!5!white,colframe=red!75!black}
+ − 15
\newtcolorbox{mybox2}[1]{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries,title=#1}
+ − 16
\newtcolorbox{mybox3}[1]{colback=Cyan!5!white,colframe=Cyan!75!black,fonttitle=\bfseries,title=#1}
+ − 17
+ − 18
+ − 19
+ − 20
66
+ − 21
%\setmonofont[Scale=.88]{Consolas}
+ − 22
%\newfontfamily{\consolas}{Consolas}
+ − 23
+ − 24
\lstset{language=Scala,
+ − 25
style=mystyle,
+ − 26
numbersep=0pt,
+ − 27
numbers=none,
+ − 28
xleftmargin=0mm}
+ − 29
+ − 30
\newcommand{\bl}[1]{\textcolor{blue}{#1}}
+ − 31
+ − 32
% beamer stuff
67
+ − 33
\renewcommand{\slidecaption}{PEP (Scala) 03, King's College London}
66
+ − 34
320
+ − 35
\newcommand{\UParrow}[3]{%
+ − 36
\begin{textblock}{0}(#2,#3)%
+ − 37
\onslide<#1>{%
+ − 38
\begin{tikzpicture}%
+ − 39
\node at (0,0) [single arrow, shape border rotate=90, fill=red,text=red]{a};%
+ − 40
\end{tikzpicture}}%
+ − 41
\end{textblock}}
+ − 42
+ − 43
\newcommand{\DOWNarrow}[3]{%
+ − 44
\begin{textblock}{0}(#2,#3)%
+ − 45
\onslide<#1>{%
+ − 46
\begin{tikzpicture}%
+ − 47
\node at (0,0) [single arrow, shape border rotate=270, fill=red,text=red]{a};%
+ − 48
\end{tikzpicture}}%
+ − 49
\end{textblock}}
+ − 50
66
+ − 51
\begin{document}
+ − 52
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 53
\begin{frame}[t]
+ − 54
\frametitle{%
+ − 55
\begin{tabular}{@ {}c@ {}}
+ − 56
\\[5mm]
481
+ − 57
\hspace{7mm}\huge PEP Scala (\liningnums{3})
66
+ − 58
\end{tabular}}
+ − 59
+ − 60
\normalsize
+ − 61
\begin{center}
+ − 62
\begin{tabular}{ll}
155
+ − 63
Email: & christian.urban at kcl.ac.uk\\
365
+ − 64
%Office: & N\liningnums{7.07} (North Wing, Bush House)\bigskip\\
320
+ − 65
Slides \& Code: & KEATS\bigskip\\
448
+ − 66
481
+ − 67
Office Hour: & Fridays 13:00 -- 14:00\\
448
+ − 68
Location: & N7.07 (North Wing, Bush House)\bigskip\\
+ − 69
+ − 70
Pollev: & \texttt{\alert{https://pollev.com/cfltutoratki576}}\\ \\
481
+ − 71
%Additionally: & (for Scala) Tuesdays 10:45 -- 11:45\\
66
+ − 72
\end{tabular}
+ − 73
\end{center}
+ − 74
481
+ − 75
%\tiny
+ − 76
%developed since 2004 bv Martin Odersky
+ − 77
%picture about assignments
+ − 78
+ − 79
\begin{textblock}{6}(0.5,0.5)
+ − 80
\includegraphics[scale=0.035]{../pics/assign.jpg}\\[-1mm]
+ − 81
\end{textblock}
+ − 82
66
+ − 83
\end{frame}
+ − 84
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 85
481
+ − 86
+ − 87
217
+ − 88
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
365
+ − 89
% \begin{frame}[c]
+ − 90
% \frametitle{Preliminary 6}
217
+ − 91
365
+ − 92
% Raw marks (261 submissions):\bigskip
217
+ − 93
365
+ − 94
% \begin{itemize}
+ − 95
% \item 3\%: \hspace{4mm}219
+ − 96
% \item 2\%: \hspace{4mm}19
+ − 97
% \item 1\%: \hspace{4mm}0
+ − 98
% \item 0\%: \hspace{4mm}23 \;(4 no submission)
+ − 99
% \end{itemize}
+ − 100
% \end{frame}
217
+ − 101
+ − 102
+ − 103
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 104
66
+ − 105
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67
+ − 106
\begin{frame}[c,fragile]
320
+ − 107
\frametitle{Default Arguments}
67
+ − 108
217
+ − 109
\small
320
+ − 110
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-3mm]
+ − 111
def collatzHelper(n: Int, a: Int = 0) : Int = ...
217
+ − 112
67
+ − 113
320
+ − 114
collatzHelper(n, 3)
+ − 115
collatzHelper(n, 0)
+ − 116
+ − 117
collatzHelper(n) // a = 0
155
+ − 118
\end{lstlisting}
217
+ − 119
448
+ − 120
\DOWNarrow{1}{8.3}{3.4}
67
+ − 121
+ − 122
\end{frame}
+ − 123
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 124
+ − 125
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
320
+ − 126
\begin{frame}[c,fragile]
+ − 127
\frametitle{Last Week: Options \& HO Funs.}
67
+ − 128
320
+ − 129
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-1mm]
+ − 130
List(7,2,3,4,5,6).find(_ < 4)
+ − 131
res: Option[Int] = Some(2)
+ − 132
+ − 133
+ − 134
List(5,6,7,8,9).find(_ < 4)
+ − 135
res: Option[Int] = None
+ − 136
+ − 137
+ − 138
List(1,2,3,4,5).map(x => x * x)
+ − 139
res: List[Int] = List(1, 4, 9, 16, 25)
+ − 140
\end{lstlisting}
+ − 141
+ − 142
\end{frame}
+ − 143
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 144
+ − 145
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 146
\begin{frame}[c,fragile]
+ − 147
\frametitle{Web-Crawler (1)}
+ − 148
+ − 149
\small
+ − 150
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-7mm]
+ − 151
def get_page(url: String) : String = {
+ − 152
Try(fromURL(url)("ISO-8859-1").take(10000).mkString)
+ − 153
.getOrElse { println(s" Problem with: $url"); ""}
+ − 154
}
+ − 155
\end{lstlisting}
+ − 156
\end{frame}
+ − 157
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 158
+ − 159
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 160
\begin{frame}[c,fragile]
+ − 161
\frametitle{Web-Crawler (2)}
+ − 162
+ − 163
\small
+ − 164
\begin{lstlisting}[language=Scala, numbers=none,
+ − 165
xleftmargin=-7mm, escapeinside={(*@}{@*)}]
+ − 166
val http_pattern = """(*@\textcolor{codegreen}{"}@*)https?://[\^(*@\textcolor{codegreen}{"}@*)]*(*@\textcolor{codegreen}{"}@*)""".r
+ − 167
val email_pattern =
+ − 168
"""([a-z\d\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})""".r
+ − 169
+ − 170
+ − 171
def unquote(s: String) = s.drop(1).dropRight(1)
+ − 172
+ − 173
+ − 174
def get_all_URLs(page: String): Set[String] =
+ − 175
http_pattern.findAllIn(page).map(unquote).toSet
+ − 176
+ − 177
// returns all URLs in a page
+ − 178
\end{lstlisting}
+ − 179
+ − 180
\end{frame}
+ − 181
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 182
+ − 183
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 184
\begin{frame}[c,fragile]
+ − 185
\frametitle{Web-Crawler (3)}
+ − 186
+ − 187
\small
+ − 188
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-1mm]
+ − 189
def crawl(url: String, n: Int) : Unit = {
+ − 190
if (n == 0) ()
+ − 191
else {
+ − 192
println(s" Visiting: $n $url")
+ − 193
val page = get_page(url)
+ − 194
for (u <- get_all_URLs(page))
+ − 195
crawl(u, n - 1)
+ − 196
}
+ − 197
}
+ − 198
\end{lstlisting}
+ − 199
\end{frame}
+ − 200
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 201
+ − 202
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 203
\begin{frame}[c,fragile]
+ − 204
\frametitle{Email Harvester}
+ − 205
+ − 206
\small
+ − 207
\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=-3mm]
+ − 208
def emails(url: String, n: Int) : Set[String] = {
+ − 209
if (n == 0) Set()
+ − 210
else {
+ − 211
println(s" Visiting: $n $url")
+ − 212
val page = get_page(url)
+ − 213
val new_emails =
+ − 214
email_pattern.findAllIn(page).toSet
+ − 215
new_emails ++
+ − 216
(for (u <- get_all_URLs(page))
+ − 217
yield emails(u, n - 1)).flatten
+ − 218
}
+ − 219
}
+ − 220
+ − 221
\end{lstlisting}
+ − 222
\end{frame}
+ − 223
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 224
+ − 225
+ − 226
+ − 227
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
68
+ − 228
\begin{frame}[c]
217
+ − 229
\frametitle{Jumping Towers}
+ − 230
+ − 231
\begin{center}
320
+ − 232
\begin{tikzpicture}[scale=1.3]
217
+ − 233
\draw[line width=1mm,cap=round] (0,0) -- (5,0);
+ − 234
\draw[line width=1mm,cap=round] (0,1) -- (5,1);
+ − 235
+ − 236
\draw[line width=1mm,cap=round] (0,0) -- (0,1);
+ − 237
\node at (0.5,0.5) {\textbf{\Large 3}};
+ − 238
+ − 239
\draw[line width=1mm,cap=round] (1,0) -- (1,1);
+ − 240
\node at (1.5,0.5) {\textbf{\Large 4}};
+ − 241
+ − 242
\draw[line width=1mm,cap=round] (2,0) -- (2,1);
+ − 243
\node at (2.5,0.5) {\textbf{\Large 2}};
67
+ − 244
217
+ − 245
\draw[line width=1mm,cap=round] (3,0) -- (3,1);
+ − 246
\node at (3.5,0.5) {\textbf{\Large 0}};
+ − 247
+ − 248
\draw[line width=1mm,cap=round] (4,0) -- (4,1);
+ − 249
+ − 250
\node at (4.5,0.5) {\textbf{\Large 1}};
+ − 251
+ − 252
\draw[line width=1mm,cap=round] (5,0) -- (5,1);
67
+ − 253
217
+ − 254
\draw[->,line width=0.5mm,cap=round,out=90,in=90,relative] (0.5,1) to (1.5,1);
+ − 255
\draw[->,line width=0.5mm,cap=round,out=90,in=90,relative] (0.5,1) to (2.5,1);
+ − 256
\draw[->,line width=0.5mm,cap=round,out=90,in=90,relative] (0.5,1) to (3.5,1);
+ − 257
+ − 258
\draw[->,line width=0.5mm,cap=round,out=-90,in=-90,relative] (2.5,0) to (3.5,0);
+ − 259
\draw[->,line width=0.5mm,cap=round,out=-90,in=-90,relative] (2.5,0) to (4.5,0);
67
+ − 260
217
+ − 261
\draw[->,line width=0.5mm,cap=round,out=90,in=90,relative] (4.5,1) to (5.7,1);
+ − 262
\node at (5.7, 0.8) {End};
+ − 263
\end{tikzpicture}
+ − 264
\end{center}\bigskip
+ − 265
+ − 266
+ − 267
shortest: 3 $\rightarrow$ 4 $\rightarrow$ End
+ − 268
67
+ − 269
\end{frame}
+ − 270
+ − 271
+ − 272
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 273
70
+ − 274
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 275
\begin{frame}[c]
366
+ − 276
\frametitle{next moves}
70
+ − 277
217
+ − 278
\begin{center}
+ − 279
\begin{tikzpicture}
+ − 280
[grow=right,level distance=30mm,child anchor=north,line width=0.5mm]
+ − 281
\node {$[3,4,2,0,1]$}
+ − 282
child {node {$[0,1]$}}
+ − 283
child {node {$[2,0,1]$}
+ − 284
child {node {$[1]$} child [level distance=13mm] {node {End}}}
+ − 285
child {node {$[0,1]$}}
+ − 286
}
+ − 287
child {node {$[4,2,0,1]$\ldots}};
+ − 288
\end{tikzpicture}
+ − 289
\end{center}
+ − 290
366
+ − 291
\begin{textblock}{4}(13,12)
+ − 292
\includegraphics[scale=0.06]{../pics/chess.jpg}
+ − 293
\end{textblock}
+ − 294
320
+ − 295
\end{frame}
+ − 296
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
217
+ − 297
320
+ − 298
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 299
\begin{frame}[c,fragile]
+ − 300
\frametitle{Reverse Polish Notation}
+ − 301
+ − 302
{\Large\bl{$(3 + 1) * (2 + 9)$}}\bigskip
+ − 303
+ − 304
{\Large$\Rightarrow$}\bigskip
+ − 305
+ − 306
{\;\;\Large\bl{$3\;\;1\;+\;2\;\;9\;+\;*$}}
323
+ − 307
+ − 308
\begin{textblock}{3}(11,4)
+ − 309
\begin{onlyenv}<2>
+ − 310
\begin{lstlisting}[language=JVMIS]
+ − 311
ldc 3
+ − 312
ldc 1
+ − 313
iadd
+ − 314
ldc 2
+ − 315
ldc 9
+ − 316
iadd
+ − 317
imul
+ − 318
\end{lstlisting}
+ − 319
\end{onlyenv}
+ − 320
\end{textblock}
+ − 321
320
+ − 322
\end{frame}
+ − 323
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 324
+ − 325
365
+ − 326
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 327
% \begin{frame}[c,fragile]
+ − 328
% \frametitle{Sudoku}
320
+ − 329
365
+ − 330
% A very simple-minded version on 110 problems:\bigskip
320
+ − 331
365
+ − 332
% \begin{itemize}
+ − 333
% \item 1 core: 800 secs
+ − 334
% \item 2 cores: 400 secs
+ − 335
% \item 8 cores: 290 secs
+ − 336
% \item 18 cores: 142 secs
+ − 337
% \end{itemize}
217
+ − 338
365
+ − 339
% \end{frame}
+ − 340
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
320
+ − 341
365
+ − 342
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 343
% \begin{frame}[t]
323
+ − 344
365
+ − 345
% \begin{center}
+ − 346
% \includegraphics[scale=0.3]{../pics/blow.png}
+ − 347
% \end{center}
323
+ − 348
365
+ − 349
% \begin{textblock}{14}(2,11.4)
+ − 350
% \large\bf{}Mind-Blowing Programming Languages:\\
+ − 351
% \centering JavaScript
+ − 352
% \end{textblock}
+ − 353
% \end{frame}
+ − 354
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
217
+ − 355
382
+ − 356
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
448
+ − 357
%\begin{frame}[t]
+ − 358
%\frametitle{Preliminary 1 (Scala)}
+ − 359
%
+ − 360
%Raw marks (298 submissions):\bigskip
+ − 361
%
+ − 362
%\begin{itemize}
+ − 363
%\item 3\%: \hspace{4mm}227
+ − 364
%\item 2\%: \hspace{4mm}35
+ − 365
%\item 1\%: \hspace{4mm}9
+ − 366
%\item 0\%: \hspace{4mm}27
+ − 367
%\end{itemize}
+ − 368
%
+ − 369
%
+ − 370
%\end{frame}
384
+ − 371
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
448
+ − 372
%\begin{frame}[t]
+ − 373
%\frametitle{Preliminary 2 (Scala)}
+ − 374
%
+ − 375
%Raw marks (301 submissions):\bigskip%
+ − 376
%
+ − 377
%\begin{itemize}
+ − 378
%\item 3.0\%: \hspace{4mm}236
+ − 379
%\item 2.5\%: \hspace{4mm}5
+ − 380
%\item 2.0\%: \hspace{4mm}7
+ − 381
%\item 1.5\%: \hspace{4mm}13
+ − 382
%\item 1.0\%: \hspace{4mm}1
+ − 383
%\item 0.5\%: \hspace{4mm}2
+ − 384
%\item 0.0\%: \hspace{4mm}37
+ − 385
%\end{itemize}
+ − 386
%
+ − 387
%
+ − 388
%\end{frame}
+ − 389
%
+ − 390
%\begin{frame}<1-20>
+ − 391
%\end{frame}
66
+ − 392
449
+ − 393
\begin{frame}<1-10>[t]
+ − 394
+ − 395
\end{frame}
+ − 396
+ − 397
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 398
\begin{frame}[t,fragile]
+ − 399
\frametitle{\mbox{}\hspace{40mm}\textbf{Testing Server}}
+ − 400
+ − 401
\begin{textblock}{5}(2,6)
+ − 402
\includegraphics[scale=0.35]{../pics/commits.png}
+ − 403
\end{textblock}
+ − 404
+ − 405
\end{frame}
+ − 406
481
+ − 407
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 408
{
+ − 409
\setbeamercolor{background canvas}{bg=cream}
+ − 410
\begin{frame}[c]
+ − 411
\frametitle{\mbox{}\hspace{40mm}\textbf{Feedback in
+ − 412
\textcolor{red}{\underline{CFL}!}}}
+ − 413
+ − 414
\begin{minipage}{1.3\textwidth}
+ − 415
\begin{mybox3}{End-of-year feedback for 6CCS3CFL in 2019}\it\small
+ − 416
Unequivocally the worst module I've taken on this course. The subject
+ − 417
matter is fascinating, however the insistence on the use of this
+ − 418
abomination of a language "Scala" completely ruins it. If you're going
+ − 419
to teach something as complex as this, use a proper language, not some
+ − 420
"object oriented functional" abomination. Use C, you know, the
+ − 421
language that real compilers are written in. I will go to the end of
+ − 422
the earth to dissuade others from taking this module so long as Scala
+ − 423
is still being used.\\
+ − 424
\mbox{}\hfill-- Lone voice in the end-of-year feedback in 2019
+ − 425
\end{mybox3}
+ − 426
\end{minipage}\bigskip
+ − 427
+ − 428
\end{frame}
+ − 429
}
+ − 430
+ − 431
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 432
{\definecolor{rred}{HTML}{C0504D}
+ − 433
\setbeamercolor{background canvas}{bg=cream}
+ − 434
\begin{frame}[c]
+ − 435
\frametitle{Students in CFL}
+ − 436
+ − 437
\begin{center}
+ − 438
\begin{tikzpicture}
+ − 439
\begin{axis}[symbolic x coords={2016,2017,2018,2019,2020,2021,2022,2023},
+ − 440
width = \textwidth,
+ − 441
height = 5cm,
+ − 442
bar width=8mm,
+ − 443
nodes near coords,
+ − 444
axis lines = left,
+ − 445
text=black,
+ − 446
ymin=0,
+ − 447
clip=false,
+ − 448
hide y axis,
+ − 449
axis line style={-},
+ − 450
name=mygraph
+ − 451
]
+ − 452
+ − 453
\addplot[ybar,style={rred,fill=rred!75,mark=none},text=black] coordinates {
+ − 454
(2023,183)
+ − 455
(2022,112)
+ − 456
(2021,98)
+ − 457
(2020,59)
+ − 458
(2019,38)
+ − 459
(2018,20)
+ − 460
(2017,22)
+ − 461
(2016,8)};
+ − 462
\end{axis}
+ − 463
\node[anchor=north, yshift=-10mm] at (mygraph.south) {\small{}Student numbers since the start of the compiler module.};
+ − 464
+ − 465
\end{tikzpicture}
+ − 466
\end{center}
+ − 467
+ − 468
\begin{textblock}{5}(12, 2.5)
+ − 469
\includegraphics[scale=0.15]{../pics/cfl.png}\\
+ − 470
\hspace{5mm}2021
+ − 471
\end{textblock}
+ − 472
+ − 473
\begin{textblock}{5}(12, 9)
+ − 474
\includegraphics[scale=0.15]{../pics/cfl2021.png}\\
+ − 475
\hspace{5mm}2022
+ − 476
\end{textblock}
+ − 477
\end{frame}
+ − 478
}
+ − 479
+ − 480
+ − 481
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 482
{
+ − 483
\setbeamercolor{background canvas}{bg=cream}
+ − 484
\begin{frame}[c]
+ − 485
+ − 486
\mbox{}\\[-4mm]
+ − 487
+ − 488
\begin{minipage}{1.3\textwidth}
+ − 489
\begin{mybox3}{One comment from this year}\it\small
+ − 490
I feel like the module's point is to help us experience what it is
+ − 491
like to program very challenging problems, it's not very realistic
+ − 492
as in a realistic scenario we would have access to the internet, and
+ − 493
other people's code and may collaborate. I feel like the point of
+ − 494
the module is taken away due to how the plagiarism and collusion
+ − 495
rules are put into place.
+ − 496
\end{mybox3}
+ − 497
\end{minipage}\smallskip
+ − 498
+ − 499
\begin{minipage}{1.3\textwidth}
+ − 500
\begin{mybox3}{Another comment from this year}\it\small
+ − 501
To prepare students for the C++ coursework better, for example introducing recursion and/or backtracking, because that is a big part of the coursework but wasn't even touched upon in the videos
+ − 502
\end{mybox3}
+ − 503
\end{minipage}\smallskip
+ − 504
+ − 505
\begin{minipage}{1.3\textwidth}
+ − 506
\begin{mybox3}{Even another comment from this year}\it\small
+ − 507
The coursework is too difficult.
+ − 508
\end{mybox3}
+ − 509
\end{minipage}
+ − 510
+ − 511
+ − 512
+ − 513
\end{frame}
+ − 514
}
+ − 515
+ − 516
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 517
{
+ − 518
\setbeamercolor{background canvas}{bg=cream}
+ − 519
\begin{frame}[c]
+ − 520
+ − 521
\begin{itemize}
+ − 522
\item we reduced the amount of work this year and gave more time for C++ CW
+ − 523
\item we recruited TA's for\bigskip
+ − 524
+ − 525
installation problems:
+ − 526
\begin{itemize}
+ − 527
\item Oscar Sjostedt (\texttt{\small{}oscar.sjostedt@kcl.ac.uk})
+ − 528
\item Nicole Lehchevska (\texttt{\small{}nicole.lehchevska@kcl.ac.uk})\bigskip
+ − 529
\end{itemize}
+ − 530
github problems:
+ − 531
\begin{itemize}
+ − 532
\item Quan Tran (\texttt{\small{}anh.tran@kcl.ac.uk})\bigskip
+ − 533
\end{itemize}
+ − 534
discussion forum / general problems:
+ − 535
\begin{itemize}
+ − 536
\item Ruben Ticehurst-James (\texttt{\small{}ruben.ticehurst-james@kcl.ac.uk})
+ − 537
\end{itemize}
+ − 538
\end{itemize}
+ − 539
+ − 540
\only<2->{
+ − 541
\begin{textblock}{7}(9, 8)
+ − 542
\textcolor{red}{\Large\bf Could you
+ − 543
please spend the next 10 mins to fill
+ − 544
out the end-of-year feedback.}
+ − 545
\includegraphics[scale=0.035]{thanks.png}
+ − 546
\end{textblock}}
+ − 547
+ − 548
\end{frame}
+ − 549
}
+ − 550
449
+ − 551
+ − 552
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − 553
66
+ − 554
+ − 555
\end{document}
+ − 556
+ − 557
%%% Local Variables:
+ − 558
%%% mode: latex
+ − 559
%%% TeX-master: t
+ − 560
%%% End:
+ − 561