How to think logically? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

How to think logically?

I guess I can learn everything, but when I have to think on some specific task, It takes me ages to get to the solution.. Can anyone give me some advice and suggestions how to improve my logic? Thanks in advance!

27th May 2017, 9:55 AM
Peyo Angelov
Peyo Angelov - avatar
6 Answers
+ 12
Break a big concept down in it's component. Then think step by step. Think one step at a time. And think in small baby steps. Also engage in logic puzzles, e.g. Sudoku, solve math problems, play chess. Hope that helps. :)
27th May 2017, 9:59 AM
Thanh Le
Thanh Le - avatar
+ 5
When you start programming your window is small. Your brain can only handle a couple of lines of code at a time. The more code you write, the bigger that window becomes. Then you'll start to see whole functions in your head, not only the lines of code that form it. It is like learning a language. At the beginning you only have a few new words and your brain is translating constantly but at some point your brain switches and full sentences became part of your expression tools. You are not translating anymore... just saying what you think with different words. Also... When programming a big application I use pseudo code. I just write on a piece of paper the main things that the program has to do using my native language. Then those things become functions of the programming language that I'm using. If the tire is low pump some air //pseudo code if (tire[i].press<50) { // code tire[i].removeValveCap(); attachHose(tire[i]); while (tire[i].press<50) {... I hope you get the idea. Keep calm and never give up!!
28th May 2017, 1:23 PM
Alex Blanco
Alex Blanco - avatar
+ 3
Perhaps I have to write my logic on the paper after that to start programming. :)
27th May 2017, 10:03 AM
Peyo Angelov
Peyo Angelov - avatar
+ 3
Practice solving basic logic problem: hanoi tower, chessboard problems. Master logic listing method like vent diagram, truth table, the way write down all logic case of input condition. Practice serial, classify IQ test.
27th May 2017, 10:44 AM
Nhan Ngo
Nhan Ngo - avatar
+ 2
to develop logical thinking go for Rubik's cube and chess as well coding is fun as far as I am concerned you might enjoy Coding
28th May 2017, 3:00 AM
Rishabh
+ 2
study book in evry day book ;)))
28th May 2017, 12:57 PM
Amirali Kamali
Amirali Kamali - avatar