Dariusz on Software Quality

16/01/2012

Static verificaiton tool for web2py templates

Filed under: en — Tags: , , , , — dariusz.cieslak @

Web2Py is a full-stack Python web framework that can be compared to Django, but is easier to learn due to convention-over-explicit-statement preference. In this article I’ll check how static verification techniques developed by me for many different environments (JSP, Django templates, TAL, …) can be applied for web2py environment.

Static verification means locating simple bugs without running application thus very high (>95%) testing coverage (and high related cost) is not required. Instead with trying to cover by tests every possible screen/workflow/code line/… we can scan all codebase and search for some constraints. Most of them (based on my experience) are static – do not depend on runtime data thus can be effectively checked without running an application.

(more…)

12/11/2011

Bug vs Feature

Filed under: en — Tags: , — dariusz.cieslak @

How often do you (I assume a developer) trying to make a suit for this small creature? Aren’t such “features” just a mistake in software specification? If it’s something that is visible just after product is deployed and it’s OK from specification point of view:

  • Someone has not predicted errant situation during specification phase
  • OR: your waterfall (yes, it’s a linear analysis-project-implementation-test flow!) process is basically not working now

I believe without formal methods you are not able to predict all possible specification inconsistencies before implementation. Even very accurate review process might leave some holes in specification that lead to obvious bugs as a result.

(more…)

Powered by WordPress