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