Skip to content

taylorzane/compsci201

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duke Computer Science 201 - Spring 2016

Getting Started

Clone the repository, change directory into the repository, and check that a recent version of Python is installed.

git clone https://github.com/adelyte-chris/compsci201.git
cd compsci201
python --version # Should be 2.7 or greater

Run the unit tests.

python SandwichBarTest.py # Returns one pass and one failure

Run the benchmark.

python SandwichBarTimer.py # Returns the number of seconds to execute 1,000,000 times

Check for incomplete tasks.

grep -R 'TODO' . # Prints a list of instances of 'TODO' in all files

Finish those tasks. Run the unit tests again. If all tests pass, run the benchmark.

Stage your changes, commit your changes with a meaningful commit message, and push (publish) them.

git status # Prints files that have changed
git add -A .
git commit -m "" # Write a meaningful commit message in the quotes
git push

Resources

Python

Stack Overflow

Stack Overflow is usually the top Google result for any specific code question. For example:

It is absolutely not cheating to search for specific answers to specific questions, especially when the questions are about syntax or best practices. With syntax questions, you know what you want to do, but you do not know how to express it. With best practices, you do not have the experience to know which approach might be best.

About

Duke Computer Science 201 - Spring 2016

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%