Giter Site home page Giter Site logo

cs373-collatz's Introduction

Project #1: Collatz
Date: Wed, 12 Sep 2012

Course Name: CS373 Softwaare Engineering
Unique: 53070

First Name: Duy
Last Name: Tran
EID: dnt264
E-mail: [email protected]
Estimated number of hours: 15
Actual    number of hours: 11

Turnin CS Username: drytuna
GitHub ID: DryTuna
GitHub Repository Name: [email protected]:DryTuna/cs373-collatz.git

Comments:
It was easy to complete the stupid solution.
The unit tests really saved times when developing a better cache.
My solution used an eager cache.

---------------
Code of Conduct
---------------

I attest that I have written every line of code that I have submitted
and I take full responsibility for the origin of all the code submitted.
In particular, if any of the code was originally written in a previous
semester or another course I will so acknowledge via e-mail to the
grader.

cs373-collatz's People

Contributors

drytuna avatar

Watchers

James Cloos avatar  avatar

cs373-collatz's Issues

Documentation

Use pydoc to document the interfaces.
The above documentation only needs to be generated for Collatz.py. Comment each function meaningfully. Use comments only if you need to explain the why of a particular implementation. Choose a coding convention and be consistent. Use good variable names. Write readable code with good indentation, blank lines, and blank spaces.

Index Range

the python range function does not look at the last number

Acceptance Tests

The grader's GitHub account will have a public Git repository for unit tests and acceptance tests.
Write acceptance tests before your write the code. When you encounter a bug, write an acceptance test that fails, fix the bug, and confirm that the acceptance test passes. Write an auxiliary program to randomly generate acceptance tests. Create at least 1000 acceptance tests. Tests corner cases and failure cases. Push and pull the acceptance tests to and from the grader's repository. Prepend - to the file names at GitHub (i.e. foo-RunCollatz.in and foo-RunCollatz.out). Reach consensus on the acceptance tests.

Issue Tracker

The GitHub repository comes with an issue tracker.
Create an issue for each of the requirements in this table. Create an issue for each bug or feature, both open and closed. Categorize, prioritize, and describe each issue adequately. Create at least 10 more issues in addition to the requirements in this table.

GitHub

Create a student GitHub account

Submission

Perform the submission below.
Collatz.zip
turnin --submit hychyc07 cs373pj1 Collatz.zip

README.txt
Collatz.log
Collatz.py
html/*
RunCollatz.in
RunCollatz.out
RunCollatz.py
SphereCollatz.py
TestCollatz.py.out
TestCollatz.py

Slow

It's taking almost an hour to run 1000 lines of inputs

Unit Tests

The grader's GitHub account will have a public Git repository for unit tests and acceptance tests.
Write unit tests before you write the code. When you encounter a bug, write a unit test that fails, fix the bug, and confirm that the unit test passes. Write at least 3 unit tests for each function. Tests corner cases and failure cases. Name tests logically. Push and pull the unit tests to and from the grader's repository. Prepend - to the file names at GitHub (i.e. foo-TestCollatz.py and foo-TestCollatz.py.out). Reach consensus on the unit tests.

Implementation

Use assert to check pre-conditions, post-conditions, argument validity, return-value validity, and invariants. Worry about this last, but your program should run as fast as possible and use as little memory as possible.

Sphere

Create a Sphere account

Sphere Submit

Sphere requires a single file to be submitted.
Combine Collatz.py and RunCollatz.py.
This is the file that the grader will submit to Sphere to determine a zero vs. non-zero grade.

Git Repository

Set up a private Git repository at GitHub, named cs373-collatz.
Invite the grader to your repository. Commit at least 5 times. Commit once for each bug or feature. If you cannot describe your changes in a sentence, you are not committing often enough. Write meaningful commit messages and identify the corresponding issue in the issue tracker (below). Create a log of the commits. Push frequently. It is your responsibility to protect your code from the rest of the students in the class. If your code gets out, you are as guilty as the recipient of academic dishonesty.

Lazy Cache

implement a lazy cache to work along side with the eager one

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.