Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Which statements about ServletContext initialization parameters are true? A. They should be used for data that changes rarely.
This is one of the correct answers. It's a bit unclear for me (or, I'd rather say, it can be understood in two different ways).
As we know, init parameters are read-only Strings, so these can't change during application lifecycle *at all*. Therefore this option is incorrect, right? It would be correct for ServletContext attributes. But, now comes the second way of understanding the question... these init parameters may be changed in deployment descriptor, therefore I agree - these are changed very rarely (like the sample admin's email), but *only* between deployments.
I think there should be some more information added to this question, maybe a good item to add to errata.
First way "init parameters are read-only Strings, so these can't change during application lifecycle" Closely match to option A,so that we can put them direcly as context-param
Why does it match? Does 'rare' changing include 'no changing'? For me, writing about data that changes rarely means that data changes at least once. But context-param's can't be changed in other way then modifying DD, so for first case option A is incorrect.
I agree about second way. [ June 22, 2006: Message edited by: Adam Czysciak ]
Originally posted by Adam Czysciak: Why does it match? Does 'rare' changing include 'no changing'? For me, writing about data that changes rarely means that data changes at least once.
Any time you're dealing with deployment descriptors (and answering exam questions) you need to step outside of the programmer's paradigm and assume that the question is being asked at a higher level.
I do agree that the question can be misleading to a programmer, but the wording in HFSJ doesn't bother me so much because the actual SCWCD exam likely would word it the same way. What's more is that the SCBCD, being so DD-oriented, is loaded with questions worded much like this.
A good workman is known by his tools.
What are you doing in my house? Get 'em tiny ad!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth