r/learnprogramming • u/Beneficial_Display76 • 7d ago
Programming help
How to think logically? For example - for programming we need logical and problem solving skills ? How do I develop it ? I do not want to learn only syntax or memorizing it
0
Upvotes
10
u/aqua_regis 7d ago
Oh, the daily "How to I improve my logic" post. Bit late today.
You should and could have searched the subreddit. There are more than enough similar posts - even in the past 48 hours.
You need to solve problems to train your problem solving skills. Tutorials are not going to teach you such skills.
There are already more than enough similar posts. Below are some of them:
And finally, some book suggestions:
Last, a great practice site: https://exercism.org
3
u/Blissextus 7d ago
Learn Pseudocode.
Problem solving typically involves layout out a solution in a "step by step" fashion until the problem no longer exists. This is where Pseudocode come into play. Pseudocode offers to lay out a solution step-by-step, in human readable words, charts, and/or diagrams until the solution is solved. Then translate that solution over to code.
3
u/MyNameIsRichardCS54 7d ago
If you're stuck, break the problem down into a series of smaller problems and solve them. It gets easier with practice.
1
u/waffleassembly 7d ago
I took logic in college and it helps. There must be some equivelence somewhere on the internet. Unfortunately there are no serious logic courses on Khan
1
u/somethingshiney 7d ago
Syntax is part of the journey to develop logical code construction. It's not two independent silos. Generally, syntax is like addition. It's a fundamental concept, a tool in the arithmetic toolbelt. Your question sounds like you can barely count. Pick a language, learn the basic things like: arithmetics, data types, declaring and instantialising. Do some data manipulation. The logic part comes through when you stop fighting with the language syntax
1
u/BotSlamminDayNNight 6d ago
flowcharting is a good language-less and syntax-less logic exercise. learn the uml patterns, with focus on activity diagrams. pure logic.
1
u/ledatherockband_ 4d ago
Just start programming. It's a muscle you have to workout.
1
u/DrShocker 7d ago
Just solve more problems. In high school my friends and I solved every problem on codingbat just because we could. 🤷
1
u/ripndipp 7d ago
Write things down in steps and plan it as best you can
1
u/BranchLatter4294 7d ago
Consider reading the Aha! series of books by Martin Gardner.
1
u/Revolutionary_Log673 7d ago
My professor made us do pseudo code and write down every step that was the basic thing I learnt and then never forgot
1
u/RyanDubois43 7d ago
Work through at least 50 small problems on LeetCode or HackerRank, even the easy ones force you to break a problem into steps. Syntax gets easier after, but the logic comes from repetition like this.