|
By Michael Schwern (Schwern) from PDX.pm Date: Tuesday, 22 June 2010 10:00 Duration: 40 minutes Target audience: Beginner Language: English Tags: brass bullet control testing version |
Code Happier With The Cycle: Code, Test, Fail, Diff, Fix, Pass, Commit, Repeat
If I could convince developers of one thing it would be this: Writing tests and using version control together during development is the simplest way to improve your life. So I will.
After 15 years of being a developer, teaching software engineering, trying to get people to see the light on testing, I have hit upon the single most important technique you can learn. If you do nothing else to improve your life as a developer, it is to learn this simple cycle:
1) Write code.
2) Write tests.
3) Fail the tests.
4) Look at the diff and fix it.
5) Pass the tests.
6) Commit.
7) Repeat.
This simple, short development cycle (code, test, fail, diff, fix, pass, commit, repeat) will make you code faster, happier and with more confidence. It takes advantage of the synergy between aggressive, but simple, use of testing and version control. It can, and should, be learned by any developer of any technology in all circumstances.
If you’re struggling as a developer.
If you fear changing code.
If you’ve never gotten around to writing tests.
If you’re never sure when to commit code.
If your code always has bugs.
Attend this session.
- Craig Barritt (gonkster)
- Charles Phillips
- Ryan Dietrich
- Charles Keefer (Chip)
- David H. Adler (dha)
- Andrew Rodland (hobbs)
- Michael Schwern (Schwern)
- Damian Conway (damian)
- G. Wade Johnson (gwadej)
- Krishna Sethuraman (shamu)
- Stan Schwertly (stan_theman)
- Mike Greb (mikegrb)
- Phillip Moore
- Steve Bohlen
- John Anderson (genehack)
- Robert Boone (rlb3)
- jerry gay (particle)
- Kevin Falcone (jibsheet)
- Adam Prime (jsut)
- Patrick Michaud (Pm)
- gary
- Alex Timoshenko
- Jesse Vincent
- Victor Stevko
- Jon Miner (miner)
- iank
- Balkee Balakrishnan
- Dan Kurtz
- Robert Ward
- Brian Shilling
- J. Nick Koston (bdraco)
- John Judd
- Doug Bell (preaction)
- Jason Coble
- Stephen Bee
- Philip Henderson
- Kenny Drobnack
- R. Todd Williams
- Dallas Deeds
- Tim Heaney (oylenshpeegul)
- Matt Christian
- Paul Fenwick (pjf)
- Jacinta Richardson (jarich)
- Mohammed Chaudhry (Mo)