• Welcome to Valhalla Legends Archive.
 

Test Driven Development - TDD

Started by iago, March 26, 2004, 02:38 PM

Previous topic - Next topic

iago

My friend emailed this to me, hopefully somebody here can help him out:
------------------------------------
Ok, so I admit, until yesterday I had never even hear the bloody term before,  but now at my work their getting me started on unit testing, and I'm supposed  to check out some stuff on TDD.

There's all sorts of stuff littered all over the internet about how to start using the TDD approach with new projects, but nothing on applying principles of TDD to currently developed projects.

This is a problem, because I need to get some research on that.  In your travels have you, or anyone that you know of (maybe the guys at Valhalla Legends?) come across any documentation on ideas for applying TDD to currently developed projects?

Thanks for the help!
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Adron

Does he want to apply it to new parts or to the entire project? To apply it to existing parts, the only idea I can see is to simply design tests for it?

iago

I'm not really sure, I'll direct him to come here and answer himself :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Banana fanna fo fanna

A lot of these things...TDD, XP (Xtreme Programming), UML, and design patters are almost pure hype. TDD is great in theory, but I've never gotten it to work well in practice. If it can help you, great, but don't take it too seriously.

Tuberload

Quote from: St0rm.iD on March 28, 2004, 08:14 PM
A lot of these things...TDD, XP (Xtreme Programming), UML, and design patters are almost pure hype. TDD is great in theory, but I've never gotten it to work well in practice. If it can help you, great, but don't take it too seriously.

I like to use UML, and I think design patterns, when used properly, are more than hype. TDD and XP might be, because I don't know much about them. It's almost like saying OOP, and Procedural programming practice are all hype as well.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

Banana fanna fo fanna

I've just seen too many open source Java programs produce stupid UML diagrams and no code.

Tuberload

Quote from: St0rm.iD on March 29, 2004, 03:19 PM
I've just seen too many open source Java programs produce stupid UML diagrams and no code.

Now that you say it like that I will agree with you. I think that's more the developers fault than the tool though.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

KrAzY_NuK

I was the one looking for the TDD stuff, but I've sorta figured out what i'm doing.

I was supposed to research the idea of TDD and see if there was any way to apply it to currently developed code for testing purposes.

I think i've sorted out the way that I'm going to do the testing though

MyndFyre

Quote from: St0rm.iD on March 29, 2004, 03:19 PM
I've just seen too many open source Java programs produce stupid UML diagrams and no code.

I've found UML to be a very useful tool.  Of course, I am not a Java programmer.  :-P
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Tuberload

#9
Quote from: Myndfyre on March 30, 2004, 05:58 PM
Quote from: St0rm.iD on March 29, 2004, 03:19 PM
I've just seen too many open source Java programs produce stupid UML diagrams and no code.

I've found UML to be a very useful tool.  Of course, I am not a Java programmer.  :-P

UML is a modeling language completely independent of Java, so what does being a Java programmer have anything to do with it. Besides C# is just a Java rip-off so it would be just as beneficial to you as it is to me. :P

Edit: Please excuse the sarcasm, I just got why you included being a Java programmer.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

MyndFyre

Quote from: Tuberload on March 30, 2004, 06:01 PM
Quote from: Myndfyre on March 30, 2004, 05:58 PM
Quote from: St0rm.iD on March 29, 2004, 03:19 PM
I've just seen too many open source Java programs produce stupid UML diagrams and no code.

I've found UML to be a very useful tool.  Of course, I am not a Java programmer.  :-P

UML is a modeling language completely independent of Java, so what does being a Java programmer have anything to do with it. Besides C# is just a Java rip-off so it would be just as beneficial to you as it is to me. :P

Edit: Please excuse the sarcasm, I just got why you included being a Java programmer.

Hehe, no problem.  For others, the remark was included because of St0rm's comment, about Java programmers who hype UML but don't get anything done :)

I would estimate that modelling my forum design in UML saved me about 65% of the work that I would have done otherwise.  It is still incomplete, because I've been working on other projects, but the high-level design was extremely beneficial.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Tuberload

Quote from: Myndfyre on March 30, 2004, 07:57 PM
Quote from: Tuberload on March 30, 2004, 06:01 PM
Quote from: Myndfyre on March 30, 2004, 05:58 PM
Quote from: St0rm.iD on March 29, 2004, 03:19 PM
I've just seen too many open source Java programs produce stupid UML diagrams and no code.

I've found UML to be a very useful tool.  Of course, I am not a Java programmer.  :-P

UML is a modeling language completely independent of Java, so what does being a Java programmer have anything to do with it. Besides C# is just a Java rip-off so it would be just as beneficial to you as it is to me. :P

Edit: Please excuse the sarcasm, I just got why you included being a Java programmer.

Hehe, no problem.  For others, the remark was included because of St0rm's comment, about Java programmers who hype UML but don't get anything done :)

I would estimate that modelling my forum design in UML saved me about 65% of the work that I would have done otherwise.  It is still incomplete, because I've been working on other projects, but the high-level design was extremely beneficial.

Finaly I can agree with you on something! ;D I think UML is an excellent tool for mapping out the overall layout of a program.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown