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:

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