Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Holy Crap! Programming Well is Hard Work

by MidLifeXis (Monsignor)
on Feb 24, 2017 at 22:25 UTC ( [id://1182765]=note: print w/replies, xml ) Need Help??


in reply to Holy Crap! Programming Well is Hard Work

As one of those individuals who might have a knack for it (but not a love for it - I am passionate about finding solutions to technical problems; coding is one of the tools that I use), I have found one thing that has served me well, especially after too many of those 15 hour stints in a row (or longer), is having a process under your fingers that you can just run on autopilot to help with the little things.

On a recent ETL project I was on, there were a few deadline-induced long days, especially when getting through a lot of the cleansing tickets (this was over a century of data, 20-25 years in digital form, from various sources and states of cleanliness), this was the process:

  • Take the next ticket in the queue
  • Find a representative dataset that reproduces it
  • Incorporate the representative dataset into a test
  • Ensure the test fails
  • commit test
  • Fix until all tests pass
  • commit code
  • refactor if needed, ensuring all tests pass
  • If a new bug is found while fixing what you are currently working on, log a ticket
  • compare the results of your cleanup process to the previous run. If necessary, fix your test and refine your implementation (or log a bug). This was very important when trying to ensure that there were no cleanup changes to the dataset beyond what you intended. A temporary Git repo + git diff... can work well with a specific type of data.
  • commit code with a tag to indicate that it is ready to test for deployment
  • Repeat

The mechanics start to become automatic, and the limited caffeine-fueled brain cells that are left functioning can focus on the important aspects. And do not take this as a suggestion that being in that mental state is good, recommended, or a prudent practice. Sometimes it happens.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: Holy Crap! Programming Well is Hard Work
by nysus (Parson) on Feb 24, 2017 at 22:43 UTC

    Yes, breaking stuff down into small digestible chunks is absolutely critical. This is one thing I've learned, though I'm still not good at following through with it.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1182765]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-19 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found