Computer Science Notes

Notes From CS Undergrad Courses FSU

This project is maintained by awa03

Software Implementation

Switch Statements

void calcPrice(cart){
	for(int i =0; i < cart.length){
		if(cart[i].catagory == "food")
		// etc
	}
// Rather than doing this we should move these to a function

for(int i =0; i < cart.length){
		total += calcPrice;
		// etc
}

Tools to Identify code smells

Code Styles

// Bad example
for(auto j: auto k){if(j == 1){return false}}

Remarks on Programming Standards