I've made a plan for 0.2: The design patterns and testing release. All
the parts are now in trunk.
The main addition is an MVC framework using Gang of Four design
patterns (observer, strategy, composite). There is a modest example
using the framework in public/clock/index.html. My procedural and
pseudo OOP spaghetti code days are over. Using MVC allows much bigger,
more flexible apps to be constructed with some code structure.
I have also commited the beginnings of a testing framework. It works a
lot like Selenium but the tests are written in JavaScript. Writing
tests in a meta language just isn't for me.
Smaller additions: I've added a dom builder function that is very
handy when building views. And there is a FORK.Timeout library for
scope correction and argument passing like the event and ajax
libraries.
I'll be using all these features for my next big project so they will
be real world tested before 0.2 release.
Peter
The main addition is an MVC framework using Gang of Four design
patterns (observer, strategy, composite). There is a modest example
using the framework in public/clock/index.html. My procedural and
pseudo OOP spaghetti code days are over. Using MVC allows much bigger,
more flexible apps to be constructed with some code structure.
If you checkout the Rails app from SVN you can see it
svn co http://dev.michaux.ca/svn/fork/trunk fork
cd fork
script/server
http://localhost:3000/clock/index.html
The example is very modest and follows an example in Colin Moock's
"Essential ActionScript - 2nd ed." The clock specific code in clock.js
is not what I was focused on particularly.
The files observable.js, model.js, controller.js, view.js were the
focus and I think they are quite well formed now. There are comments
in the code but this doesn't constitute proper documentation or a
tutorial. If you look at the code and have any questions feel free to
ask.
When you have the Rails app running you can also look at the testing framework
http://localhost:3000/javascripts/fork/test/
and just click "continue" to select the default test suite.
Peter