Dump Unit tests, Rapidly 'idiot-proof' code

15
Dump unit tests, rapidly “idiot-proof” code T Ashok Founder & CEO, STAG Software linkedin.com/in/ashokstag © 2018, STAG Software, www.stagsoftware.com

Transcript of Dump Unit tests, Rapidly 'idiot-proof' code

Page 1: Dump Unit tests, Rapidly 'idiot-proof' code

Dump unit tests, rapidly “idiot-proof” code

T Ashok Founder & CEO, STAG Software

linkedin.com/in/ashokstag

© 2018, STAG Software, www.stagsoftware.com

Page 2: Dump Unit tests, Rapidly 'idiot-proof' code

2

…that quality of early stage code is not good enough, causing unnecessary rework and time slippage.

Do you agree?

I have observed…

Page 3: Dump Unit tests, Rapidly 'idiot-proof' code

3

… been to enhance rigour on “unit testing”, which more often is challenging to implement.

Then what?

The common action has

Page 4: Dump Unit tests, Rapidly 'idiot-proof' code

4

…unit testing as a burden, as extra work.

They claim that they have done it, but the outcome in terms of quality or effort/time is not very visible.

So, what do we do?

The dev folks see..

Page 5: Dump Unit tests, Rapidly 'idiot-proof' code

5

… really less testing.

It is about “idiot-proofing” the code (new or modified) ensuring that certain type of basic issues are not there in the first place.

WHAT IS REQUIRED IS…

Smart checklists can help here

Page 6: Dump Unit tests, Rapidly 'idiot-proof' code

6

Duh! You don’t need to unit test to find this, right?

Page 7: Dump Unit tests, Rapidly 'idiot-proof' code

7

SMART CHECKLIST ..

is one - that respects you as smart person - gives you hints, not bore you - is crisp and clear in what to do - is quick and painless to use - is not a form to fill & file

Helps you build a better habit!

Page 8: Dump Unit tests, Rapidly 'idiot-proof' code

8

Airline Checklist

Page 9: Dump Unit tests, Rapidly 'idiot-proof' code

9

Can we modify our code building habit to deliver higher code hygiene?

Page 10: Dump Unit tests, Rapidly 'idiot-proof' code

10

2

1

3

Page 11: Dump Unit tests, Rapidly 'idiot-proof' code

11

1

Page 12: Dump Unit tests, Rapidly 'idiot-proof' code

12

2

Page 13: Dump Unit tests, Rapidly 'idiot-proof' code

13

3

Page 14: Dump Unit tests, Rapidly 'idiot-proof' code

14

Seeking interested practitioners for review & feedback & later to trial this.

Page 15: Dump Unit tests, Rapidly 'idiot-proof' code

15

The power of checklists https://www.linkedin.com/pulse/power-checklist-ashok-t/

Design checklists to “Do, Sync & Act” https://www.linkedin.com/pulse/design-checklists-do-sync-act-ashok-t/

Inspired by Atul Gawande’s book “The Checklist Manifesto” here are my two articles that led me to this.