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:

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