Fork 0.2 plan

1 view
Skip to first unread message

Peter Michaux

unread,
Jun 5, 2007, 7:25:22 PM6/5/07
to Fork JavaScript
Hi,

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

Dillon Woods

unread,
Jun 6, 2007, 1:02:59 PM6/6/07
to forkjav...@googlegroups.com
On 6/5/07, Peter Michaux <peterm...@gmail.com> wrote:
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.

Is the example you mentioned available on the web?  I tried http://forkjavascript.org/public/clock/index.html , but I got a file not found error.  Is that where you meant to look?

Thanks,
Dillon

Peter Michaux

unread,
Jun 6, 2007, 2:10:25 PM6/6/07
to forkjav...@googlegroups.com
Hi Dillon,

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

Reply all
Reply to author
Forward
0 new messages