Index
Symbols
(colon)creating functions
" (double-quotes)
avoid using with True/False
create strings with single-quotes vs.
>= (greater-than-equal) operator
+= (increment by) operator
<= (less-than-equal) operator
' (single-quotes)
create strings with double-quotes vs.
''' (triple-single-quotes)
""" (triple-quotes)
errors when putting spaces between
\\ (double backlash) character
== (equal) operator
= (single-equal) operator
# (pound or octothorpe) character
[] left and right bracketslists
^ (caret) characterview output
{} charactersembedded variables in strings
> (greater than) operator
A
activate scriptPowershell
altered() functioninheritance
and
app.py
write automated tests for forms
Argumentscreating functions
argv
prompting and passing using
reading and writing files
ASCII (American Standard Code for Information Interchange)
assert_equal() functionautomated testing
assert_raises() functionwriting test expected to fail
Atom text editor
working with first program
Automated tests
refactoring gothonweb game using
B
bin directoryskeleton project directory
Boolean logic
Bottom up processesvs. top down
Browser
create engine to run game in
how it accesses information
Bytes
C
C algorithmsuper() function
caret (^) characterview output
cat commandprint whole file
cd commandchange directory
Characters
importance of learning names of
Checklistcreating function
Classes
adds consistency to program
as blueprints for new mini-modules
object-oriented phrase drill
object-oriented reading test
object-oriented word drill
as templates minting new objects
CLI (command line interface)using on GUI
Code
avoid hard coding filenames
inheritance vs. composition for reusable
refactoring for gothonweb game
testing other programmer’s
typing into Terminal/PowerShell
Colon ()creating functions
Command-line crash course
exit your terminal (exit)
make empty files (touch/New-Item)
pathsfoldersdirectories (pwd)
Command line interface (CLI)using on GUI
Commands
converting arguments to strings
Comments
getting help with documentation
is-a/has-a relationships using
reading/writing files using
writing when you do not understand code
Composition
when to use inheritance or
Conventionsfor encoding text
Copying fileswriting script for
cpcopy file or directory
curl commandgenerate request types
D
Data structures
DBES (Decode BytesEncode Strings)dissecting code
Debugging
fixing errors in first website
dedent() function"""-style strings
def (create function)
files working with functions
functions can return something
functions working with variables
del keyworddelete from dictionary
dict
understanding dictionaries
Dictionaries
die functionif-statement rules
dir -rfind files in Windows
Directories
“Hello World” web application
Linux/macOS command-line for
Documentation
check out projects/build something using
getting help with comments
E
elif
else
env commandlook at your environment
Error messages
for spaces between triple-quotes
viewing output in first program
when making script shorter
Escape sequences
for different characters in strings
reading and writing files
Exceptions
exists commandcopying files
export commandexport new environment variable
F
f character
embedding variables inside strings
False keyword
object-oriented reading test
Features
File Transfer Protocol (FTP)and URLs
Files
Linux/macOS command-line for
flask framework
create basic templates for website
ImportError after installing
installing for first website
make “Hello World” web application
testing tricks for creating fake sessions
FLASK_DEBUGnot safe to activate on Internet
for-loops
Format strings
reading and writing files
.format() syntaxformatting strings
Forms
FTP (File Transfer Protocol)and URLs
Functions
accessing in module with . (dot) operator
also called methods/commands
replicating implicit inheritance
using print vs. return in
G
Gamestart of your web
Games
gothonweb project
analysis of simple game engine
making into first web application
refactoring code/creating web engine to run
Greater-than-equal (>=) operator
Greater than (>) operator
grep commandfind things inside files
GUI (graphical user interface)using CLI on
H
Hard coded filenamesavoid
“Hello World” web application
Help
hostname
my computer’s network name
HTML
create basic templates for website
HTTP
I
if-statements
Implicit inheritance
combine with other types of inheritance
import
ImportErrors
create skeleton project directory
Increment by ( +=) operator
index()
Inheritance
object-oriented phrase drill
object-oriented reading test
object-oriented word drill
Inheritance vs. composition
alter behavior before or after
three kinds of inheritance combined
using inheritance vs. composition
using super()with __init__()
__init__ function
initializing newly created empty object
in is-a/has-a relationships
running reliably for parent class
trying not to do too much in
using self when making functions for classes
input()
parametersunpackingvariables
Inputadvanced user
Inputgetting from browser
writing automated tests for forms
Internetflask debugger mode not safe on
Internet research
check out projects/try to build something
object-oriented programming
int()functionconverting command line argument strings
J
Jinja Documentationtemplate language
K
L
less commandview file in macOS/Linux
Less-than-equal (<=) operator
Lexiconcreating game
Linux/macOS
alternative text editors for
get terminal open and working
Linux/macOS command-line
pushdpopd (move directory)
pwdprint working directory
Lists
processing lists of things
localhost
Logic
Loginresearching web application
Lookup tablesdictionaries as
Loops
lpthw virtual environmentskeleton project
lslist directory
M
main functiondissecting code
manread manual page in macOS/Linux
Map class
storing scenes by name in dictionary
Maps
analysis of simple game engine
match functionparser code
Memorization
of commands using index cards
Method resolution order (MRO)super()
Methods
also called functions and commands
mkdirmake directory
Modifiersreading and writing files
Modules
replicating implicit inheritance in
more commandview file in Windows
MRO (method resolution order)super()
Multiple inheritanceavoid
mv commandmove file or directory
N
Names
importance of learning symbol
Natural Language Tool Kit
Nested structures
new-item commandcreate empty files in Windows
nosetests command
automated tests for forms
create skeleton project directory
not
Nounsobject-oriented programming
Numbers
O
analysis of simple game engine
code classes and test to run them
code for “Gothons from Planet Percal #,”
create class hierarchy/object map for concepts
extract/research key concepts
write or draw about problem
Object-oriented programming (OOP)
Objects
classes as templates that mint new
object-oriented phrase drill
object-oriented word drill
open commandreading and writing files
Operators
finding more Python equality
or
Output
“Hello World” web application
override() functioninheritance
P
Paragraphsif-statement rules
Parametersreading and writing files
Parser
PEMDAS acronymorder of math operations
Phrase drillsobject-oriented
pip. (or just pip)
create skeleton project directory
install flask to build first website
planisphere_tests.py file
popd commandpop directory
POST
automated tests for forms
PowerShell
print
when functions use return vs.
Print strings
with more complicated formatting
print_a_linepass in current line number
print_line functiondissecting code
print_two functioncreate functions
Programming languages
advice from old programmer
check out projects/try to build something
Prompts
identify in appendix exercises
Pseudo codetest first using
pushd commandpush directory
pwd commandprint working directory
.py filespassing variables to script
pydoc commandprompt people
PYTHONPATH environment variable
Q
quit() functionreload Python after
R
read commandread contents of file
Reading
Reading code backward
comments and pound characters
render_template()function
Requestsweb
generating types of with curl
learn client side of HTTP
return
object-oriented reading test
when functions use print vs.
rmdir commandremove directory
Room class
refactor code for gothonweb game
round() functionfloating point numbers
Rules
when to use inheritance or composition
runas commanddanger in windows
S
Scanning inputlexicon tuples
Scenes (rooms)
analysis of simple game engine
code classes for simple game
Scripts
Search engines
finding things on Internet
how to type # (octothorp) character
seek() function
does not set current line to
select-string commandfind things inside Windows files
self
is-a/has-a relationships and
Sentencesmaking
Servershow browsers access information on
set commandexport/set new environment variable in Windows
Setup exercise
finding things on Internet
setup.py fileskeleton project directory
Single-equal (=) operator
Skeleton project directory
creating directory structure
Space
adding around operators for easier reading
make code readable with vertical
Spelling mistakeserror messages for
Strings
complicated formatting of
convert command line arguments to
list of escape sequences for
list of old style formats for
as UTF- encoded sequence of characters
Stringsbytesand character encodings
Styling
Subject
super() functioninheritance
Symbols
escape sequences for strings
SyntaxError message
viewing output in first program
System site packagessetup for skeleton project
T
Tables
Templates
templates/index.html file
templates/layout.html file
Terminal
what you should see in first program
Terminology
Test first programming tactic
Test_directions test case
session-based game engine
skeleton project directory setup
tricks for creating fake sessions inside
Test.txt filecopying files
Text
Text editors
Thingsgetting things from
Top down process
touch commandmake empty files in macOS/Linux
Tracing variablesreading code
Triple-single-quotes (''')
True keyword
avoid putting quotes around
object-oriented reading test
Truth
type commandprint whole file in Windows
U
URLs (Uniform Resource Locators)
UserWarningwhen running nosetests
UTF- standard
fixing terminal unable to display
V
ValueErrors
parameters/unpacking/variables
Variables
temporarily inside functions
writing strings with text
.venvs directoryskeleton project setup
Verbs
analyze class hierarchy in OOP
extract key concepts in OOP
W
Warnings
Web
Websiteyour first
make “Hello World” web application
while-loops
when to break rule about not using
while Truemake infinite loop
Windows
alternative text editors for
skeleton project directory setup
Windows command-line
getting PowerShell open and working for
pushdpopd (move directory)
pwdprint working directory
Word drillsobject-oriented
Write
X
xargs commandexecute arguments
No comments:
Post a Comment