Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TDD with Curl (part 3)
10-27-2011, 10:45 PM,
TDD with Curl (part 3)

Test-driven development does not mean ALWAYS having to take tiny steps - just that when
the need arises, that you must be confortable proceeding by small increments.
So I have taken a large step and built a prototype (the file is attached.) Building the
prototype raised many testing issues which belong on a ToDo list.

Attached below are also two snaps of the prototype as normally extended and as

Two issues which may arise can be seen in the elastics.curl file which is attached.
One issue can be seen when not using a Label on a CheckBox: compressing the box will
compress the active area of the actual "check-here" graphic. But the Label itself requires to
be set to compress correctly.

Another issue arises when using TextFlowBox for a single line of text, such as our "Dawson
Creek" in the center of our test widget. The simple way to prevent a line from wrapping as a
box compresses is use escaped spaces in the text, as in "Dawson\ Creek".

But was it a requirement that our box be able to shrink correctly? Well, a mobile
user may be the most likely user to want a view of which towns are in which
direction, so we need to add ToolTip to the ToDo list. And we need to test towns
with rather long names both as the "central" location and as the "geo-link"
locations. And when you get far enough north, there may be only one town to
the SE and one to the SW – so we have to test for links from 0 to 8 and then n > 8 as an error ...

I started the prototype in a Curl live-doc {example } window and then moved into Eclipse
where most issues were caught by the CDE. What is important now is to set aside the
prototype and return to our next tests. What the prototype does contain is a great deal of
redundant code and a great many constant values rather than variables.
And we should remember that Curl now has ValueClass as an option, should that prove

For the final widget we may want to add to the ToDo list both StyledControls and
StyleSheets with StyleRule's.
Robert Shiplett, Curlr
Fredericton NB


Possibly Related Threads...
Thread Author Replies Views Last Post
Brick Curl macros introduction (part 1) RobertShiplett 4 6,993 04-25-2015, 05:28 PM
Last Post: glennmcgrath
  server-side Curl issue : TocDocument RobertShiplett 3 5,691 02-09-2015, 02:11 PM
Last Post: Sumeraxe
  Curl with HTML widget + CintaNotes RobertShiplett 0 4,444 09-08-2014, 07:42 AM
Last Post: RobertShiplett
  Curl for the new Kodansh kanji books RobertShiplett 0 3,032 09-07-2014, 08:51 PM
Last Post: RobertShiplett
  Curl on Facebook - another page RobertShiplett 0 3,737 02-01-2014, 02:29 AM
Last Post: RobertShiplett
  Curl for CoffeeScript folks RobertShiplett 0 4,758 06-29-2013, 02:52 AM
Last Post: RobertShiplett
  Curl JavaScript bytecodes RobertShiplett 0 4,939 06-19-2013, 10:33 PM
Last Post: RobertShiplett
  jinja2 templates for Curl RobertShiplett 0 4,147 06-14-2013, 08:33 AM
Last Post: RobertShiplett
  Curl and QNX RobertShiplett 0 4,932 04-24-2013, 11:38 PM
Last Post: RobertShiplett
  WikizPad Curl personal wiki RobertShiplett 0 4,115 03-11-2013, 01:09 AM
Last Post: RobertShiplett
Forum Jump:

Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
INSERT INTO mybb_threadviews (tid) VALUES('328')