3 responses to “Strict typing as a first line of defence”

  1. Daniel Tenner

    Ah, that’s a very good point.

    Mind you, I imagine a thorough suite of unit tests would pick this up too :-) Rails, for example, has no compile-time type-checking, but makes it very easy to construct thorough unit tests. So perhaps the strict typing could be forgotten about if Flex made it very straightforward to write unit tests…

    Hmm…

    Daniel

  2. Julien

    Very interesting one :)
    Thanks for the tip & good luck for the next iterations man

    ttyl,
    Julien

  3. Cliff

    @daniel Yep, unit tests will almost certainly catch most of these cases. I’m still a fan of strict typing though, and I wouldn’t want to see AS3 go back to the dark days of AS1 ;-)

    Also, it’s a matter of workflow. In Rails, continuous integration testing is very easily accessible – it’s a simple matter of running autotest. Running Flex unit tests first requires compilation of the test project, then execution of a test runner. Whereas in Rails, your first level of defence is your instant notification via growl. In Flex, my first level of defence is the Flex Builder ‘problems’ panel. It’s just quicker.

    That’s not to say it’s not possible to do Rails style continuous integraiton in Flex- it just requires more resources, and some Ant fudgery. Something you and I will look at in the very near future :-)

Leave a Reply