Skip to main content

Command Palette

Search for a command to run...

How To Think Like A Programmer

A personal review from "Think Like A Programmer" by V. Anton Spraul

Updated
โ€ข2 min read
How To Think Like A Programmer
R
My love for challenges and growth is impeccable. I majored in Petroleum Engineering at Madonna University Nigeria, topping my class with First-Class honors in the process.I'm humbly a two(2)-time-recognized national award holder in Engineering. I'm also a tech enthusiast currently a backend developer, learning new skills in web development. Fullstack is the goal. My hobbies are plain simple. I love to obviously write โŒจ๏ธ, watch movies ๐ŸŽฅ, read ๐Ÿค“, play chess โ™Ÿ๏ธ, and sing ๐ŸŽค. I'm a lover of pet cats and dogs ๐Ÿค—, football โšฝ, basketball ๐Ÿ€, and most importantly God ๐Ÿ˜‡.

Hi guys, have you ever struggled with writing a program despite your in-depth knowledge of programming languages? Well if yes, you are not alone as there are days when I take up a coding tutorial video and nod all the way through only for me to get lost when implementing it on my own program. So yes! It is completely normal.

Generally, the most challenging issue every programmer faces is solving algorithms, other issues are keeping up with updates and technologies, debugging, and working on other programmers' code. There must always be a problem in the world of a programmer.

General Problem-Solving Techniques

During the course of going through this eye-opening book by V. Anton Spraul, I was happy to come across some tips to boost a programmer's problem-solving skills and techniques. Here are a few:

  • Always Have a Plan:

As the saying goes "if you fail to plan, then you plan to fail". It applies to any problem including programming too. Understanding the problem is always part of the plan towards solving the problem.

  • Restate the Problem:

Some problems that look very difficult may seem very easy once they have been restated in a different approach or using different terms

  • Divide the Problem

When we divide a problem, we unconsciously place them in the order of difficulty and in the order of size. Doing this creates a pathway for solving the problem.

  • Start with What You Know

In programming, there is what we call the brute force approach in solving algorithms. It basically means using what you already know how to do and working outward from there. According to V. Anton Spraul

"by starting with what you know, you build confidence and momentum toward the goal."

  • Reduce the Problem

According to V. Anton Spaul

''with this technique, when faced with a problem you are unable to solve, you reduce the scope of the problem, by either adding or removing constraints, to produce a problem that you do know how to solve''.

Other problem-solving techniques include experimenting with instant ideas, and probably not getting frustrated

Y

This is really helpful, especially when you are stuck on a problem for long, thanks for the tips

1
R

Hi Yahaya! I'm glad it's helpful. Thanks for reading!!

E

This is nice Robert.

I hope to feature you in my blog someday.

6
R

Thanks so much. Much appreciated, we'll definitely do that

D

Extremely helpful post and very well put together! Those are some great tips!

1
R

I'm glad it did. Thank you so much. I really do appreciate it

2
M

Great writing Robert. ๐Ÿ‘

I also wrote a story of how I think as a programmer: The Mystery Of The Supposedly Red โค Emoji AKA The Story Of How I Became A Software Developer Detective To Debug The Internet

I am pretty curious what do you think about it. ๐Ÿ˜Š

2
R

Oh wow, thank you for your review. I really do appreciate it. I am definitely curious to have a look at yours too. Thanks very much for sharing yours..

2