First, Solve the Problem. Then, Write the Code. - John Johnson

Copy link
1 min read
First, solve the problem. Then, write the code. — John Johnson
First, solve the problem. Then, write the code. — John Johnson

First, solve the problem. Then, write the code. — John Johnson

What lingers after this line?

Problem-Solving Approach

This quote emphasizes the importance of understanding and solving the problem before jumping into writing code or implementing a solution. It encourages a methodical approach rather than hastily rushing into technical execution.

Separation of Concerns

Johnson advocates for a clear distinction between problem-solving and coding. Solving the problem should be the primary focus, while coding is merely a tool to implement that solution. This separation helps avoid unnecessary complexity in code.

Planning and Strategy

Johnson underscores the value of planning. Before writing code, developers should map out the problem, break it down into manageable steps, and devise a strategy to tackle each aspect.

Efficiency and Effectiveness

By solving a problem before trying to write code, developers are more likely to write efficient and effective solutions. It ensures that the programming is built on a solid foundation rather than trial and error.

Mindset of a Programmer

This quote reflects a common mindset among successful programmers—that the thought process behind solving a programming challenge is just as important, if not more so, than the actual coding itself.

Recommended Reading

As an Amazon Associate, we earn from qualifying purchases.

One-minute reflection

What does this quote ask you to notice today?

Related Quotes

6 selected

It is not that I'm so smart, it's just that I stay with problems longer. — Albert Einstein

Albert Einstein

At first glance, Einstein’s remark sounds like modesty, yet it does more than downplay genius. By saying he simply ‘stays with problems longer,’ he shifts attention from innate talent to sustained effort, suggesting that...

Read full interpretation →

If you can’t solve a problem, then there is an easier problem you can solve: find it. — George Pólya

George Pólya

George Pólya’s remark distills a central habit of good thinking: when a problem resists direct attack, progress often begins by reframing it. Rather than treating difficulty as a dead end, he invites us to see it as a si...

Read full interpretation →

If a problem is fixable, there is no need to worry. — Dalai Lama

Dalai Lama

The Dalai Lama’s line offers a clean way to sort life’s stressors: if a problem can be fixed, energy is better spent fixing it than fearing it. In that sense, worry becomes a kind of misallocated attention—an alarm that...

Read full interpretation →

Turn worry into homework: study the problem and compose a solution. — Desmond Tutu

Desmond Tutu

Desmond Tutu’s line, “Turn worry into homework: study the problem and compose a solution,” proposes a subtle but radical shift: instead of letting anxiety paralyze us, we treat it as an assignment. Worry, in this view, i...

Read full interpretation →

Limit your problem and expand your mind. — Maharishi Mahesh Yogi, India.

Maharishi Mahesh Yogi, India.

This quote encourages individuals to narrow down their problems rather than letting them overwhelm their thoughts. By limiting the scope of what you consider a problem, it's easier to find effective solutions.

Read full interpretation →

Persistence and resilience only come from having been given the chance to work through difficult problems. — Gever Tulley

Gever Tulley

This quote highlights that true persistence and resilience are developed through facing and overcoming difficult challenges. Without these challenges, individuals may not have the opportunity to build these essential tra...

Read full interpretation →

Explore Ideas

Explore Related Topics