skaant / _motif-js_0.1 Goto Github PK
View Code? Open in Web Editor NEWGenerative pattern-oriented framework
Generative pattern-oriented framework
a pattern (described by a motif
instance/as described by the motif
pattern*) is a (js) file
* This is the ambivalence of the motif
pattern.
a pattern can be instantiated
an instance can be :
function
,a pattern's (a motif
instance) instances occur on (where does it start in the host structure) and with (how is packaged the instance) a specific folder tree pattern
a motif
is packaged with (key-concepts ?) :
motif
instances)a processor can be : test, documentation, whatever ...
Keys: pattern, motif
, description, instance, specifications, test, generator, instantiation/creation/production, processor, documentation ...
A pattern describes what is common between its instances ?
HUMAN : the first PROCESSOR ?
The HI! program > list all processors.
FILES : address (path), content, on-demand modules
Example : get motif's processors list
instance /** next step */ =
motif._processors.list(
instance /** previous step */,
params
)
what to do ? could also be answered with : all @todo
The most common form of a design pattern is a descriptive one such as a pattern catalogue entry or a Web page. This form preserves the instructional nature of patterns, as a cache of known solutions to recurring design problems. Design patterns provide a common design lexicon, and communicate both the structure of a design and the reasoning behind it [2].
The design pattern documentation usually contains a description of the pattern that consists of eleven parts : intent, motivation, applicability, structure, participants, collaborations, consequences, implementation, sample code, known uses and related patterns [10].
During the implementation process, the adapted design pattern is a specification. Experienced programmers can quickly transform the specification into code.
[Generative design patterns that generate code] reduce implementation time, are less prone to programmer error, promote rapid prototyping and code reuse, support performance tuning, and provide better overall software engineering benefits.
A static framework cannot meet these conflicting requirements unless the traversal code is not included in the framework. This defeats the purpose of generating the
code from the design pattern.
instance = motif._processors[processorId](instance, params)
In this case the names and signatures could be weaved with a generic framework to produce the final framework code.
motif
framework > custom framework (on-the-fly ?)Consider code generation after adaptation, which can generate simple efficient code. Unfortunately, during adaptation, the pattern quickly gathers application-specific characteristics.
Each design pattern must be analyzed to identify specific adaptation parameters.
HUMAN the first processor
When it comes to the reader's attention, patterns in their descriptive form are already generative : it (tries to) generates mental representation/thoughts association in the reader's mind.
I added the try mention because, as stated in [1] :
design patterns are written documents that are subject to human interpretation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.