How to Improve Programming Logics | Tips

HOW TO IMPROVE PROGRAMMING LOGIC'S

 

 

1. Practice Puzzles to Improve Logical Thinking


practice lots and lots of easy to complex puzzles. Search for resources that teach you how to solve puzzles. It has been scientifically proven that solving jigsaw and crosswords help in a child’s brain development. The same thing applies to any adult brain. Your brain’s memory is enhanced; problem solving capability and lateral thinking develops when you solve puzzles. Finally, you become a logical thinker and a better logic solver. Apply the leanings in your day-to-day life to solve daily problems. Ultimately, everything would result in you becoming a successful programmer in your day job.

2. Write and Code in the Programming Language


Practice the programming language as much as possible. When you have mastered the programming language’s syntax and structure, your next goal is to practice the programming language. You can either write or type and practice. To become a good programmer, you must see errors on your console. Solve all the common programming puzzles like palindrome, reverse a string, searching, sorting, converting numbers to strings, and many more.

3. Try to Solve Simple to Complex Problems by Writing Codes


Start by writing codes in your programming language for simple problems. Proceed with medium difficulty problems and then go for tough and complex ones. Simple problem may be adding all prime numbers in a given set of 100 numbers. Complex problem may be creating a doubly linked list in a structural programming language like C and trying to reverse, sort and traversing the linked list. You should sense the world around and try to solve those real life problems. Let’s take the example of a clock, it has seconds, minutes and hours, try to create a clock by coding. In the case of a clock, its logic that seconds run the fastest followed by minutes and hours. When solving any kind of problem, understand the problem completely, analyse the possible solutions and methods that could be used to solve, find the most basic elements of the problem and then start solving. This will slowly improve your logic building skills.

4. Think Conditionally


Programming is more about conditions and looping with those conditions. Creating logic needs you to think conditionally. Yes or No. Certain things in programming get executed when a condition satisfies and the same is not executed when the condition fails. Writing down the logic as a conditional statement such as if….. then.. else…. is helpful to improve conditional reasoning. The important part of conditional reasoning is that the conditions are repeatable and can occur again and again. Start by practicing simple conditions and then go for hypothesis and theories on conditional reasoning and local thinking.

5. Exercise your Brain by Playing Chess, Rubik’s Cube and Sudoku


Chess, Rubik’s cube and Sudoku are scientifically proven to be a tough brain challenging games and improve lateral, creative and problem solving abilities of the brain. It has been found by scientists that conditions such as dementia and Alzheimer’s by enlarging what psychologists are calling your ‘cognitive reserve’. Playing these games at a young age helps in brain development for future. It doesn’t mean after becoming a developer you shouldn’t practice these games. At any age, the brain has the ability to develop and grow.

6. Break Complex Problems into Simpler Problems


In the programming world, programmers face complex problems in their day-to-day work. It is very important for the programmers to first get a visual picture of the problem. The visualization is possible only when the programmer has thoroughly understood the complexity. Once the visualization is complete, the programmer can use graphical tools to get the real picture. Alternatively, simple notes with pencil diagrams also would help. Then it becomes important that the diagrams are split into simpler modules or basic problems. Once this step is complete, logic building is just modular and easily achievable.

7. Read and Understand Other Programmer’s Codes


If you are in a project where you can view other programmer’s codes and programs, and then try to go through those codes and understand how they have written the logic. This exercise helps in matching your logically thinking skills with other people’s logical thinking. It enables you to co-relate how the other person has thought and written the logic. Use the refactoring feature in certain IDEs to understand the flow of code. Refactoring can be done without any tools as well, if you already know how to get through. Use a debugger to debug the code, see the values that get passed, see where the conditions fail, and check how to control flows and much more. If the code is human readable, then definitely go through the code and you will understand the code. If you do not understand the code, which means the code is badly written. Once you start to understand other people’s coding then you can think of how to improve those codes, which is again another exerciser to improve your logical thinking skills. It is best to start with a open-source project.

8. Read Books


Apart from learning your programming language, it is important to read books on analytical thinking, problem solving, reasoning, aptitude, logic building, discrete mathematics, lateral thinking, combinatorics and also love. There are thousands of well written books for all these topics, please select the appropriate book for your need. It is always wise to start with a basic book and go for an advanced one. How to Solve It by Polya, The Pragmatic Programmer by Andrew and David, Fundamentals of Logic Design by Forth, and Think Like a Programmer: An Introduction to Creative Problem Solving are few great books to read to improve your logical thinking and reasoning. There are many apps, software, and online tools to improve logic. Also, Google and find out few creative books, ways and steps to improve logical thinking. Keep practicing the stuff you have learnt until you become a master.

Thanks for Reading Please Follow and Share and Comment if You Like it !!!If this POST contains Any Wrong Information Feel free to comment it i will FIX the Problem !!! or You can contact me at given links below





Follow the Blog for more new post http://rajeevchaudhary-youtuber.blogspot.com/
 
 
 


Share:

No comments:

Post a Comment

Facebook

Popular

Recent Posts

Unordered List

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Vestibulum auctor dapibus neque.

Contact Form

Name

Email *

Message *