Wednesday, 11 February 2009

GIF

GIF (Graphics Interchange Format)

  • Uses a palette of 256 colours
  • Handles solid colours well
  • Handles sharp edged line art well
  • Doesn’t handle gradients well (can be handled with dithering and blur)
  • GIF allows interchange of images / frames to support animation
  • Handles transparency on block objects
  • Uses matting for edges of graphic & transparency

A Bug is not a Bug unless you provide

  1. Steps to reproduce
  2. What you expected to see
  3. What you saw instead

ASP.NET MVC Attributes

There are attributes available in ASP.NET MVC that allow us to handle common scenarios consistently and easily, such as:

  • [Authorize]
  • [HandleError]

We are using these in some places and not in others. Maybe we should take the time during development tasks to investigate different ways of doing things.

Criticise ideas, not people

Don’t do this:

“You have a lot invested in your design. You’ve put your heart and soul into it. You know it’s better than anyone else’s. Don’t even bother listening to their ideas, they’ll just confuse the issue.”

Tuesday, 3 February 2009

DRY (i) Don't Repeat Yourself

"Duplication may be the root of all evil in software." (ii)

Duplication slows you down and makes your code more error prone. If the same code has to be changed in more than one place you may/will miss something.

Dupliction appears in many disguises, but there are ways to deal with it so don't worry...

1) Clumps of identical code/CPS (iii). Consider using extract method or extract class followed by highlight and delete on the remaining offenders.

2) Conditional logic testing for the same set of conditions (switch/case OR if/else). Consider polymorphism.

3) Database schema. Consider using normalisation, it can be a winner

In short duplication stinks, exterminate it ruthlessly.

(i) Andy Hunt and Dave Thomas - The Pramattic Programmer
(ii) Uncle Bob - Clean Code
(iii) CPS © - Copy/Paste Syndrome - James Enock 2009)

Add Nothing But Value

Lean : Eliminate Waste

What is waste?

Waste is anything that does not add value, such as defects not caught by tests, developing features not required for the current sprint, not coding directly from stories, etc

Mary Popendieck provides a table for waste in software in her paper Principles of Lean Thinking which also demonstrates how XP addresses waste.

Seven Principles of Lean Software Development

  1. Eliminate Waste
  2. Create Knowledge
  3. Build Quality In
  4. Defer Commitment
  5. Optimize the Whole
  6. Deliver Fast
  7. Respect People

See also: Agile Software Development.com

Followers

Contributors