Jsp Refactoring Case StudyThe Context
The role of programmer (in this context) consists of a number of duties:
The requirements consisted initially of a few screenshots from Visio showing an example of each page in the application. The application is a Web front end to a content management and distribution server.
This design did not include:
The Ranting
I am, for the most part, expected to turn out code which plugs straight into the existing platform. Whether it's a JSP-based report, custom Java or JSP plugin, or even a number of interrelated components, the standard way of testing is to add it to the platform, turn it on, and see if it works. I might get to do this a few times on my local machine before it gets deployed to the test server, after which any problem becomes a bug report which goes straight to my mailbox if I'm lucky. If it's a bad bug someone will tell me verbally instead.
On Testing
In extremeprogramming@yahoogroups.com, "J. B. Rainsberger" <jbrains@r...> wrote [slightly rephrased]: I have trouble writing AcceptanceTests, rather than UnitTests. Every time I try to write an acceptance test, I get six lines in, realize how much set-up there is and give up. The test is simply too big. I wonder whether an emphasis on unit tests makes it too difficult to write good acceptance tests.
CarolineFoster wrote [in http://groups.yahoo.com/group/extremeprogramming/message/67515] - I have the same problem, but with my unit tests. I get six lines in, realise how much set-up there is and give up. [I'm working mainly with servlets and JSPs. I've tried Catcus, but I spend five minutes, realise how much setup there is and give up. Shame on me.]
AcceptanceTests are a different story, and are perfect for TestDrivenDevelopment. An example:
In refactoring@yahoogroups.com, emily.bache@a... wrote [slightly edited]:
A couple of years ago I tried to refactor a large messy Java (partly J2EE) application, and it was a disaster. The code ended up so full of bugs it was unusable, after around 3 months of my time.
Reasons were:
CategoryCaseStudy, CategoryRefactoring
EditText of this page
(last edited May 6, 2005)
or FindPage with title or text search