Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
--cheerio atul
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry wrote:This is what happens if you have your stake holders that does not understand the risk of an untested code.
Junilu Lacar wrote:
Joe Harry wrote:This is what happens if you have your stake holders that does not understand the risk of an untested code.
I think it's a cop-out to try to blame stake holders for the sloppy job that developers do. It's the developer's responsibility to write unit tests and ensure quality of their code. Don't blame the houseowner for not making sure that you, the housebuilder, followed good construction/engineering practices.
Yvette Schat wrote:The stakeholders can be blamed for other things, e.g. sloppy/inexistent acceptance tests of the end-product.
Junilu Lacar wrote:
Yvette Schat wrote:The stakeholders can be blamed for other things, e.g. sloppy/inexistent acceptance tests of the end-product.
Even that is a cop-out to me. Developers have a responsibility to work with their stakeholders and guide them through the process of acceptance.
Yvette Schat wrote:I don't agree. True that there must be collaboration, but the business is grown up and should not expect a babysitter and whine when things do not work ;-)
It's symbiotic.
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Junilu Lacar wrote:
Yvette Schat wrote:I don't agree. True that there must be collaboration, but the business is grown up and should not expect a babysitter and whine when things do not work ;-)
It's symbiotic.
I don't see that as a useful attitude. If you think that the act of working with stakeholders and guiding them through the process of acceptance is "babysitting" and that bringing up issues with the software is "whining" then I think we have different working definitions of "collaboration".
Yvette Schat wrote:Stakeholders have an active role in quality, the role of the developer ends at a certain point in time.
SCJP 1.4, SCWCD for J2EE 1.4
Junilu Lacar wrote:
Joe Harry wrote:This is what happens if you have your stake holders that does not understand the risk of an untested code.
I think it's a cop-out to try to blame stake holders for the sloppy job that developers do. It's the developer's responsibility to write unit tests and ensure quality of their code. Don't blame the houseowner for not making sure that you, the housebuilder, followed good construction/engineering practices.
For new code, I never ask permission to do TDD or refactor. It's just all a part of good software development practice; it's what I do as a developer. For legacy code, I might have some discussions with the stakeholders to educate them on the risks and costs of moving forward without refactoring the code first. They can then weigh those risks and costs and decide whether or not they want to invest in giving the developers time to refactor/reengineer the code so that they can proceed safely and more quickly from there. I usually end up giving them a little "lecture" about Technical Debt but most of the time, we can all come to a consensus on whether or not refactoring the legacy code is a good investment. Sometimes I get my way, which is always to refactor, sometimes not but at least I always have the stakeholders on board and expectations are set clearly and appropriately.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry wrote:
When the time given to develop something is calculated or estimated without taking testing effort into consideration, how would you write tests? This happened to me a couple of times where there was a person part of the Stakeholder team estimated the development effort which had to be blindly followed. What would you do in that case? Unanimously, that stake holder was held responsible for putting us in a situation to deliver un unit tested code base
Tushar Sharma (Twitter: @Sharma__Tushar)
http://www.tusharma.in
http://designsmells.com/
T. Sharma wrote:I would like to go to the original question.
...
A quote from the same source (that I like a lot): "Over time, tested areas of the code base surface like islands rising out of the ocean."
T. Sharma wrote:I would like to go to the original question. Unfortunately, it is not rare to see such cases (where tests are completely missing). To counter this, Michael Feathers proposed the "legacy code change algorithm" in his book (Working Effectively with Legacy code):
Identify change points Find test points Break dependencies Write tests Make changes and refactor
One should try to follow this to overcome the situation. It is to be realized that the situation cannot be changed completely overnight.
A quote from the same source (that I like a lot): "Over time, tested areas of the code base surface like islands rising out of the ocean."
SCJP 1.4, SCWCD for J2EE 1.4
Junilu Lacar wrote:It's hard to be specific about these things. In general though, I always fall back to basic design principles and design patterns. Most problems come from violating the SOLID, SLAP, and DRY design principles. If you use modern frameworks properly, a lot of the technical issues are already taken care of for you by the framework developers. Knowing how to use the frameworks properly and making good design choices based on the basic principles keeps you out of a lot of trouble.
SCJP 1.4, SCWCD for J2EE 1.4
Karthick Sundaram wrote:But the problem I have had is - When you give an estimate of time required to complete a task, that includes writing tests, I am asked, what would be the estimate without the tests. :-)
Tim Driven Development | Test until the fear goes away
Tim Cooke wrote:On a lighter note, a glib answer might be "You can have it for whenever you want, as long as it doesn't have to work"
Mohamed Sanaulla wrote:I have been thinking of UI or End to End tests but then time taken to incorporate such an activity would be a critical concern.
I don't like that guy. The tiny ad agrees with me.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|