+ 1

How to think logically when coding ?

To all the developers and engineers round here, I have a problem in thinking logically when it comes to coding. And I want to develop such skill, could anybody please guide me and tell me how ?!

1st Jun 2018, 4:48 PM
Muhammad Fouad Al-Haroon
Muhammad Fouad Al-Haroon - avatar
10 Antworten
+ 2
Doing math Exercises, they can develop your logical skills, like algebra or calculus also keep practicing in code, here in sololearn there are good exercises you can do, from the basic like making a program that outputs the fibonacci numbers, make sure you acquire the basic knowledge in programming like how does an array work?, the for, do, while loops. I really recommend download games like peek (find it in app store, not sure if exits on google play), believe me this is for me the perfect tool if you want to increase your logical thinking, it helped me a lot, and remember that practicing makes the master.
1st Jun 2018, 5:14 PM
Raul Oliva
Raul Oliva - avatar
+ 3
Believe it or not, Microsoft offers a class for this very subject. The name of the course is "Logic and Computational Thinking" and it is free to audit the course. There is no coding, just logical thinking. https://courses.edx.org/courses/course-v1:Microsoft+DEV262x+1T2018a/course/
2nd Jun 2018, 2:59 AM
ODLNT
ODLNT - avatar
+ 2
In sololearn we have many ways to exercise your brain to think logically. 1. You can take a code challenge. Don't get down if you had a losing streak. Code Challenge is made for us to think faster and logically not to gain win and fame. 2. Use the code playground to write some simple code like fibonacci, print triangle using array, palindromes, etc... 3. A lot of members here sharing their solution to solve a problem. Why not try to explore and read their code on how the algorithm works. those things are somethings you can do in sololearn. But there a lot of things you can do outside! :) But most important, have a healthy lifestyle!
5th Jun 2018, 5:44 AM
Rencil Justin Evangelista
Rencil Justin Evangelista - avatar
+ 1
Choose a problem. Write a list of things you want to implement/code, what should it do, how to get what you need... Draw a diagram, arrange the list items in a (chrono)logical order, add dependencies, prerequisites and notes, and connect everything with arrows representing the natural flow. If the plot is too complicated, try rearranging it once again or merging things that belong together and simplify it. If it is still too complicated, discard things that are not necessary for a while and repeat previous step... You do not need to learn rules of how to plot flow diagrams, just be creative and try it your way. If you draw a time axis, there will be only one operation per point in time...
1st Jun 2018, 5:30 PM
Jiří Bočan
+ 1
yes Muhammad Fouad Al-Haroon, I perfectly understand u, your problem is very usual among the developers. The main issue we got is the lack of logical skills, but the solution for me is simple: practicing, in math, logical excercises, coding & the time will show you the results
1st Jun 2018, 5:34 PM
Raul Oliva
Raul Oliva - avatar
+ 1
ODLNT Man you came to me from the unkown with a beautiful gift! 😍
2nd Jun 2018, 7:18 PM
Muhammad Fouad Al-Haroon
Muhammad Fouad Al-Haroon - avatar
0
Try to take some lessons in object oriented design and model driven development. Maybe those concepts can clear up your mind :) good luck!
1st Jun 2018, 5:00 PM
***
*** - avatar
0
Raul Oliva Thank you so much my friend 😊 notice that I know how to program via C language, but I lack the logical thinking! That's why everytime I try to solve a problem by coding I get confused and afraid not to program or solve it right .. Qnd accordingly I do not practice much, did you get me ?!
1st Jun 2018, 5:21 PM
Muhammad Fouad Al-Haroon
Muhammad Fouad Al-Haroon - avatar
0
Am new to programming. I have gone through multiple videos for programming, though I can understand the syntax and how it is used, but am not able to write a simple program on my own. I don't know from where to start learn coding and write a program. Please can you help me out. can you suggest any website links that will help me with my coding problem.
14th Sep 2020, 5:37 PM
Rejit Rajan
Rejit Rajan - avatar
0
Rejit Rajan There is a website called pdfdrive.com where you can download programming books, reading a programming book while practicing, like practicing everyday all day, will help you reach your goal, believe me. Plus some excellent websites like geeksforgeeks.com, stackoverflow.com, look you can search google and you will get the best websites related to programming. But the main think is to practice!
14th Sep 2020, 5:43 PM
Muhammad Fouad Alharoon
Muhammad Fouad Alharoon - avatar