DEV Community

Jonathan Hall
Jonathan Hall

Posted on • Originally published at jhall.io on

1

Work from the bottom up

Last week I talked about a snafu I made while copy-and-pasting some tests. When I mentioned this same story on LinkedIn, I was pointed to a nifty trick which comes from Woody Zuill:

Work from the bottom up

That is to say, when you copy a test for use against a new function, start at the bottom of the copied function, and work your way up making changes. Then change the name of the copied function last.

If I had followed this simple advice, I would not have encountered my problem.

Thanks Woody, for the simple hacking hack!


If you enjoyed this message, subscribe to The Daily Commit to get future messages to your inbox.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay