\documentclass[10pt]{article}

\usepackage{hyperref}
\usepackage[a4paper, total={6in, 8in}, top=.75in, bottom=1in]{geometry}
\usepackage{graphicx}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}

\begin{document}
\title{Getting Started with Software Development}
\author{Dr. Yvon Feaster}
\date{}
\maketitle

\section*{OO Software Development - Chpt 1}

This class is an introductory course in object-oriented software development.\\

\noindent Some of the topics we will cover are:

\begin{itemize}

   \item Challenges of software development
   \item Software Development Activities
   \item Desirable qualities of software products
   
\end{itemize}
\subsection*{Challenges of Software Development}
Software programs are no longer small programs.  Many software packages contain millions of lines of code.  Managing software of this magnitude is difficult at best.
Over the years we have seen a decrease in the cost of hardware but an drastic increase of hardware performance and capabilities.  With this increase of hardware capabilities comes a drastic increase software cost.  Why is that?  Well, because of the size and complexity of software requires a team of developers -- it is labor intensive.  Because of the complexity of todays software, testing and debugging software is crucial.  In today's society users have a high expectation for their software.  They expect it to be reliable with minimal "glitches".  Software maintenance is another reason software is costly.  If software has high longevity then then there will be extensive maintenance which is costly.  

\subsection*{Software Development Activities}
Software development involves much more than just writing code.  In addition to the source code, it includes software documentation, the project requirement specifications, architecture and design documents, installation and user manual, etc.  There are various steps involved in developing software, such as:

\begin{description}
\item[Requirements Analysis:]
The goal is to establish the functions, services, and constrains of the software to be developed. Two types:
	\begin{itemize}
		\item customized software - software for one specific customer
		\item commercial {\em{``shrink-wrapped"}} - intended to be sold
	\end{itemize}
There are two categories of requirements:
	\begin{itemize}
		\item  functional requirements - the functions and services the software will perform
		\item  non-functional requirements - constraints under which the software must operate (response time, memory consumption, user friendliness)
	\end{itemize}
The main concern of requirements analysis is to define the problem to be solved.  The requirements are documented in requirements specifications or system specifications.

\item[Design:]
The goal is to construct a solution to the problem by establishing an overall architecture of the software by: 
	\begin{itemize}
		\item partitioning the software into components or subsystems
		\item identifying the relationships and dependencies among them
	\end{itemize}  

There are two categories of design:
	\begin{itemize}
		\item system design - concerns the decomposition of complex problems into manageable components
		\item detail design - concerns the solutions to each component
	\end {itemize}
	
\item[Implementation and Unit Testing:] 
Implementation is known as the realization of the actual source code.  Each component of the program is implemented separately.  You should perform an independent unit testing on each individual component.  

\item[Integration and System Testing:]  The individual components or units are integrated and tested as a whole to ensure that the entire software system functions properly with respect to its specifications. 

\item[Maintenance:] This step involves various activities after the software has been delivered to the client.  Some of these activities include:  
	\begin{itemize}
		\item correcting bugs
		\item improving performance
		\item enhancing functions or services
		\item adapting to new enviroments
	\end{itemize}
Maintenance is the longest and most costly activity in the life cycle.  Maintenance is usually continued until the software is no longer in service. 
\end{description}

\begin{figure}[h]
\begin{center}
  \leavevmode
  \includegraphics[width =0.80\textwidth]{classic_waterfall.png}
\end{center}
\caption{Classic Waterfall}
\label{fig:classic}
\end{figure}
These steps are often referred to as the Software Development Life Cycle (SDLC).  We will not cover all of these steps in depth.  

\subsection*{Software Development Processes}
We have discussed the typical steps taken during software development.  Now lets talk about when and how these steps are completed (the process of executing the steps).  The most well-known process is the ``waterfall" model, shown in Figure~\ref{fig:classic}.  This process requires that each step is completely finished before moving on to the next step.  This is not realistic in todays world of software development.  There are several alternative software development processes that use an iterative design processes that are acceptable for OO development, such as Rational Unified Process (RUP) and Extreme Programming (XP).  

\subsection*{Iterative Development Processes}
In 1994 the iterative software development process for OO development was first introduced by Software Engineer, Grady Booch.  His iterative OO development process consists of a number of successive iterations. With each iteration containing the following steps:
	\begin{itemize}
		\item identify a necessary class
		\item identify the attributes and behaviors of the class
		\item identify the relationships between classes
		\item define the class interface
		\item implement the class
	\end{itemize}
Each iteration deals with a small portion of the system until the entire system is complete.  This process follows the following phases:  analysis and modeling, design, implementation, and maintenance.  This process became known and adopted as the Rational Unified Process (RUP).  This process inspired several OO iterative development processes including Extreme Programming (XP). 

Key practices of RUP include:

\begin{itemize}
	\item develop software iteratively
	\item systematically elicit, organize, and manage changing requirements
	\item use conmponent-based architecture
	\item visually model software using UML
	\item continuously verify software quality
	\item control changes to software
\end{itemize}

RUP emphasizes building models rather than paper documents.  We are not going to discuss in detail these models.  

Extreme Programming is a lightweight process with an emphasis on producing high-quality executable code throughout the development process.  It focuses on small iterations that produce a minimum, skeletal, and executable implementation of the system to be developed.  Each iteration improves the previous iteration.  This process continues until the entire system is complete.  There are two optional focus for iterative development.  

\begin{itemize}
	\item Enhancement - introduce new functionalities or features.  
	\item Refactoring - restructures the code to improve the quality, including extensibility and maintainability, and structure of the software system while maintaining its behavior.  
\end{itemize}

XP relies heavily on refactoring to maintain and improve qualities and to facilitate changes and enhancements.  XP follow these key practices:

\begin{itemize}
	\item Planning - each iteration has a simple plan and is continually refined
	\item Frequent and small releases - Make frequent and small releases starting as early as possible. (no longer than a few weeks)
	\item Metaphor - Use metaphors when communicating with customers
	\item Simple design - Keep the design as simple as possible, refactor later if needed.
	\item Test first - Write unit test before writing code.
	\item Refactoring - Refactor to make the system simpler and clearer or to reduce duplication
	\item Pair Programming - write code in pairs
	\item Collective ownership - anyone can change code to improve it
	\item Continuous integration - integrate as soon as task is complete
	\item 40-hour weeks - programmers work best with rest
	\item On-site customer - have customer available on-site full time
	\item Coding standards - adopt common standards and conventions for naming, source code formatting, documentation, etc	
\end{itemize}

\end{document}
