Search
Close this search box.
Search
Close this search box.
Search
Close this search box.

Dev and Test, Sitting in a Tree: K-I-S-S-I-N-G

Facebook
Twitter
LinkedIn
Pinterest
WhatsApp

When I was a kid cars didn’t have seat belts in the back seat. We used to fly to and fro all over whenever the car took a turn. These days my kids shriek with horror if we forget to buckle them up and the car starts moving. That’s the mindset.

Some time ago I led a code retreat event. In the first session, I asked the teams to try and build a simulation of Conways’ Game of Life. Immediately they started coding the simulation.

That was odd.

You see, I usually don’t write any code before I have a test ready to run it. What’s the point? I like it when one key press runs all the tests. It makes me feel safe. It’s the same as when I’m getting into my car I wear the seat belt.

When the people at the session were done with coding, they wanted to see if it works. So they wrote a short main and started debugging.

“They wanted to see if it works.” I’m familiar with this. I also used to write code and then just wanted to make sure it works. These days I have a concrete objective in front of me: a test that should pass.

When I started TDDing (Test Driven Dedign/Development) it was strange. I wanted to write code and I felt messing around with the tests was a waste of time. But as I did more and more of it something changed. It made me feel safe.

On the second session of the aforementioned Code Retreat I asked the people to do the same exercise, but this time the test first. They didn’t understand. So I showed them: I take a blank project and write a test. I start with the assert statement. I use in the assert a Class that I still don’t have and also probably a Method that I don’t have. Then I write the code in the test that comes before it. Then I use the IDE to generate the missing classes and methods. Enlightenment!

In the same way that you don’t build a house without scaffolding, you don’t write code without tests. When you start with the tests, you write code that is more testable. When you build a car, you build it so you could have a proper place to anchor the seat belt. It comes together.

(And it works as well with Legacy code. Read Michael Feather’s Working Effectively with Legacy Code. We will also write about it here.)

It is true for a single developer doing unit tests and it is true for QA people running System Tests: Testing and Development comes together.

Dev and Test
sitting in a tree,
K-I-S-S-I-N-G.
First comes learning,
then comes practice
then comes software in a baby carriage… 
:-O

Subscribe for Email Updates:

Categories:

Tags:

Principles of Lean-Agile Leadership
Managing Risk on Agile Projects
Agile Mindset
Risk Management in Kanban
Story Slicing
LPM
Sprint Planning
Agile Development
The Kanban Method
Scrum Guide
What Is Kanban
Scrum Master
Amdocs
Process Improvement
TDD
Product Ownership
Professional Scrum Product Owner
Perfection Game
Jira Plans
Hybrid Work
Nexus Integration Team
Agile Contracts Best Practices
Code
Slides
RTE
Limiting Work in Progress
Reading List
LAB
Release Train Engineer
Introduction to Test Driven Development
Program Increment
Continuous Deployment
Atlassian
Lean and Agile Principles and Practices
Nexus and Kanban
Lean Agile Management
Lean Budgeting
ROI
Releases Using Lean
Scrum Values
Agile and DevOps Journey
NIT
ATDD
Implementation of Lean and Agile
AI Artificial Intelligence
Webinar
Lean Risk Management
Keith Sawyer
Agile Exercises
Agile in the Enterprise
RTE Role
Video
Agile Program
Lean Software Development
Agile Assembly Architecture
ALM Tools
Agile Marketing
speed @ scale
Manage Budget Creation
Lean Startup
Legacy Code
Games and Exercises
Atlaassian
SAFe Release Planning
Jira admin
Systems Thinking
WIP
Nexus and SAFe
Acceptance Test-Driven Development
ART Success
SAFe
System Integration Environments
SA
SAFe DevOps
Software Development Estimation
Agile Product Development
System Team
Agile Project
Test Driven Development
Agile Games
Lean-Agile Software Development
Agile Release Planning
Lean Agile Basics
AI
Agile for Embedded Systems
Coaching Agile Teams
Agile Israel
Kaizen Workshop
Introduction to ATDD
Kanban Game
IT Operations
Continuous Improvement
Agile
Jira
BDD
Effective Agile Retrospectives
User stories
Agile Product Ownership
Lean-Agile Budgeting
Agile Israel Events
Enterprise DevOps
System Archetypes
Iterative Incremental Development
chatgpt
PI Planning
Agile India
Built-In Quality
Tools
Professional Scrum with Kanban
Team Flow
Continuous Planning
Planning
Scrum Primer
Lean and Agile Techniques
Risk Management on Agile Projects
LeSS
speed at scale
Quality Assurance
Lean Agile Leadership
Certified SAFe
Sprint Iteration
RSA
Kanban
Kaizen
Implementing SAFe
Scrum Master Role
Self-organization
Jira Cloud
Kanban Kickstart Example
Kanban 101
Software Development
The Agile Coach
Agile Basics
POPM
Business Agility
Sprint Retrospectives
Advanced Roadmaps
QA
DevOps
Frameworks
AgileSparks
PI Objectives
Large Scale Scrum
Achieve Business Agility
Daily Scrum
Presentation
Nexus vs SAFe
Change Management
Agile Techniques
Engineering Practices
ATDD vs. BDD
Covid19
Certification
Lean Agile Organization
Risk-aware Product Development
Agile Delivery
Tips
agileisrael
Continuous Integration
A Kanban System for Software Engineering
Agile Games and Exercises
Nexus
Scaled Agile Framework
An Appreciative Retrospective
Lean Agile
Product Management
Agile Outsourcing
Rapid RTC
predictability
SPC
Legacy Enterprise
Accelerate Value Delivery At Scale
GanttBan
Managing Projects
Entrepreneurial Operating System®
ARTs
Artificial Intelligence
Continuous Delivery
EOS®
Agile Release Management
Portfolio for Jira
Scrum With Kanban
Scrum
Scrum.org
Development Value Streams
lean agile change management
Applying Agile Methodology
Professional Scrum Master
Agile Testing Practices
ScrumMaster Tales
Agile Community
Scrum and XP
Elastic Leadership
Pomodoro Technique
Kanban Basics
Agility
Spotify
Operational Value Stream
Agile Project Management
Value Streams
AgileSparks
Logo
Enable registration in settings - general

Contact Us

Request for additional information and prices

AgileSparks Newsletter

Subscribe to our newsletter, and stay updated on the latest Agile news and events

This website uses Cookies to provide a better experience
Shopping cart