The PTSD Method in Software Development

Trần Thiện Khiêm
3 min readMar 9, 2022

PTSD — “Program To Speedily Delete” is a programming methodology invented by me after working for several years at Visa, Amazon & Meta. The main idea of this method is before writing any code, think about how to delete it later. In this article, I’ll explain how to organize your code following the PTSD method.

Why Deleting?

By deleting the code, you are removing any bugs you have introduced. In the world of software development where things move really fast, plans are changed rapidly without warning, it’s essential to be able to delete the code. Imagine you are working on a feature for months, then leaderships decide to switch to another project and throw your work out of the window, keeping the code is a tragedy. In a project that has 100000 lines of code, imagine the impact you can make when you can delete 10k lines of code in a blink of an eye.

Code deletion is powerful, much more powerful than Thanos.

The PTSD

The mental model of PTSD method is to think that you will delete your code tomorrow. How would you do that? Please refer to the following Diagram (with explanation below).

The PTSD Method

Look at this beautiful program, here is each component with explanation

--

--

Trần Thiện Khiêm

Software Engineer at Facebook — a coder, a dreamer and a Dota 2 Herald.