Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Junilu Lacar wrote:My thoughts on this:
Dennis Deems wrote:
Junilu Lacar wrote:My thoughts on this:
I'd give this 100 thumbs up if I could.
Junilu Lacar wrote:My thoughts on this:
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Santhosh Kalisamy wrote:@ Winston : What alternative are you suggesting?
All I want is to control the parameters for getProperties method.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:[Edit] Apologies Junilar, I now understand your point. I'm still not sure I agree with it though.
Junilu Lacar wrote:
Winston Gutkowski wrote:[Edit] Apologies Junilar, I now understand your point. I'm still not sure I agree with it though.
It's "Junilu" ;)
Writing those tests is not necessary in all cases...
Sometimes though, especially with large legacy systems, you'll get duplication even with constants and properties...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:I thought tests were written for "users", not programmers, but I may be out of date.
Yes, but surely that's when "bounds" are most useful. Either a constant is or it isn't. Start mucking about with that and I suspect you'll have a lot more issues than what we're talking about. To my mind, everything else is a "translation" task.
Junilu Lacar wrote:Just to add to the confusion of my previous example, say the developers of Version 2.0 hard-coded the value instead of the key. Then the Version 3.0 developers decided to name the refactored constant APP_DB_URL also. So now you have duplicate constants defined in the application but one APP_DB_URL represents the key while the other one represents the value.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:All this surely boils down to two basic design issues:
Every time you till, you lose 30% of your organic matter. But this tiny ad is durable:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|