Skip to content

Instantly share code, notes, and snippets.

@MichaelDimmitt
Last active March 9, 2024 20:57
Show Gist options
  • Save MichaelDimmitt/7c3b3472dbe4bf75640d599dea2c09e0 to your computer and use it in GitHub Desktop.
Save MichaelDimmitt/7c3b3472dbe4bf75640d599dea2c09e0 to your computer and use it in GitHub Desktop.
Regarding the copy and paste pattern in development.

Regarding the copy and paste pattern in development.

“A good plan violently executed now is better than a perfect plan next week.” -General George S. Patton, Jr.

When what is defined as a "good pattern" is setup And it is sufficiently complex. Be mindful that there are probably ways to automate and simplify.

But for the time being you need others to execute that pattern. Find the person who knows the pattern best and can accomplish the task most efficiently and accurately

Have a meeting with them and note how long the meeting took. People at the meeting might also help resolve any quick issues that come up in the meeting with the goal to get it done as efficiently as possible.

One way to roll this out:

  1. Have someone at the meeting outlining step by step the order of how they approach and solve the problem:
    a. From the planning level
    b. To the api level
    c. To executing the problem
    d. Until the point where the code is in a spot that can be code reviewed and merged.
    e. Tickets should be broken into reviewable sections.

  2. Additionally deliver the overall diff. Of the change from the session.

Clock how long it took. The meeting may have been imperfect but now you have an idea of how long that takes.

Now have everyone implement that pattern

  1. Have them measure their own accuracy
  2. Have them measure the overall time.
  3. Have people report on the time it took them and if they felt good about how it went.
  4. As people get better they will come closer to the optimal persons time.
  5. Now you should have the most simple way to multiply the thing by x number of times people need to do that thing

Something that took the original creator 2 hours may take an experienced person who is prepared and just executing: 5 hours. And someone who gets stuck way longer.

Circle back from time to time on the fact that:

  1. there are probably ways to automate and simplify.

further reading: https://blog.codinghorror.com/the-noble-art-of-maintenance-programming/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment