Pages

Thursday 30 June 2011

Module 5: Software Implementation/Coding

What is software construction?
  • Construction - refers to the hands-on part of creating something.
  • Also known as implementation / coding and debugging, verification and validation.
  • Generally focus at coding, debugging, some detailed design and some testing.
Why software construction important?
  • Construction may takes 30% to 80% of the total project time. The larger the time spent, the bigger the work affect the success of the project.
  • Construction is the pivotal activity in software development.
  • Great potential for the average programmer's productivity to improve.
  • Requirements document and design documents can go out of date, but construction's by product, the source code, is always up to date.
  • Ideally software project goes through requirements engineering and modelling activities before construction begins. In reality, construction is the only activity that's guaranteed to be done!
Coding principles



Good programming practices


Defensive programming
  • The programmer makes necessary assumptions and creates code that anticipates potential problems and specification changes.
  • According to Tushar Metha (2009), defensive programming involves finding problem in the existing code, anticipating, preempting, streamlining the code to aid readability and simplify maintainability.
  • A good defensive programmer is sufficiently confident in his/her abilities to ignore the traditional belief that "if it isn't broke, don't fix it."
Software Inspections
  • An 'old school' approach.
  • A process to review, analyze and check static system.
  • focus at source code
  • known as peer reviews or program/code inspections.
  • inspections can check conformance with a specification.
  • cannot check non-functional characteristics (performance, usablity, etc.)
Program/code Inspection Process
  • Focus at detecting defects.
  • program inspections are very effective in discovering defects.
  • A formal process that involve a team of several members.
Advantages of Inspection over Testing

According to Sommerville (2004):
  1. A single inspection session can discover many errors in a software/system.
  2. incomplete versions of a software/system can be inspected without additional cost.
  3. inspections can search for program defects and other quality attributes of a program.
Drawbacks/Issues related to Inspections
  • Difficult to introduce formal inspections into software developments organizations.
  • Software engineers with experience are sometimes reluctant to accept that inspections can be more effective for detecting defects than testing.
  • Managers may be sceptical as inspections require extra costs during modelling and construction.
  • Inspections may take time to arrange and appear to slow down the development process.
Software Reuse

System that are designed by composing existing components that have been used in other systems. there are more reuse-based software engineering:
  • Application system reuse
  • Component reuse
  • Object and function reuse
Requirements for reuse


Benefits of reuse

Reuse problems
  • Increased costs
  • Lack of CASE tool support
  • Not-invented-here syndrome
  • Maintaining a component library can be expensive
  • Finding and adapting reusable components

No comments:

Post a Comment