Search |
||
Compilllers are HelpfulPosted by edburns on March 12, 2007 at 9:11 AM PDT
When working to revive Webclient
as a means to enable one to write automated tests for Ajax Applications,
I ended up fixing some thread safety assertions that were failing in
native code. Part of this involved slightly recrafting the design of
the native/Java DOM bridge, originally written over seven years ago by
Igor Kushnirsky. Igor's
original design had lots of
into this:
Of course, I would have to modify the function names in the native C++ source files as well. In case you were wondering, I did consider these solutions but rejected them.
That said, I wrote some xemacs macros as I went along and it only took a couple hours of manual editing. While doing it, I re-compiled all along the way. Naturally, the compiler caught some things, which I easily fixed, as I went along. This got me thinking. Say this code was written entirely in a scripting language. If so, this sort of "complicated, human-assisted global search and replace" change (I won't call it refactoring since this particular process was so specific to JNI) would be really error prone and hard to debug. The absence of a type checking compiler would really make this sort of change hard. I assert that this sort of change is happens all the time in the maintenance phase of a large software project. I assert that the person making the change is seldom the same person who wrote the code originally. Given these assertions, I predict much woe for the maintenance programmer who has to do such a change on a scripting language based project. I continue to urge caution for those listening to scripting zealots when they consider moving more of their projects to scripting languages. Technorati Tags: edburns»
Related Topics >>
Java Enterprise Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|