-
Notifications
You must be signed in to change notification settings - Fork 1
/
Programming In General.tex
251 lines (223 loc) · 6.08 KB
/
Programming In General.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
\documentclass[10pt,a4paper,titlepage]{book}
\usepackage[width=7in, height=9.5in,papersize={8.5in,11in}]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{moreverb}
\usepackage{listings}
\usepackage{layout}
\usepackage{fancyhdr}
\usepackage{color}
\usepackage{setspace}
\author{
Brett J. Langdon
\and
Alexander R. Ambrose
}
\title{Programming In General}
\pagestyle{fancy}
\voffset=0.25in
\parskip 10pt
\parindent 0pt
\renewcommand{\theenumii}{\arabic{enumii}}
\renewcommand{\labelenumii}{\theenumii.}
\renewcommand{\theenumiii}{\arabic{enumiii}}
\renewcommand{\labelenumiii}{\theenumiii.}
\definecolor{pigChapter}{rgb}{.1,.1,.4}
\definecolor{pigVar}{rgb}{.4,.2,.2}
\definecolor{pigVal}{rgb}{.2,.4,.7}
\definecolor{pigOut}{rgb}{.5,.5,.1}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\pigChapter}[1]{{\color{pigChapter}\textit{#1}}}
\newcommand{\pigVar}[1]{{\color{pigVar}\textit{\textbf{#1}}}}
\newcommand{\pigVal}[1]{{\color{pigVal}\textbf{#1}}}
\newcommand{\pigOut}[1]{{\color{pigOut}\textbf{#1}}}
\definecolor{lstkeyword}{rgb}{.2,.2,.7}
\definecolor{lstcomment}{rgb}{.7,.7,.7}
\definecolor{lstidentifier}{rgb}{0,0,0}
\definecolor{lststring}{rgb}{.4,.4,.4}
\lstset{
numbers=left,
stepnumber=1,
numberstyle=\footnotesize,
frame=single,
showspaces=false,
showstringspaces=false,
basicstyle=\ttfamily,
linewidth=6.5in,
xleftmargin=0.5in,
keywordstyle=\bfseries\color{lstkeyword},
commentstyle=\itshape\color{lstcomment},
identifierstyle=\color{lstidentifier},
stringstyle=\color{lststring},
morekeywords={class,public,private,protected,$this,return,this,self,if,else,function,print},
morestring=[b]',
morestring=[b]",
morecomment=[s]{/*}{*/},
comment=[l]{//}
}
\lstdefinelanguage{javascript}{
keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break},
ndkeywords={class, export, boolean, throw, implements, import, this},
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]"
}
\lstdefinelanguage{php}{
keywords={$this,class,public,private,protected,return,new,null,catch,try,switch,if,else,while,do,case,break,continue,true,false,function,boolean,throw,implements,inhrits,echo,print}
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]"
}
\begin{document}
\begin{titlepage}
\begin{center}
\vspace*{3 in}
\HRule \\[0.4cm]
{\huge \bfseries Programming In General}
\HRule \\[0.4cm]
\emph{Authors:}\\
Brett \textsc{Langdon}
\&
Alexander \textsc{Ambrose}
\vfill
{\large \today}
\end{center}
\end{titlepage}
\null
\vfill
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
\par
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
\vfill
\null
\tableofcontents
\chapter{Introduction}
\input{"./1 - Introduction/Introduction"}
\vfill
\pagebreak
\section{Who Is This Resource For}
\input{"./1 - Introduction/1.1 - Who Is This Resource For"}
\vfill
\pagebreak
\section{Code Examples}
\input{"./1 - Introduction/1.2 - Code Examples"}
\vfill
\pagebreak
\chapter{Getting Started}
\input{"./2 - Getting Started/Getting Started"}
\vfill
\pagebreak
\section{Choosing A Programming Language}
\input{"./2 - Getting Started/1.1 - Choosing A Programming Language"}
\vfill
\pagebreak
\section{How To Read This Resource}
\input{"./2 - Getting Started/1.2 - How To Read This Resource"}
\vfill
\pagebreak
\section{Sudo Language}
\input{"./2 - Getting Started/1.3 - Sudo Language"}
\vfill
\pagebreak
\chapter{Functional Programming}
\input{"./3 - Functional Programming/Functional Programming"}
\vfill
\pagebreak
\section{Variables}
\input{"./3 - Functional Programming/1.1 - Variables"}
\vfill
\pagebreak
\section{Control Statements}
\input{"./3 - Functional Programming/1.2 - Control Statements"}
\vfill
\pagebreak
\section{Functions}
\input{"./3 - Functional Programming/1.3 - Functions"}
\vfill
\pagebreak
\chapter{Object Oriented Programming}
\input{"./4 - Object Oriented Programming/Object Oriented Programming"}
\vfill
\pagebreak
\section{Classes and Objects}
\input{"./4 - Object Oriented Programming/1.1 - Classes and Objects"}
\vfill
\pagebreak
\section{Inheritence}
\input{"./4 - Object Oriented Programming/1.2 - Inheritence"}
\vfill
\pagebreak
\section{Polymorphism}
\input{"./4 - Object Oriented Programming/1.3 - Polymorphism"}
\vfill
\pagebreak
\chapter{Design Patterns}
\input{"./5 - Design Patterns/Design Patterns"}
\vfill
\pagebreak
\section{Singleton}
\input{"./5 - Design Patterns/1.1 - Singleton"}
\vfill
\pagebreak
\section{Factory}
\input{"./5 - Design Patterns/1.2 - Factory"}
\vfill
\pagebreak
\section{Observer}
\input{"./5 - Design Patterns/1.3 - Observer"}
\vfill
\pagebreak
\section{State}
\input{"./5 - Design Patterns/1.4 - State"}
\vfill
\pagebreak
\chapter{Data Structures}
\input{"./6 - Data Structures/Data Structures"}
\vfill
\pagebreak
\section{Big O Notation}
\input{"./6 - Data Structures/1.1 - Big O Notation"}
\vfill
\pagebreak
\section{Linked Lists}
\input{"./6 - Data Structures/1.2 - Linked Lists"}
\vfill
\pagebreak
\section{Doubly Linked Lists}
\input{"./6 - Data Structures/1.3 - Doubly Linked Lists"}
\vfill
\pagebreak
\section{Stacks}
\input{"./6 - Data Structures/1.4 - Stacks"}
\vfill
\pagebreak
\section{Queues}
\input{"./6 - Data Structures/1.5 - Queues"}
\vfill
\pagebreak
\section{Hash Maps}
\input{"./6 - Data Structures/1.6 - Hash Maps"}
\vfill
\pagebreak
\section{Binary Trees}
\input{"./6 - Data Structures/1.7 - Binary Trees"}
\vfill
\pagebreak
\section{B-Trees}
\input{"./6 - Data Structures/1.8 - B-Trees"}
\vfill
\pagebreak
\section{B+ Trees}
\input{"./6 - Data Structures/1.9 - B+ Trees"}
\vfill
\pagebreak
\chapter{Algorithms}
\input{"./7 - Algorithms/Algorithms"}
\vfill
\pagebreak\end{document}