+ 1

Programming Logic

What is an efficient way to learn programming logic? Any books, courses, tutorials etc you can recommend?

14th Jul 2019, 1:02 AM
Gabriel Perez
Gabriel Perez - avatar
2 Answers
+ 2
Google it and you might find some good resources.
14th Jul 2019, 1:29 AM
Sonic
Sonic - avatar
0
I dont think programming logic is exactly taught, but developed through practice and solving problems because essentially all programming is-is providing a solution to a problem that can be executed on a computer. I would start by learning how to formulate not only correct, but efficient algorithms. An algorithm may be correct in the sense that it solves the problem (produces the desired result), is unambiguous, well-ordered and halts in a finite number of steps, but an efficient algorithm is just as important as there may be numerous ways to solve a problem, but ideally you want to use the one most effective IE: time/storage efficient, elegant/readable, scalable and so on. So really you just need to practice. Ideally, by writing algorithms in pseudocode and translating them via the programming language of your choice while keeping the standards of both a correct and effective algorithm in mind. Is it producing the correct result, no matter the change in input? does it halt after a finite number of steps? is it unambiguous and well-ordered? would someone else be able to understand whats happening? Is it time/storage effecient? To get a sense of using a time and storage efficient algorithm, even when scaled to a very large amount of input data, you can learn what order of magnitude is and check out different algorithms for both sorting a list of numbers and finding a specific number in a list of numbers (shuffle-left algorithm, copy-over algorithm, binarysearch algorithm, converging pointers algorithm to name a few) and see how important choosing the right algorithm is. I’d also recommend learning how to write documentation on the program you’re going to write, similar to how psuedocode will help you formulate your algorithm, a doc file will help you order and organize your program as well as use as a reference guide when you get stuck or want to change something! I dont know if this the answer you were looking for, but thats my contribution!
14th Jul 2019, 1:36 AM
Jake
Jake - avatar