So, what do you think? Should Visi require tests and documentation by default? How can we create the right atmosphere and cultural norms around Visi that make it super simple and super easy to start, super simple, super easy to cycle on models/programs, and also make sure there are the right norms so we wind up with a solid test mentality like the Ruby/Rails culture and a solid documentation mentality like the Java culture?
I wonder if there is a way to make writing tests as natural and simple
as writing a few println() while you code. Maybe providing some kind
of code generation, where you write the test, and then Visi creates
your skeleton code that satisfies your test.
If this isn't possible, then I would be worry about forcing people to
have tests and docs unless they specify a flag. I think that a better
way would be to have a flag to "force" the tests, like a "strict" mode
or something.
And at the same time, try to write many of the how to, docs, etc. of
Visi itself to include how to write tests, and docs, So people will
find it easy to just "copy" your way.
As for Documentation, I like how specs2 creates html files based on
the tests you write, maybe Visi can have something similar.
(Sorry if this sounds like mumble, but I should really be sleeping
right now :) )
Regards,
Diego
--
Diego Medina
Web Developer
di...@fmpwizard.com
http://www.fmpwizard.com
As for tests, from what I know of this system so far, I am thinking a
"quick check" like property-based test capability would be useful.
Mandating (good) tests may be as difficult as mandating good
documentation. But maybe some kind of built-in, obvious (if not "in
your face") reporting of the current level of testing (whether its
coverage or something else) might be useful.
-Patrick
I don't personally like requiring such things. It gets in the way of experimentation. You're not always writing production code. Sometimes, you're building "one to throw away". But, I do think that providing standard tools and "one obvious way to do things" will go a long way toward building the culture you're looking for.On Thu, Jan 5, 2012 at 8:15 PM, David Pollak <feeder.of...@gmail.com> wrote:
So, what do you think? Should Visi require tests and documentation by default? How can we create the right atmosphere and cultural norms around Visi that make it super simple and super easy to start, super simple, super easy to cycle on models/programs, and also make sure there are the right norms so we wind up with a solid test mentality like the Ruby/Rails culture and a solid documentation mentality like the Java culture?
Kevin
--
Kevin Dangoor
work: http://mozilla.com/
email: k...@blazingthings.com
blog: http://www.BlueSkyOnMars.com
>I wonder if there is a way to make writing tests as natural and simple
> So, what do you think? Should Visi require tests and documentation by
> default? How can we create the right atmosphere and cultural norms around
> Visi that make it super simple and super easy to start, super simple, super
> easy to cycle on models/programs, and also make sure there are the right
> norms so we wind up with a solid test mentality like the Ruby/Rails culture
> and a solid documentation mentality like the Java culture?
>
as writing a few println() while you code. Maybe providing some kind
of code generation, where you write the test, and then Visi creates
your skeleton code that satisfies your test.
If this isn't possible, then I would be worry about forcing people to
have tests and docs unless they specify a flag. I think that a better
way would be to have a flag to "force" the tests, like a "strict" mode
or something.
And at the same time, try to write many of the how to, docs, etc. of
Visi itself to include how to write tests, and docs, So people will
find it easy to just "copy" your way.
As for Documentation, I like how specs2 creates html files based on
the tests you write, maybe Visi can have something similar.
(Sorry if this sounds like mumble, but I should really be sleeping
right now :) )
Regards,
Diego
--
Diego Medina
Web Developer
di...@fmpwizard.com
http://www.fmpwizard.com
I was recently impressed with a demo of the Larch environment, a programming environment for python.
One of the interesting things about it is that is sort of a python REPL but the code, input and output are captured in a document. You can edit code and inputs and rerun to see outputs in the document. Working in a REPL is sort of informal testing and with the Larch that testing can be captured and cycled on just like the code. This seem like a very low impact way of doing tests.Drawing a page from their book for Visi might not be a bad idea.