Which is more difficult finding the logic or writing the code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Which is more difficult finding the logic or writing the code?

3rd Dec 2017, 5:33 AM
Pramit Dutta
Pramit Dutta - avatar
4 Answers
+ 5
I think, this a very tricky question, because it differs on the context of your project. If you want to write a small programm, then of course the code is maintained easily and your main task is to find a good logic. However, as your project gets larger, both jobs are very important. Even if your logic is pretty simple, you have to care of well structured, readble and documented clean code, so you can work with it for years of service with updates, version control etc.. Therefor you usually use design patterns. There are different kind of patterns, structural and logical patterns within. On the other hand all those patterns are written with code. So here it becomes tricky and this is my final answer: Good code IS good logic and bad logic IS bad code.
3rd Dec 2017, 6:18 AM
Robert Paulson
Robert Paulson - avatar
+ 4
Of course the logic part. Finding an algorithm is tougher than writing a code. Creating an algorithm is like finding a solution to a maths problem never done before or solving it more efficiently than used to be before; on other hand writing a code is like solving a maths problem with pre-known steps of solving(you have to be careful applying those known steps) .That's why Mathematicians are preferred for making algorithms .
3rd Dec 2017, 5:50 AM
Ishan
Ishan - avatar
+ 1
I think that finding the right logic and workflow for your program it's the most difficult part, then coding is just transcribing your ideas in any language of your choice for the machine to execute it.
3rd Dec 2017, 6:57 AM
Francisco Requena
Francisco Requena - avatar
+ 1
According to me finding the logic is difficult. Because, of you able to find the logic first then, you just have to imply it using the syntax which differs according to the Language.
21st Dec 2017, 10:14 PM
Surajit
Surajit - avatar