How to improve your coding logic

what is coding logic

Coding requires a lot of thinking "logic" Coding logic is a set of principles that explain how elements should be arranged so a computer can perform specific tasks

programming is 10% writing code and 90% understanding why it's not working?

Its very common when you're coding for quite a while then you hit a wall you don't know what to do That's where coding logic comes in to play

image.png

How to improve your programming logic

I've listed a couple of things to do to improve your programming logic.

1 - Think to solve:

  • Divide problems into smaller chunks:
  • Learn addition of variables
  • Storing the answer
  • Displaying the answer

2 - practice:

  • Try practice
  • solve specific problems everyday
  • keep moving on and solve a new problem everyday I'll be recommending this sites .

3 - Learn about data structures:

  • A data structure is a named location that can be used to store and organize data. And, an algorithm is a collection of steps to solve a particular problem. Learning data structures and algorithms allow us to write efficient and optimized computer programs.

4 - play games: personally I'll recommend games that require thinking

  • Infinity Loop is a puzzle game with a simple concept: you have to rotate the pieces you see spread out around the screen to create complete and infinite shapes.

image.png

  • Tetris is a puzzle video game created by Soviet software engineer Alexey Pajitnov in 1984. It has been published by several companies for multiple platforms Its on android, iOS windows ,mac os Whatever OS you use Its a classic ,its also my favorite😉😀.

image.png

5 - Learn programming paradigm: Programming paradigms are different ways or styles in which a given program or programming language can be organized.understanding paradigms make I'll be talking about this in another blog post.

6 - look at other people's codes: Check codes written by other people on stackoverflow github Free code camp Codepen

7 - Take part in coding challenges: Try participating in different hackathons I'll recommend trying challenges on hashnode.

8 - read books and solve examples: There are lots of books & magazinesyou can read. I recommend downmagaz

9 - clean code: There's nothing as easy as reading a well documented code.

  • Choose the right tool for the job

  • learn to organize your code

  • Try to document your code

10 - design patterns: Get a good design pattern Know your coding style don't forget to give room to improvement.

Parting thoughts

AND finally all this points mentioned above will put you a step in the right direction

image.png

Don't forget to drop your comments and follow me🙏

See you in my next post 🐻