+ 7
Which is more difficult finding the logic or writing the code?
4 Antworten
+ 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.
+ 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 .
+ 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.
+ 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.