I’m wondering if there is some
confusion here. It didn’t seem to me he was advocating static typing in
_javascript_, just automatic type-checking when you need it. Maybe I misread
it. I’m all for dynamic typing. I’m also all for easy, automatic
type-constraining when needed (to turn silent failure into loud, obnoxious
failure J). I thought that was what he was proposing. Greg From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas Fuchs That's why you won't hear the words "components" and
"configurable" too often in the Rails community. It's often much faster to write your own customized stuff instead of
trying to configure a prefab component-- because of the speed you can develop with a dynamic
language. :) Embedding defensive techniques is good of course, and your unit tests
should include throwing strange stuff at your code. Nevertheless, static typing isn't a catch-all and
could even lead to a false sense of security. The problem is that you easily get to the point that you try to
"force" the language into something that it just isn't-- Microsoft tried something like that with their
"Atlas" framework (Java-style OO), and IMHO miserably failed. Anyway, this has already been discussed to death (maybe check the rails
mailing list archives), and neither way of doing things is the holy grail, plus it depends heavily on
personal experience and preference, how things work in the team, maybe corporate policies, phase of the moon,
etc. etc. Best, -Thomas Am 31.07.2006 um 15:42 schrieb Ryan Gahl:
However, when creating
consumable components or APIs, it's always good to embed defensive techniques
into your code because you may not know which anonymous application space is
trying to do what with your stuff, and yes you can tell those 3rd parties to
unit test unit test, but in the end you can't control that. On 7/31/06, Thomas
Fuchs <[EMAIL PROTECTED]>
wrote: Prototype is heavily based on ideas borrowed from Ruby (which has _______________________________________________ Rails-spinoffs mailing list -- Thomas Fuchs wollzelle questentier on AIM madrobby on
irc.freenode.net http://www.fluxiom.com :: online digital
asset management http://script.aculo.us :: Web 2.0 _javascript_ http://mir.aculo.us :: Where no web developer has gone before
|
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs