Re: SUGGESTION: Make a two-level TDD file structure
Daniel Dekany <[email protected]> Tue, 18 Jul 2006 22:30:45 +0200
| Newsgroups | gmane.comp.text.fmpp |
|---|---|
| Message-ID | <[email protected]> |
--===============2069873564==
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-=
1">
<meta http-equiv=3D"Content-Style-Type" content=3D"text/css">
<style type=3D"text/css"><!--
body {
margin: 5px 5px 5px 5px;
background-color: #ffffff;
}
/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Text Styles =3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D */
hr { color: #000000}
body, table /* Normal text */
{
font-size: 9pt;
font-family: 'Courier New';
font-style: normal;
font-weight: normal;
color: #000000;
text-decoration: none;
}
span.rvts1 /* Heading */
{
font-size: 10pt;
font-family: 'Arial';
font-weight: bold;
color: #0000ff;
}
span.rvts2 /* Subheading */
{
font-size: 10pt;
font-family: 'Arial';
font-weight: bold;
color: #000080;
}
span.rvts3 /* Keywords */
{
font-size: 10pt;
font-family: 'Arial';
font-style: italic;
color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
font-size: 10pt;
font-family: 'Arial';
color: #008000;
text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
font-size: 10pt;
font-family: 'Arial';
color: #008000;
text-decoration: underline;
}
span.rvts6
{
font-size: 11pt;
font-family: 'tahoma';
font-weight: bold;
color: #ffffff;
}
span.rvts7
{
font-family: 'arial';
}
span.rvts8
{
font-size: 11pt;
font-family: 'tahoma';
}
span.rvts9
{
font-size: 8pt;
font-family: 'arial';
font-style: italic;
color: #c0c0c0;
}
span.rvts10
{
font-size: 13pt;
}
/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Para Styles =3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D */
p,ul,ol /* Paragraph Style */
{
text-align: left;
text-indent: 0px;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
text-align: center;
}
--></style>
</head>
<body>
<p>Tuesday, July 18, 2006, 8:26:36 PM, Colbert Philippe wrote:</p>
<p><br></p>
<div><table border=3D0 cellpadding=3D1 cellspacing=3D2 style=3D"border-co=
lor: #000000; border-style: solid; background-color: #ffffff;">
<tr valign=3Dtop>
<td width=3D14 style=3D"background-color: #0000ff;">
<p><span class=3Drvts6>></span></p>
</td>
<td width=3D547>
<p><span class=3Drvts7>SUGGESTION: Make a two-level TDD file structure fo=
r more abstraction power.</span></p>
<p><span class=3Drvts8> </span></p>
<p><span class=3Drvts7>The TDD feature is one of the most powerful featur=
es of FMPP. TDD hierarchical structure lends itself to complex appl=
ications. That's great!</span></p>
<p><span class=3Drvts8> </span></p>
<p><span class=3Drvts7>However, I find myself wanting a little bit more. =
I would like to see a two-level TDD file setup. That is I wa=
nt to see two (2) different TDD files. The values of the first TDD =
file beeing used in the second TDD file (property interpolation) and the =
second TDD being the final TDD file to be used with FMPP.</span></p>
<p><span class=3Drvts8> </span></p>
<p><span class=3Drvts7>This would greatly increase the power of FMPP. &nb=
sp; It's a natural extensition. For instance, my application simply=
create XML configuration files using FMPP. I have wrapped each re=
usable XML section into an FMPP macro. So values are replaced direc=
tly into the macro. My TDD file separates parameters by macros. &n=
bsp; I would need a second TDD file to have "application specific concept=
abstraction". That is grouping values by application concepts. &n=
bsp; This second two-level concept can be reused in any application and w=
ould make things easier and cleaner.</span></p>
<p><span class=3Drvts8> </span></p>
<p><span class=3Drvts7>Let me go even one step further by generalizing th=
is concept of levels of TDD file. Let me suggests that FMPP suppor=
ts any number of cascading TDD files. Instead of limiting ourselves=
to two-leve, let's make it n-level TDD file cascading.</span></p>
<p><span class=3Drvts8> </span></p>
<p><span class=3Drvts7>TDD file1 --> TDD file 2 --> ... TDD file N =
---> Used by FMPP</span></p>
<p><span class=3Drvts8> </span></p>
<p><span class=3Drvts7>The TDD file N is used by FMPP. The other f=
iles are forgotten. This would allow any number of levels of abstr=
action.</span></p>
<p><span class=3Drvts8> </span></p>
<p><span class=3Drvts7>Colbert Philippe</span></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p>Good-old TDD bleeds from hundreds of wounds, huh? For example, what yo=
u say, if I understand your suggestion well at least, is a "deficiency" t=
hat is known for me. It should be solved purely on the TDD level. The TDD=
should have a line like:</p>
<p><br></p>
<p> %substitutions: {tdd(data/whatever.tdd)}</p>
<p> # Note that of course you could use cvs(...) and whatnot=
.</p>
<p><br></p>
<p>and then the TDD language should allow referring to these variables so=
mehow... don't know, for example with a sub(name) function. (Similarly, t=
he inheritance that TDD config files can do, should be a TDD feature, not=
an FMPP config. loader feature.) Or you even wanted macro calls in the T=
DD file? This is how a simple config. file format could gradually become =
a 2nd programming language... :)</p>
<p><br></p>
<p>Now, I don't develop FMPP actively for while, as it is clearly stated =
on the index page as well. So, if you (or anybody) needs new features (as=
opposed to bugfixes, that I still do), I'm open to discuss proposals tha=
t then can be followed with proper quality patches. Or even giving admin =
rights to the project, if I find the person reliable and talented. Otherw=
ise all I can say, that if I will ever write a next generation preprocess=
or tool (Is there a real demand for a such tool? I'm not sure...), I won'=
t forget about these things.</p>
<p><br></p>
<p><span class=3Drvts9>-- </span></p>
<p><span class=3Drvts9>Best regards,</span></p>
<p><span class=3Drvts9> Daniel Dekany</span></p>
</body></html>
--===============2069873564==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--===============2069873564==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
fmpp-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fmpp-open
--===============2069873564==--