Tuesday, September 30, 2014

Seven basic tools of Quality

Refer to master index list for project management articles.

This is child article describing the tools of Quality Control. Refer to the parent article here

Note: The images in this post have been taken from the internet.

The seven basic tools of Quality are briefly described below:

Fishbone Diagram (or Cause–and–Effect Diagram or Ishikawa Diagram)

The fish bone diagram identifies many possible causes for an effect or problem
It illustrates how various factors may be linked to potential problems or effects.
It immediately sorts ideas into useful categories.

Control Charts
Its purpose is to determine whether a process is stable or has predictable performance.
These charts gather data to illustrate process behavior in a variation situation over a period of time.
Control charts can be used to assess whether the application of process changes resulted in the desired improvements or not.





They can be used for both project and product life cycle processes. Can be used to monitor any type of output variable.

Flow Chart
We may have used flowcharts at some point in time. Its helps to analyze how problems occur by graphically representing a process.

Histogram
A histogram is a bar chart showing distribution of variables. Each column represents a problem. Height represents the relative frequency of the characteristic.
Histograms helps to identify the cause of the problem in a process by the shape and width of the distribution.

Pareto Chart
Pareto chart is a histogram (bar chart) that shows number of defects against a type of cause. This technique is used to identify and evaluate non-comformities.
Pareto charts are conceptually related to Pareto's Law (commonly known as as the 80/20 principle which states that 80 percent of the problems are due to 20 percent of the causes)






Run chart
Line chart that shows history and pattern of variation. They show trends in a process over time, improvements/declines in a process over time.
Used to forecast future outcomes based on historical results.





Scatter diagram
Shows the pattern of relationships between two variables.
Dependent variables versus independent variables are plotted. The closer the points to the diagonal line, the more closely they are related.



Statistical Sampling
A small quantity of product is tested for quality. If the product passes the quality test, the lot is accepted.


Note: The images in this post have been taken from the internet.

Sunday, September 28, 2014

Quality management

Refer to master index list for project management articles.

We shall discuss one of the knowledge areas viz. Quality management.

"Do the right thing right the first time."

Quality management consists of:
  • Quality Planning
  • Perform Quality Assurance
  • Perform Quality control

Quality Planning:

Quality planning is critical since it identifies quality standards for a project.
The basic premise of Quality planning is that the cost of avoiding mistakes is less than the cost of correcting them.

Plan, Do, Check and Act (PDCA) model can be followed for continuous validations of processes and their efficiency in producing the expected results.


Input:
Inputs to Quality planning are:

Project Scope Statement
Constraints, assumptions, list of deliverables, acceptance criteria etc are all part of the project scope statement.

Stakeholders assessment
Lists down the stakeholders of the project.

Baseline documents:
Cost performance baseline documents the accepted time phase used to measure cost performance.
Schedule baseline documents the accepted schedule (for performance) with start and end dates.

Risks
Risks are documented and contains information that may impact quality requirements.

Output:
Quality planning results in the following output:

Quality management plan
Addresses quality control, assurance and continuous quality improvement initiatives.
This plan is built on the projects requirements and describes how quality assurance will be performed within the project.

Quality metrics
Includes defect density, failure rate, availability, reliability and test coverage.

Quality checklists
Documents the set of required steps to be performed (ensure consistency in tasks).

Process improvement plan
Identify and eliminate non value adding activities. Helps in improving processes.


Quality Assurance:
Quality assurance is the application of planned, systematic quality activities to ensure that the project will employ all processes needed to meet requirements.
Audits are performed to identify if the project activities comply with the organizational and project policies, processes and procedures. It also confirms the implementation of approved change requests, corrective actions defect repairs and preventative actions.

Inputs:
Quality management plan (already described above)
Process improvement plan (already described above)
Quality metrics (already described above)

Outputs:
Change request document
Documents the changes made to improve the quality of the project (technical and organizational).

Project management plan updates
Any update to Quality management plan will require an update to the project management plan.

Other documents
Quality audit reports, training plans and process documents are the other documents that are created.

Quality Control

Quality control involves monitoring specific project results to determine whether they comply with relevant quality standards.

Inputs:
Project management plan
Quality metrics (already described above)
Organizational processes document which includes quality standards and policies, work guidelines, defect reporting procedures and communication policies.
Approved change requests document which includes list of modifications (revised work methods and revised schedule).
Deliverable document

Note: Basic tools of Quality will be documented in a separate article.

Output:
Quality Control measurements represent the results of Quality control activites that are used to analyze the quality standards.
Validated changes document lists the items that were corrected. The corrected items are re-inspected and accepted or rejected.
Completed checklists and lessons learnt 
Validated deliverables
Project management plan updates
Any update to Quality management plan (as a result of Quality control process) will require an update to the project management plan.

Project and Project management (Introduction)

Refer to master index list for project management articles.

While we have spoken about Agile and Scrum in earlier articles, I thought it would help to start a little earlier (defining project and its characteristics).

What is a Project?
A temporary endeavor undertaken to create a unique product, service or result.

When we mention temporary, we do undertsand that every project has a definite beginning and end (does not imply short duration though). Howvever, it's not an ongoing effort.
Once the project objectives are met, the project is terminated (there is no need for a project anymore).

Constraints of Project management:

Constraints of project management is best see via the Triple Constraint Theorem.

Balancing scope, time and cost within the frame work of quality and meeting customer expectations.

You could also look at an alternate way of making a balanced project in the following way:


Limiting scope within the time and cost constraints and quality framework.

Project management knowledge areas
There are multiple project management knowledge areas. I will try to write an article on each one of them separately in the future.

Let me give a brief on the knowledge areas:



Scope management:
Includes all the work required to complete a project successfully. Consists of scope planning, definition, verification and control.

Cost management:
Ensure project is completed within the budget. Consists of estimation, budgeting and cost control.

Time management:
Ensure timely completion of the project. Consists of activity definition, resource and duration estimation, schedule development and control.

Communication management:
Consists of communication planning, report performance and manage stakeholders.

Quality management:
Consists of Quality planning, assurance and control.

HR management:
Human resource planning and develop/manage project teams are its main constituents.

Risk management:
Aspects of projects can put a project delivery under risk. Risk identification,qualitative and quantitative analysis along with response planning and monitoring are the important processes.

Procurement management:
If contracts are needed as part of the project, then we need to plan contracts and will involve lots of administrations.

Project Integration management:
Integration management consists of processes that ensure that various elements of a project are properly coordinated.




Project management

This page lists all the articles in this blog which are related to project management.
As more articles are published, we will update this page accordingly.


Sunday, August 31, 2014

Agile - Principles and values


One of the most important things to remember is that AGILE is NOT
- A set of tools
- Process
- Methodology

AGILE is a set of values.

The Agile Manifesto as per wikipedia reads, in its entirety, as follows:

We are uncovering better ways of developing software by doing it and helping others do it. Through this work we have come to value:
  • Individuals and interactions over Processes and tools
  • Working software over Comprehensive documentation
  • Customer collaboration over Contract negotiation
  • Responding to change over Following a plan
That is, while there is value in the items on the right, we value the items on the left more.
As we had mentioned in our previous agile article, continuous feedback is very important.
Point 1 above is on similar lines where continuous feedback is more important when we mentioned "individuals and interactions".

Working software will definitely get more value over documentation, but it does not imply that documentation is not at all needed.

With time a customers needs can change. Even due to marketing dynamics, needs can change. Hence, customer collaboration and continuous checks on delivery will help to deliver a model which the customer can appreciate.

As mentioned, market dynamics and conditions may make the customer change his requirements. Incremental reviews and phase wise delivery and continuous feedback and collaboration will help us deliver a product close to customer's needs (at that point in time).

The Agile Manifesto, as per wikipedia, is based on twelve principles:
  • Customer satisfaction by rapid delivery of useful software
  • Work closely with the customer and provide timely incremental delivery of the product
  • Incremental reviews for customer feedback
  • Capture acceptance criteria on each discussion
  • Prioritize the pending requirements
  • Conduct surveys to find the satisfaction level of the customers

  • Welcome changing requirements, even late in development
  • It is widely accepted that customer needs can change with time due to market dynamics
  • One needs to embrace this change to provide value to the customer
  • Evolve a process that accepts these changes
  • Changes need to be prioritized with existing requirements
  • Working software is delivered frequently (weeks rather than months)
  • Frequent incremental delivery of software.
  • These are sprint reviews (may be in a couple of weeks and not months).
  • Automated, performance and load testing plays an important part in testing such small delivery cycles continuously.
  • Close, daily cooperation between business people and developers
  • In non-agile models, business and development teams rarely interact. This could lead to a delivery of a product that may not adhere to the customers need at that point in time.
  • There should be frequent interaction between business and development teams.
  • Development team benefits from knowing the business perspective (about the function of the software)
  • Business teams gets insight into development details that they may not have an idea about when they conceive the product needs.
  • Projects are built around motivated individuals, who should be trusted
  • Motivated employees need to be encouraged and involved in the product.
  • Employees feel empowered and result in higher output and better product
  • Face-to-face conversation is the best form of communication (co-location)
    • Lot has already been mentioned about communication, hence not delving much into this point.
  • Working software is the principal measure of progress
  • Self explanatory - a working software is a measure of progress.
  • In waterfall, there is no working software at any point in time (in the schedule) except at the end. Thus, from customers perspective, there has been no progress to see.
  • For every incremental release, there should be a working demo which should go through automated set of testing.
  • Customer feedback is gathered at the end of the demo and any new changes need to be prioritized and embedded for the next subsequent releases.
  • Sustainable development, able to maintain a constant pace
  • Pretty much self explanatory, constant pace need to be maintained.
  • However, need to ensure that members of teams do not work crazy hours/weekends (maintain 40 hours a week)
  • Continuous attention to technical excellence and good design
  • I guess this is a no brainer. Team members need to have the the technical expertise to deliver a quality product.
  • There should also be a focus to continuously learn and improve upon coding standards, design, integration and testing.
  • Simplicity—the art of maximizing the amount of work not done—is essential
  • Reduce non value added work of team members.
  • Simplify process of deployment or remove extra features etc
  • Self-organizing teams
  • As the product evolves, there is a need to change the architecture, requirements, design etc. Team members must be involved in decision making leading to greater ownership and responsibility.
  • This is not easy and requires a lot of team work and an open culture that promotes team based rewards etc
  • Regular adaptation to changing circumstances
  • Periodically, there should be an introspection on how to become more effective and be able to adapt to changing demands and requirements.
  • Self organizing teams are the key to real improvement.
  • There should be a commitment to adapt and improve with every iteration over a period of time.

Thursday, August 28, 2014

Some 12C Features

Will try to describe some of the 12C features and will keep editing this post.

Note:
  • If you want to install Oracle 12 on Windows 7, refer the steps here 
  • To troubleshoot invalid common user or role name after installation, go here

Feature List

 Identity Columns:
  • Also known as auto-number column. This implies that the data in the column should increase when data is inserted).
  • Read article on the same here.

 Invisible Columns:
  • Columns can be made invisible
  • It gives one the ability to introduce a change while minimizing any negative side effects of that change.
  • Read article on the same here 
With Clause:
  • Instead of using a stored PL/SQL function, we can include the body of the function in the SQL query
  • Read article on the same here 
 Truncate statements with the cascade option
  • We could not truncate table with foreign key constraints.
  • Now in 12c, one can execute the truncate table command with the cascade option (to cascade through the child tables).
  • Note: You would need to create the foreign key with the "on delete cascade" option
Columns can have a default value in place of NULL
  • You can define a column to have a default value when NULL is inserted
  • e.g. create table ......  product_id NUMBER ON NULL 0,.....
  • So if one explicity inserts NULL, it will be populated by value 0
Multiple Index - same columns
  • You can create multiple indexes (different types) on a same set of columns.
  • Assume you need to change from B*tree to Bitmap or vice versa.
  • You need not drop the index.
  • Just make the first index invisible and make a new index.
  • Conditions:
    • Different types of indexes
    • Different uniqueness
    • Different partitions are used
 



Tuesday, August 26, 2014

12 C Feature - WITH Clause

Note: Index article on some 12c features can be seen here

The with clause is more efficient to use than sub queries.
Instead of using a stored PL/SQL function, we can include the body of the function in the SQL query.
Benefit is that it will run faster than the call of a function by the same statement.

This can be better explained with an example.
Lets create a table with some test data.





Look at the usage of the function using with - in the body of the query.




The function in the with clause over-rides the function created at schema level. In below screenshot, you can see the schema level function returning SYSDATE+1 and the with clause function returning SYSDATE+2. Check the output - its SYSDATE+2.




Note: You need to put in a slash (/) at the end else SQLPLUS waits for more input (refer lines 9-12 in the snapshot waiting when ENTER key was pressed).