Rob Cook


Home | GitHub | Dev.to | Donate | Contact

Tenants of programming


2025-06-07

  1. Don't accrue technical debt.
  2. Prefer asynchronous communication.
  3. Document using markdown.
  4. Do one thing.
  5. Gather feedback little and often.
  6. Optimize for readability.
  7. Share the knowledge.
  8. Learn and use a scripting language.
  9. Implement first, abstract second.
  10. Refactor.

Don't accrue technical debt

Technical debt will stop development dead in very little time if you let it. It erodes developer morale faster than anything else too. Cutting corners now is never acceptable. You will never be given the time by management to go back and address it. Just say no to tech debt. Make sure your codebase stays living within it's means.

Prefer asynchronous communication

Get used to communicating asynchronously. It conquers time zones and physical geography. Just like asynchronous code, it helps you perform better. Synchronous communication in the form of meetings (both physical and virtual), is like having a lock in a multi-threaded codebase. Only synchronise when you have too. Treat instant messaging the same as email. Get used to not expecting an immediate reply.

Document using markdown

Markdown is something of a super power. A very minimal markup language, it can be written in any kind of text editor with ease. Markdown can be programmatically converted into nearly any other document type using tools like Pandoc. You can convert it to HTML or paste into tools like Confluence to get nice looking online docs. It's also one of the preferred formats for feeding hungry AI software models. In short, use it whenever and wherever you can.

Do one thing

The Unix philosophy says to do one thing and do it well. This works at the level of a single line of code all the way up to full applications. Resist the temptation to get clever, like working many actions into a single line of code. Keep it simple.

Gather feedback little and often

Get stakeholder input as often as you can, but only in small doses. Big dumps of feedback don't work. Things get forgotten. Big change requests can be demoralising for the developer.

Optimize for readability

In code and in documentation, always optimize for readability. Code is communication. It will be written once but read many, many more times. Python gets this right. As a result it is one the most beginner friendly languages out there. Leave it to the compiler to take care of optimizing for the machine.

Share the knowledge

See one, do one, teach one. The medical profession use that mantra. It works too. The quickest way to kill a team is to silo knowledge. People get stuck with the same type of work, pigeon holed into specific roles. Keep a team wiki. Run regular skills workshops or lunch and learn sessions.

Learn and use a scripting language

Which one doesn't matter. Python, Bash, Powershell... just pick one and get good with it. When you need to quickly parse a CSV file, script it. Pull some data from a web API? Script it. Update a database with a batch of changes? Script it. Automation is key to good flow. Don't forget to check your scripts into source control either.

Implement first, abstract second

It's easy to architect. Thinking in abstracts can seem more appealing than grappling with code that actually does something. First make it work, then worry about the shape of it. Abstracting from something concrete is better than concreting something abstract.

Refactor

Changing some existing code? Check to see if it needs refactoring. Adding some new code? Probably best to refactor. Removing code? You got it, refactor. Every time you touch the code, see if you can change its shape to better readability and intent.

end