Maybe the dsl aspect could be viewed as applying a layer of sugar to the
stack based workhorse.

 

Somewhat, but it is much more than sugar.  It is grease for the mind and
ironically traction too.  Shuffling is fragile until you are fluent.  Even
then it is work, and causes mistakes.  It is not a load I want to carry at
my DSL level.  I'll endure it as I must at the bottom, but I don't want to
work at the bottom when I'm immersed in thoughts of domain X.

 

  You could easily have 'adjectives' that accumulate into a variable,

 

Yes.  I have a noun-phrase grammar that uses mostly past participles (one
kind of adjective called a verbal) and adjectives proper as mutative (the U
in CRUD) and creative (the C in CRUD) modifiers.  We need a tree for this.
Free-form text, after three decades, looks silly.

 

 

 not on the stack, then a noun word that takes those options and does the
work.

 

The noun (if it is a class) is instantiated or (if it is an instance)
consumed or mutated.  In any of these cases, you have a noun phrase.

 

  This is how I accumulate attributes for the HTML elements, and it feels
like a dsl:

"Save" button <>submit
        "org" id
        <>form +content

button puts save into an attribute variable
<>submit uses (and clears) that variable, appends to the working collection
id puts "org" in the same place that button put things before
<>form uses the all-id variable to set attributes as it wraps what's on the
stack
+content puts it away somewhere.


This, I think, works fine for a dsl.  It also works fine if the 'attribute
value' is a field of an object on the stack, and the stack throughout this
is 
( page-assembly current-chunk xx -- page-assembly current-chunk )
or sometimes going down to 
( page-assembly current-chunk  -- page-assembly )

Using vocabularies, you could even keep an internal and an external version
of the word, where the stack one works faster, the other is the DSL.  

 

 

I need to be more familiar with all of the concepts and terms involved, to
produce a minimal set of well-factors nouns and modifiers.  Do you have a
complete example of a page creation-and-exercise scenario, against a
Factor-hosted web-server?  That would provide plenty of context.  The page
created/served/submitted can be small, like that form you showed me the
other day.

 

 

Shaping

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to