New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Software Development

by: Ashlynn Bergstrom

Software Development COMP 170

Ashlynn Bergstrom
Harding University
GPA 3.97

Frank McCown

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Frank McCown
Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 2 page Class Notes was uploaded by Ashlynn Bergstrom on Monday October 12, 2015. The Class Notes belongs to COMP 170 at Harding University taught by Frank McCown in Fall. Since its upload, it has received 18 views. For similar materials see /class/222131/comp-170-harding-university in ComputerScienence at Harding University.

Similar to COMP 170 at Harding University

Popular in ComputerScienence


Reviews for Software Development


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/12/15
Tips to Writing Clean Code By Frank McCown Functions Capnahze gramme mpm m onemnonon vs maonons wmbh penovm each o hose aonons Davametev ha meoes whataH thyoughthemno on s body to undevs1and whauhemnonon s veaHy dmrg Stampe Th funct takes two parallel arr ys en array of ID end en array of v scores The thlrd parameter s the m to be seerehed for The score v ccrrespcndlng to the Search m 15 returned If the 1 cannot be found 111 the v IDS array 71 15 returned Coda r Use p enty o mue spaoeto o amy code r Put statements endwrg mh sembobns and n on sepava e hnes except my hope for olt5 vs for 1 o 1 lt 5 1w ccutltlt139j 3373 lt cont ltlt 1 v 3 j e j e 3 Error Checking Stampe Illegal new vs Please enter a number between 1 end 10quot Han aooessmg aways om o bound em Wm rm HO 0 ensunng an mpuHHe estts be oveuywrg to vead New A Variables Constants Carefully chosen variable names and constants will often be selfdocumenting Examplec a b VS score total points pointsimissed Declare all variables at the top of the function Variables should generally not be initialized to a computed value on the same line on which it s declared although initialing to a constant is acceptable Example int c sqrt b vs int c 39 Comment the purpose of each variable declaration Constants should generally be all capitalized and variables should generally be all lower case camelcasing is bl also accepta e Exampleiconst int NAMEiLEN 4 and int numiofistudents 20 or numOfStudents Use constants for all magic numbers or whenever a particular value is used more than once Documentation Write comments that express more of the whythan the how Document the codes intent Example Divide total grades by total students VS Compute student grade average Always place your name date and program description at the top of the program Make your comments say something about the code that the code can t say about itself Example level Add 1 to level VS level Advance to next level before processing remaining lives Typically a comment should refer to a logical grouping of lines rather than a single line of code Avoid all but the most common abbreviations in comments so they re easy to read Clearly separate comments from code Use a commenting style that is not overly tedious timeconsuming or a maintenance monster Outline your code with comments before you write it rather than doing all of the documentation at the end You ll save yourself time from having to figure out tricky places or forgetting details assumptions and subtleties of design


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Jennifer McGill UCSF Med School

"Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over $500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.