0
Which one is better?
A)Fixing a code B)Rewriting a code
3 odpowiedzi
+ 2
rewriting the code is better minimizes errors,as when u fix the code the errors would be doubled
+ 3
nonono find the logic first before coding, it's faster.
if you mean by rewriting is rewrite a better code yourself not simply copy paste yes its a good practice, its like reverse engineering without tool. but in real development reinventing the wheel isnt a good practice
fixing is also a good way to learn, as people say learning by mistake
+ 2
Pretty much what I do is write the code. It will be extremely sloppy at first.
Fixing the code generally happens as I experience errors.
Then, I rewrite it completely to make it look neat.