equal
deleted
inserted
replaced
372 \begin{frame}{And the winner is \ldots OBJECTS!} |
372 \begin{frame}{And the winner is \ldots OBJECTS!} |
373 All objects providing a similar inteface can be used the same way.\\ |
373 All objects providing a similar inteface can be used the same way.\\ |
374 Functions (and others) are first-class objects. Can be passed to and returned from functions. |
374 Functions (and others) are first-class objects. Can be passed to and returned from functions. |
375 \inctime{10} |
375 \inctime{10} |
376 \end{frame} |
376 \end{frame} |
|
377 |
|
378 \subsection{Coding Style in Python} |
|
379 \begin{frame}{Readability and Consistency} |
|
380 \begin{itemize} |
|
381 \item Readability Counts!-Code is read more often than its written. |
|
382 \item Consistency! |
|
383 \item Know when to be inconsistent. |
|
384 \end{itemize} |
|
385 \end{frame} |
|
386 |
|
387 \begin{frame}[fragile] |
|
388 \frametitle{Code Layout} |
|
389 \begin{itemize} |
|
390 \item Indentation |
|
391 \item Tabs or Spaces?? |
|
392 \item Maximum Line Length |
|
393 \item Blank Lines |
|
394 \item Encodings |
|
395 \end{itemize} |
|
396 \end{frame} |
|
397 |
|
398 \begin{frame}{Whitespaces in Expressions} |
|
399 \begin{itemize} |
|
400 \item When to use extraneous whitespaces?? |
|
401 \item When to avoid extra whitespaces?? |
|
402 \item Use one statement per line |
|
403 \end{itemize} |
|
404 \end{frame} |
|
405 |
|
406 \begin{frame}{Comments} |
|
407 \begin{itemize} |
|
408 \item No comments better than contradicting comments |
|
409 \item Block comments |
|
410 \item Inline comments |
|
411 \end{itemize} |
|
412 \end{frame} |
|
413 |
|
414 \begin{frame}{Docstrings} |
|
415 \begin{itemize} |
|
416 \item When to write docstrings? |
|
417 \item Ending the docstrings |
|
418 \item One liner docstrings |
|
419 \end{itemize} |
|
420 \end{frame} |
|
421 \inctime{10} |
377 \end{document} |
422 \end{document} |