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:

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