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:

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