DEV Community

Dan Fockler
Dan Fockler

Posted on


Programming Intuition

Often when I'm programming I'll have questions or ideas that aren't fully formed logically, but nonetheless help me find bugs or think up code design solutions.

Does anyone else have these sort of intuitive leaps when programming? How do you cultivate them, and bring them into your work more clearly?

Top comments (2)

kspeakman profile image
Kasey Speakman • Edited

I do this. I think this is "compiled" knowledge... in a similar way that compiled programs work but are hard to introspect, compiled knowledge is hard to articulate reasons why.

I believe compiled knowledge (or intuition) is the result of experience. As we do our work, we make mental models of the problem, then one or more solutions, then eventually come to a conclusion as to whether the solution worked out well. Your brain is capable of storing all this... if not the specific details, then at least a vague impression. Then later when you face a similar problem, and you are thinking through possible solutions, those vague impressions come back. Or perhaps stronger impressions are already top of mind. Hence, intuition.

The good news is that as I've gotten older, it has become easier to articulate the reasons in many cases. Perhaps facing similar problems enough times has refined the mental model to have more details beyond the impression.

dfockler profile image
Dan Fockler

I think you're right about being exposed to more and more similar problems that the mental map and intuitions I can make are more clear. Especially with programming languages, I've noticed there are patterns or features that are used in similar ways that I can make logical assumptions about.

The AI Brief

AI generated git commit messages

Minimize the struggle of remembering what you just coded. AI-generated commits make it easier to manage projects and keep track of changes. The Nutlope/aicommits project demonstrates how AI can improve commit messages.

I open sourced an AI that creates any UI in seconds

Make AI-generated user interfaces a breeze. This open-source project harnesses the power of generative AI technologies like chatGPT to create versatile, quick, and intuitive UI components.

Use AI to commit like a PRO in 1 second

Upgrade your commit message game with AI. Boost your productivity by using ChatGPT to generate commit messages and avoid context switching. OpenCommit is an open-source library that helps you achieve this easily.

Build your own ChatGPT starter kit

Train AI models on custom data for improved domain-specific knowledge. Combine the power of WebView technologies and this starter kit to train your ChatGPT model on specific websites, allowing for better-optimized outcomes.