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

Lecture 7 - Building the Product

by: Jerry Tan

Lecture 7 - Building the Product CS2103

Jerry Tan
GPA 4.3
Software Engineering
Damith C. Rajapakse

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

Building the product - learn about coupling and cohesion between components, and how to do defensive coding!
Software Engineering
Damith C. Rajapakse
Class Notes
25 ?




Popular in Software Engineering

Popular in Quantitative Methods

This 3 page Class Notes was uploaded by Jerry Tan on Friday October 9, 2015. The Class Notes belongs to CS2103 at National University of Singapore taught by Damith C. Rajapakse in Summer 2015. Since its upload, it has received 23 views. For similar materials see Software Engineering in Quantitative Methods at National University of Singapore.

Popular in Quantitative Methods


Reviews for Lecture 7 - Building the Product


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/09/15
National University of Singapore NUS CS2103 Software Engineering AY2015 SEM 1 Lecture 7 Building the Product Friday 9th October 2015 By Jerry Tan Si Kai C82 103 Software Engineering Lecture 7 Coupling and Cohesion Software Reuse Analogy Can you become a good poet by not reading other poet s poems It is okay to reuse others code to learn from them How to find good code to learn from From internships jobs Code is just good enough because the developers are under timepressure Opensourced projects best developers contribute there there is no time pressure and it is public so they must maintain highest standard of coding Intermediate SE knowledge L7 L13 Coupling and Cohesion to tighten or loosen Given 2 components A and B A calls foo in B If I change B will it require a change in A If yes there is strong dependency Eg A calls foo in B If maybe there is weak dependency Eg Both A and B writes to a Global Variable Good component design reduce coupling increase cohesion Why increase cohesion the component is reusable can be removed and plugged in to another project Easier to maintain Inverse relationship between coupling and cohesion decrease coupling will increase cohesion and vice versa Developertodeveloper documentation For developer as user For developer as maintainer Do s and Don ts 1 just enough docs not as much as possible 2 Topdown not bottomup 3 Generate docs from code 4 Comprehensible and comprehensive 5 Remember the purpose don t just add many class diagrams just because it is required Putting up defenses to protect your code from other people s mistakes 1 Misunderstandings a Use assertBoolean expression to check that your assumptions hold during runtime Will fail and crash the program immediately once the assumption fails to notify the programmer that there is a bug b If developer screwed up it is a bug and should crash the program immediately 2 Mishaps a User mishaps something stupid that the user has done so we should handle or raise exceptions b If user screws up thow errors or exceptions which can be handled 3 Mysteries a Logging print variable values to the console or a log file 4 Misuse a Actively identify holes and plug them b Bertrand Meyer Design by Contract and the Eiffel language Allows programmer the ability to specify the PROMISE and the runtime environment to check that


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."

Kyle Maynard Purdue

"When you're taking detailed notes and trying to help everyone else out in the class, it really helps you learn and understand the I made $280 on my first study guide!"

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"


"Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

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.