May 10, 2017 at 9:03 pm
Comments posted to this topic are about the item What do you do when you have a repetitive task to do?
May 11, 2017 at 2:35 am
Delegate 🙂 Failing that, headphones and some good tunes to help me through it!
May 11, 2017 at 3:17 am
I try pretty much the same tactics as yours. Sometimes, I share with my colleagues what I am doing and how; and seek their advise to see how they would have done it.
On a few occasions, I have challenged myself to do the same task quicker with same efficiency, to make it interesting.
May 11, 2017 at 5:57 am
My strategy is to turn a repetitive task into a programming one.
Instead of manually running all of those tests, write a framework which runs those tests for you and reports on what succeeded and what failed.
Instead of building 25 almost-identical SSIS packages manually, use BIML to create them from the destination tables.
Instead of parsing thousands of rows in Excel to identify differences, write a macro to run through them for you.
(all real work examples, by the way.)
It's not about saving time -- sometimes it will take as long to write a program or script as it would to just do the task manually. But it's more fun this way, and sometimes you do save time. You also get better consistency to boot. By the end of a few hundred rows in Excel, can you really be sure you're not missing something?
Those 25 SSIS packages? I created one manually and it took me an hour and a half. I figured I could do the others in 2/3 the time == 24 hours, or 3 work days. Instead I spent a single day learning BIML, and by the end of the day had all 25 packages. Plus I knew all of the variable, task, and parameter names were consistent and didn't have any spelling errors.I even rebuilt the original one from BIML to ensure it was consistent.
May 11, 2017 at 6:37 am
It's a lot easier to automate a process when it's been well defined (ie: the functional requirements don't change) and when the underlying physical environment is stable (ie: you don't have to deal with blocking or storage issues). When the business keeps tweaking the requirements, or when the process breaks midpoint, the return on investment for all the upfront automation programming is diminished.
However, even if a scripted process isn't perfect, it's at least self documenting. If someone needs to know how the process works, they can follow the code from top to bottom.
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
May 11, 2017 at 7:01 am
Currently in the process of re-processing folders where there was an error reported. As there are thousands of them, created some code to help me write the batch files for moving the files. Further code to split the information into batches, re-run the code, archive and remove log entries to be able to re-run the code etc. I am still tweaking the code (to keep myself from falling asleep). Changing the batch as there are different file sizes, check the outcome and sometimes re-run again as there has been another error this time.
All the while listening on headphones to radio Caroline, takes me back to my youth 😉
May 11, 2017 at 7:57 am
sknox - Thursday, May 11, 2017 5:57 AMIt's not about saving time -- sometimes it will take as long to write a program or script as it would to just do the task manually. But it's more fun this way, and sometimes you do save time. You also get better consistency to boot. By the end of a few hundred rows in Excel, can you really be sure you're not missing something?
Eric M Russell - Thursday, May 11, 2017 6:37 AMHowever, even if a scripted process isn't perfect, it's at least self documenting. If someone needs to know how the process works, they can follow the code from top to bottom.
nitinbhojwani - Thursday, May 11, 2017 3:17 AMOn a few occasions, I have challenged myself to do the same task quicker with same efficiency, to make it interesting.
I completely agree with all three of you (including the non-quoted parts). I avoid mundane repetitive tasks at all cost because I know my mind is not up for the task! Other people (I have learned) feel at ease with this kind of work. I say: Let them! I can't drive cars on highways, because too little is going on and I need to take breaks every 20 minutes to avoid falling asleep at the wheel. I prefer to drive in the mountains - the sheer challenge of watching the bends in the road keeps me an active driver.
Same as with working: Make it a sport! If the task is boring, I try to trick my mind into not thinking so:
On a side-note: I have found many times that forcing myself to articulate the tedious process in written form reveals procedural errors that no-one has noticed for years on end! Because the task was so boring that everyone just did what they were instructed to do without thinking at all. Another byproduct of automating stuff: It is really hard to automate something stupid... Far easier to fix the logic first, and then automate it.
May 11, 2017 at 8:55 am
Just thought this was relevant.
May 11, 2017 at 9:16 am
Oh well, someday...
Kindest Regards, Rod Connect with me on LinkedIn.
May 11, 2017 at 11:02 am
ZZartin - Thursday, May 11, 2017 8:55 AMJust thought this was relevant.
I actually thought of this one:
May 12, 2017 at 1:02 am
I find that Excel and Notepad++ is invaluable tools for a developer. I have to for instance create a form/page/stored procedures based on a table and found that concatenating in Excel work nice. I have taught myself so far that I hardly do any coding. You must just set your toolbox up right.
Manie Verster
Developer
Johannesburg
South Africa
I am happy because I choose to be happy.
I just love my job!!!
May 12, 2017 at 11:43 am
manie - Friday, May 12, 2017 1:02 AMI find that Excel and Notepad++ is invaluable tools for a developer. I have to for instance create a form/page/stored procedures based on a table and found that concatenating in Excel work nice. I have taught myself so far that I hardly do any coding. You must just set your toolbox up right.
I've started using PowerShell to do things like create DDL scripts for CRUD procedures or jobs. The way that PowerShell handles dynamic variable substitution in text strings blocks makes this simple and clean.
"Do not seek to follow in the footsteps of the wise. Instead, seek what they sought." - Matsuo Basho
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply