Skip to content

Commit 0889053

Browse files
committed
txs auto checkin
1 parent 1f5b5e2 commit 0889053

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

rust.tex

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,52 @@ \section{An I/O Project: Building a Command Line Program}
19581958
19591959
\begin{frame}[fragile]
19601960
\frametitle{minigrep - Reading a File}
1961-
\inputminted{rust}{./code/grep2.rs}
1961+
\inputminted{rust}{./code/grep3.rs}
1962+
\end{frame}
1963+
1964+
\begin{frame}[fragile]
1965+
\frametitle{minigrep - Refactoring to Improve Modularity and Error Handling}
1966+
\begin{itemize}
1967+
\item Split your program into a \mintinline{shell}|main.rs| and a \mintinline{shell}|lib.rs| and move your \textbf{program’s logic to} \mintinline{shell}|lib.rs|.
1968+
\end{itemize}
1969+
\end{frame}
1970+
1971+
\begin{frame}[fragile]
1972+
\frametitle{minigrep - Refactoring (Extracting the Argument Parser)}
1973+
\inputminted{rust}{./code/grep4.rs}
1974+
\end{frame}
1975+
1976+
\begin{frame}[fragile]
1977+
\frametitle{minigrep - Refactoring (Grouping Configuration Values)}
1978+
\inputminted{rust}{./code/grep5.rs}
1979+
\end{frame}
1980+
1981+
1982+
\begin{frame}[fragile]
1983+
\frametitle{minigrep - Refactoring (Grouping Configuration Values)}
1984+
\inputminted{rust}{./code/grep5.rs}
1985+
\end{frame}
1986+
1987+
1988+
\begin{frame}[fragile]
1989+
\frametitle{minigrep - Refactoring (Creating a Constructor for Config)}
1990+
\inputminted{rust}{./code/grep6.rs}
1991+
\end{frame}
1992+
1993+
\begin{frame}[fragile]
1994+
\frametitle{minigrep - Refactoring (Improving the Error Message)}
1995+
\inputminted{rust}{./code/grep7.rs}
1996+
\end{frame}
1997+
1998+
\begin{frame}[fragile]
1999+
\frametitle{minigrep - Refactoring (Improving the Error Message(2))}
2000+
\inputminted{rust}{./code/grep8.rs}
2001+
\end{frame}
2002+
2003+
2004+
\begin{frame}[fragile]
2005+
\frametitle{minigrep - Refactoring (Extracting Logic from main)}
2006+
\inputminted{rust}{./code/grep8.rs}
19622007
\end{frame}
19632008
19642009
\section{Functional Language Features: Iterators and Closures}

0 commit comments

Comments
 (0)