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:

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