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:

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