Re: [extremeprogramming] What has changed for you over the past 20 years?
"Slava Imeshev via Groups.Io" <[email protected]> Thu, 5 Dec 2019 18:45:32 +0000 (UTC)
| Newsgroups | gmane.comp.programming.extreme-programming |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_9359588_1600293035.1575571532463
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Definitely. That wasn't a attempt to dig into the complete lifecycle of a =
bug.=20
On Thursday, December 5, 2019, 5:12:18 AM PST, Phil Goodwin <phil.good=
[email protected]> wrote:
=20
Right. There's a step zero involving good old fashioned debugging to find=
the root cause, but then it makes sense to test drive the solution for all=
the trains it makes sense to TDD in the first place.
On Wed, Dec 4, 2019, 10:50 PM Slava Imeshev via Groups.Io <imeshev=3Dyahoo=
[email protected]> wrote:
1. Add a test that fails because the bug is there.2. Make the test green b=
y fixing the bug.3. Check in.
On Dec 4, 2019, at 5:58 PM, Steve Gordon <[email protected]> wrote:
On Wed, Dec 4, 2019 at 5:58 PM Slava Imeshev via Groups.Io <imeshev=3Dyaho=
[email protected]> wrote:
Most of times bugs come from under-tested code. Sometimes from edge cases =
when requirements weren=E2=80=99t clearly understood. New tests must cover =
missed use cases. TDD works great here.
Slava,
How do you use TDD to write new tests for existing code?=C2=A0 How do you =
go from a discovered bug to knowing what unit tests to write for which obje=
cts?=C2=A0 How does TDD apply?=C2=A0
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#160437): https://groups.io/g/extremeprogramming/messag=
e/160437
Mute This Topic: https://groups.io/mt/39418691/2417047
Group Owner: [email protected]
Unsubscribe: https://groups.io/g/extremeprogramming/leave/4902963/61983806=
5/xyzzy [[email protected]]
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
------=_Part_9359588_1600293035.1575571532463
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><head></head><body><div class=3D"ydp8b384375yahoo-style-wrap" style=
=3D"font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: =
13px;"><div></div>
<div dir=3D"ltr" data-setdir=3D"false">Definitely. That wasn't a a=
ttempt to dig into the complete lifecycle of a bug. <br></div><div><br></di=
v>
</div><div id=3D"ydp64555fdcyahoo_quoted_6534438347" class=3D"ydp6=
4555fdcyahoo_quoted">
<div style=3D"font-family:'Helvetica Neue', Helvetica, Arial, =
sans-serif;font-size:13px;color:#26282a;">
<div>
On Thursday, December 5, 2019, 5:12:18 AM PST, Phil Go=
odwin <[email protected]> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id=3D"ydp64555fdcyiv0182873047"><div><div>Right.=
There's a step zero involving good old fashioned debugging to find the roo=
t cause, but then it makes sense to test drive the solution for all the tra=
ins it makes sense to TDD in the first place.</div><br clear=3D"none"><div =
class=3D"ydp64555fdcyiv0182873047gmail_quote"><div class=3D"ydp64555fdcyiv0=
182873047gmail_attr" dir=3D"ltr">On Wed, Dec 4, 2019, 10:50 PM Slava Imeshe=
v via Groups.Io <imeshev=3D<a shape=3D"rect" href=3D"mailto:yahoo.com@gr=
oups.io" rel=3D"nofollow" target=3D"_blank">[email protected]</a>> wro=
te:<br clear=3D"none"></div><blockquote class=3D"ydp64555fdcyiv0182873047gm=
ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le=
ft:1ex;"><div><div>1. Add a test that fails because the bug is there.</div>=
<div>2. Make the test green by fixing the bug.</div><div>3. Check in.</div>=
<br clear=3D"none"><div><blockquote type=3D"cite"><div>On Dec 4, 2019, at 5=
:58 PM, Steve Gordon <<a shape=3D"rect" href=3D"mailto:sgordonphd@gmail.=
com" rel=3D"nofollow" target=3D"_blank">[email protected]</a>> wrote:=
</div><br clear=3D"none"><div><div dir=3D"ltr"><div dir=3D"ltr"><br clear=
=3D"none"></div><br clear=3D"none"><div class=3D"ydp64555fdcyiv0182873047g=
mail_quote"><div class=3D"ydp64555fdcyiv0182873047gmail_attr" dir=3D"ltr">O=
n Wed, Dec 4, 2019 at 5:58 PM Slava Imeshev via Groups.Io <imeshev=3D<a =
shape=3D"rect" href=3D"mailto:[email protected]" rel=3D"nofollow" target=
=3D"_blank">[email protected]</a>> wrote:<br clear=3D"none"></div><bl=
ockquote class=3D"ydp64555fdcyiv0182873047gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><di=
v><div>Most of times bugs come from under-tested code. Sometimes from edge =
cases when requirements weren=E2=80=99t clearly understood. New tests must =
cover missed use cases. TDD works great here.</div><div><br clear=3D"none">=
</div></div></blockquote><div><br clear=3D"none"></div><div>Slava,</div><di=
v><br clear=3D"none"></div><div>How do you use TDD to write new tests for e=
xisting code? How do you go from a discovered bug to knowing what uni=
t tests to write for which objects? How does TDD apply?</div><div>&nb=
sp;</div></div></div>
</div></blockquote></div><br clear=3D"none"></div>
</blockquote></div>
</div></div></div></div>
</div>
</div></body></html>
<div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div>
<hr>
Groups.io Links:<p>
You receive all messages sent to this group.
<p>
<a target=3D"_blank" href=3D"https://groups.io/g/extremeprogramming/messag=
e/160437">View/Reply Online (#160437)</a> |
<a target=3D"_blank" href=3D"mailto:[email protected]?subject=
=
=3DRe:%20Re%3A%20%5Bextremeprogramming%5D%20What%20has%20changed%20for%20y=
ou%20over%20the%20past%2020%20years%3F">Reply To Group</a>
| <a target=3D"_blank" href=3D"mailto:[email protected]?subject=3DPriv=
ate:%20Re:%20Re%3A%20%5Bextremeprogramming%5D%20What%20has%20changed%20for%=
20you%20over%20the%20past%2020%20years%3F">Reply To Sender</a>
|
<a target=3D"_blank" href=3D"https://groups.io/mt/39418691/2417047">Mu=
te This Topic</a>
| <a href=3D"https://groups.io/g/extremeprogramming/post">New Topic</a><br=
>
<br>
<a href=3D"https://groups.io/g/extremeprogramming/editsub/2417047">Your Su=
bscription</a> |
<a href=3D"mailto:[email protected]">Contact Group Owner<=
/a> |
<a href=3D"https://groups.io/g/extremeprogramming/leave/4902963/619838065/=
xyzzy">Unsubscribe</a>
[[email protected]]<br>
<div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div>
------=_Part_9359588_1600293035.1575571532463--