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.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

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

Okay