DEV Community

Fagner Brack
Fagner Brack

Posted on • Originally published at fagnerbrack.com on

Unlocking AI’s Potential for Programming Productivity and Flow Without the Pitfalls

Some developers might be sceptical about using AI tools like Github Copilot due to the occasional incorrect answers. However, my experience has been quite the opposite. Although I was very sceptical at the beginning, the real power of these tools lies in their ability to increase productivity and maintain the creative flow, not to provide correct answers. In this blog post, we’ll explore the ways in which AI tools can help you harness these benefits and transform your development process.

Although AI tools like Copilot may sometimes provide incorrect answers, their real value lies in their ability to improve productivity and facilitate action and flow. By providing an initial approach to coding problems and keeping developers engaged, AI tools can help you stay focused and maintain your creative momentum.

It’s been shown[1] that after only 20 minutes of interrupted performance, people reported significantly higher stress, frustration, workload, effort, and pressure. It can take 15 minutes or more for people to get back into the flow after being interrupted during a programming task [2]. However, what I noticed in my own experiments is that AI tools like Github Copilot help me regain my focus in a matter of seconds. By offering personalized suggestions within the IDE, the copilot can quickly bring me back to my task and minimize the time spent regaining my bearings.

Here's an example: I was designing a simple validation function using TDD (Detroit School), and I got distracted by something outside and lost my focus. I asked ChatGPT to "continue TDD to build the next test from where I left off". After a few enter key presses, it suggested the wrong test based on the previous ones, but at least by analysing its suggestion, I managed to delete it and get back on track, knowing exactly what the next step was.

Here's the thing: AI tools can provide a starting point for tackling familiar problems, even if their initial solutions are not perfect. This technique is reminiscent of psychological methods used to overcome procrastination and maintain action and flow [3]. By offering an imperfect solution, AI prompts developers to recall the correct approach, allowing them to efficiently tackle problems they’ve solved numerous times before.

Overcoming the Dreaded “Blank Page”

The “blank page” refers to the overwhelming feeling of staring at an empty screen, unsure of how to start a project or tackle a problem. AI tools like Copilot can help developers overcome this barrier by providing initial suggestions and code snippets to kick-start the creative process.

The convenience of staying within the IDE view and receiving personalized suggestions makes AI tools like Copilot invaluable for keeping developers on track and avoiding time-consuming rabbit holes. By providing targeted assistance within the familiar environment of the IDE, developers can maintain their focus and avoid distractions, which is very useful for those with ADHD.

The benefits of using AI tools like copilot in software development extend far beyond their potential for generating code. Their real power lies in their ability to help developers regain their flow, maintain focus, and overcome common barriers such as the dreaded “blank page.” It allows for an accessible work environment for those with ADHD.

So, maybe that tap on the shoulder won’t be so costly now that you have a tool that can help you get back into the flow?

Thanks to Jeremy Nagel for their insightful input on this post.

Thanks for reading. If you have feedback, contact me on Twitter, LinkedIn or Github.

References

1: Mark, G., Gudith, D., & Klocke, U. (2008). The cost of interrupted work: More speed and stress. ACM.

2: Parnin, C., & Rugaber, S. (2010). Resumption strategies for interrupted programming tasks. Springer Science+Business Media, LLC.

3: Pychyl, T. A., & Flett, G. L. (2012). Procrastination and self-regulatory failure: An introduction to the special issue. Journal of Rational-Emotive & Cognitive-Behavior Therapy, 30(4), 203–212. https://doi.org/10.1007/s10942-012-0149-5

Top comments (0)