From 2d777c552142a27df8149286badd4789da3dd5b7 Mon Sep 17 00:00:00 2001 From: Jan Benda Date: Mon, 30 Nov 2015 10:45:13 +0100 Subject: [PATCH] Added some nice quotes. Added more TODO sections --- bootstrap/lecture/bootstrap-chapter.tex | 6 +++++ header.tex | 7 +++++ likelihood/lecture/likelihood-chapter.tex | 5 ++++ .../lecture/pointprocesses-chapter.tex | 6 +++++ programming/lecture/programming.tex | 7 +++-- programmingstyle/lecture/programmingstyle.tex | 27 +++++++++++++++---- statistics/lecture/statistics-chapter.tex | 7 +++++ 7 files changed, 56 insertions(+), 9 deletions(-) diff --git a/bootstrap/lecture/bootstrap-chapter.tex b/bootstrap/lecture/bootstrap-chapter.tex index 2b3dbe8..dc5b25b 100644 --- a/bootstrap/lecture/bootstrap-chapter.tex +++ b/bootstrap/lecture/bootstrap-chapter.tex @@ -16,4 +16,10 @@ \input{bootstrap} +\section{TODO} +\begin{itemize} +\item Proper introduction of confidence intervals +\item Proper introduction of statistical tests (significance, power, etc.) +\end{itemize} + \end{document} diff --git a/header.tex b/header.tex index 53a6386..2e3face 100644 --- a/header.tex +++ b/header.tex @@ -218,6 +218,13 @@ \newcommand{\matlab}{\texorpdfstring{MATLAB$^{\copyright}$}{MATLAB}} \newcommand{\matlabfun}[2][]{(\tr{\matlab-function}{\matlab-Funktion} \setlength{\fboxsep}{0.5ex}\colorbox{codeback}{\texttt{#2}})\ifthenelse{\equal{#1}{}}{\protect\sindex[code]{#2}}{\protect\sindex[code]{#1}}} +%%%%% shortquote and widequote commands: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% \shortquote{Something to be quoted}{Source} +\newcommand{\shortquote}[2]{\begin{list}{}{\rightmargin\leftmargin}\item\relax\itshape #1 \hfill \upshape #2\end{list}} + +% \widequote{Something to be quoted}{Source} +\newcommand{\widequote}[2]{{\itshape #1} \hfill #2} + %%%%% exercises environment: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % usage: % diff --git a/likelihood/lecture/likelihood-chapter.tex b/likelihood/lecture/likelihood-chapter.tex index bb4182a..2bcc35b 100644 --- a/likelihood/lecture/likelihood-chapter.tex +++ b/likelihood/lecture/likelihood-chapter.tex @@ -16,4 +16,9 @@ \input{likelihood} +\section{TODO} +\begin{itemize} +\item GLM model fitting? +\end{itemize} + \end{document} diff --git a/pointprocesses/lecture/pointprocesses-chapter.tex b/pointprocesses/lecture/pointprocesses-chapter.tex index f9f25a7..4570c91 100644 --- a/pointprocesses/lecture/pointprocesses-chapter.tex +++ b/pointprocesses/lecture/pointprocesses-chapter.tex @@ -16,5 +16,11 @@ \input{pointprocesses} +\section{TODO} +\begin{itemize} +\item Add spikeraster function +\item Multitrial firing rates +\end{itemize} + \end{document} diff --git a/programming/lecture/programming.tex b/programming/lecture/programming.tex index 71dc926..a999a0a 100644 --- a/programming/lecture/programming.tex +++ b/programming/lecture/programming.tex @@ -1023,6 +1023,7 @@ darum, dass es schwerwiegende Nachteile gibt: \item Fehleranf\"alligkeit: Beim ``Copy-and-paste'' kann leicht vergessen werden in einzelnen Wiederholungen die entscheidende \"Anderung auch wirklich vorzunehmen. + \shortquote{Copy and paste is a design error.}{David Parnas} \item Flexibilit\"at: Das obige Programm ist f\"ur genau einen Zweck, Berechnung der Fakult\"at von f\"unf, gemacht und kann nichts anderes. @@ -1056,16 +1057,14 @@ Schl\"usselwort \code{end} beendet. Listing \ref{looplisting} zeigt das Grundger\"ust einer for-Schleife. \begin{lstlisting}[caption={Beispiel einer \varcode{for}-Schleife.}, label=looplisting] ->> for x = 1:5 +>> for x = 1:3 x end % die Laufvariable x nimmt mit jeder Iteration der Schleife -% einen Wert des Vektors 1:5 an: +% einen Wert des Vektors 1:3 an: 1 2 3 - 4 - 5 \end{lstlisting} diff --git a/programmingstyle/lecture/programmingstyle.tex b/programmingstyle/lecture/programmingstyle.tex index 04eaa8c..abf600f 100644 --- a/programmingstyle/lecture/programmingstyle.tex +++ b/programmingstyle/lecture/programmingstyle.tex @@ -1,5 +1,9 @@ \chapter{\tr{Programming style}{Programmierstil}} +\shortquote{Any code of your own that you haven't looked at for six or + more months might as well have been written by someone + else.}{Eagleson's law} + Guter Programmierstil ist keine Frage des guten Geschmacks sondern des Verst\"andnisses von Programmcode und ein Baustein in dem Bestreben wissenschaftlichen Erkenntnisgewinn reproduzierbar zu @@ -67,7 +71,7 @@ aktuellen Ordner nach passenden Dateien sucht (mehr Information zum \matlab-Suchpfad in Box~\ref{matlabpathbox}). \begin{figure}[tp] - \includegraphics[width=0.82\textwidth]{program_organization} + \includegraphics[width=0.75\textwidth]{program_organization} \titlecaption{\label{fileorganizationfig} M\"ogliche Organisation von Programmcode im Dateisystem.}{ F\"ur jedes Projekt werden Unterordner f\"ur die einzelnen Analysen angelegt. Auf Ebene des @@ -271,6 +275,10 @@ ein v\"ollig unn\"otiger Kommentar. \item Ein falscher Kommentar ist schlimmer als gar kein Kommentar! \item Kommentare m\"ussen gepflegt werden, sonst sind sie wertlos! \end{itemize} + \widequote{Good code is its own best documentation. As you're about to add + a comment, ask yourself, ``How can I improve the code so that this + comment isn't needed?'' Improve the code and then document it to + make it even clearer.}{Steve McConnell} \end{important} \pagebreak[4] @@ -418,7 +426,16 @@ werden. Wenn diese nicht von globalem Interesse sind, kann mit \codeterm[Funktion!geschachtelte]{geschachtelten Funktionen} die \"Ubersichtlichkeit erh\"oht werden. -\noindent Es lohnt sich auf den eigenen Programmierstil zu -achten!\footnote{Buchtip: Robert C. Martin: - \textit{Clean Code: A Handbook of Agile Software Craftmanship}, - Prentice Hall} +Es lohnt sich auf den eigenen Programmierstil zu +achten!\footnote{Buchtip: Robert C. Martin: \textit{Clean Code: A + Handbook of Agile Software Craftmanship}, Prentice Hall} + +\shortquote{Programs must be written for people to read, and only + incidentally for machines to execute.}{Abelson / Sussman} + +\shortquote{Any fool can write code that a computer can + understand. Good programmers write code that humans can + understand.}{Martin Fowler} + +\shortquote{First, solve the problem. Then, write the code.}{John + Johnson} diff --git a/statistics/lecture/statistics-chapter.tex b/statistics/lecture/statistics-chapter.tex index 1a87fc8..edfdf93 100644 --- a/statistics/lecture/statistics-chapter.tex +++ b/statistics/lecture/statistics-chapter.tex @@ -16,6 +16,13 @@ \input{statistics} +\section{TODO} +\begin{itemize} +\item Proper introduction to probabilities and densities first! +\item Cumulative propability +\item Kernel Histogramms (important for convolved PSTH)! +\end{itemize} + \end{document}