Computer Science, asked by hranglimjulyhri3338, 1 year ago

Can you imagine that a program is correct and still not exhibit good quality? explain.

Answers

Answered by Anonymous
1
About two years ago I was working on a project that involved figuring out working days. This involved finding the date of Easter. The method my predecessor had written worked, perfectly, but was uncommented, full of single-letter variables, and magical constants and operations. Because no-one could understand it, it was very poor quality code.

My replacement code was insignificantly less accurate (in that it was only accurate up to the year 2199 instead of 4299), but it was simpler, commented, had properly named variables, and was far easier to understand.
Similar questions